File: this_page_link.tt

package info (click to toggle)
libmojomojo-perl 1.01%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,272 kB
  • ctags: 879
  • sloc: perl: 14,055; sh: 145; xml: 120; ruby: 6; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
    [%- IF c.req.action == "view" %]
      [%- IF    (!rev OR rev == page.content_version)
            AND (
                   c.pref('anonymous_user')
                OR
                   (user.active AND user.can_edit(page.path))
            )
      +%]
        <li><a title="[% loc('Change page content') %]" href="[% c.uri_for('edit') %]"
               [% IF accesskey %]
               accesskey="E"
               [% END %]
               rel="nofollow">[% loc('Edit page') %]</a></li>
      [% ELSE +%]
        <li>[% loc('Edit page') %]</li>
      [% END %]
    [% ELSE +%]
        <li><a title="[% loc('Back to the page') %]" href="[% c.uri_for('view') %]">[% loc('Page') %]</a></li>
    [% END %]