File: view.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 (45 lines) | stat: -rw-r--r-- 1,652 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[% WRAPPER page/wrapper.tt index_page=(c.req.params.rev ? 0 : 1) +%]
<div id="content">

[%- IF c.sessionid && c.flash.redirect %]
    [% loc('Redirected from') %]
    [% IF (c.pref('anonymous_user') OR user.can_edit(page.path)) %]
<a href="[% c.req.base %]/[% c.flash.redirect %].edit" rel="nofollow">[% c.flash.redirect %]</a>
    [% ELSE %]
        [% c.flash.redirect %]
    [% END %]
[% END %]

  [%- IF c.req.params.rev %]
    <div id="revision_info">
      [% loc('Revision') %] [% c.req.params.rev %] - [% content.created.ymd %] [% loc('at') %] [% content.created.hms %]
      [% IF c.req.params.rev > page.content_version %]
        <em>[% loc('Rolled Back (Current: x)', page.content_version) %]</em>
      [% END %]
    </div>
  [% END +%]
    <div id="current">
      [%- IF render == 'highlight' +%]
        [%+ content.highlight(c) %]
      [% ELSE +%]
        [%+ content.precompiled || content.formatted(c) %]
      [% END %]
    </div>

    <div id="changes" class="display-none">
        <p id="message">
            <small>
                [% loc('Showing changes from previous revision.') %]
                <del class="diffdel">[% loc('Removed') %]</del> | <ins class="diffins">[% loc('Added') %]</ins>
            </small>
        </p>
        <div id="diff"></div>
    </div>

    <div class="byline">
        <acronym title="[% loc('Revised on x at x by x', [content.created.ymd, content.created.hms, content.creator.name]) %]">[% loc('Revision') %]</acronym>
        [% loc('by') %] [% c.wikiword(content.creator.link, base, content.creator.name, 'profile') %], [% content.created.ymd %]
    </div>

</div>
[% END # WRAPPER %]