aboutsummaryrefslogtreecommitdiff
path: root/views/page.tpl
blob: 4a4189adb29a057d81b5c6dad63df079fd3d25a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
% include('header.tpl', page=page)

% if page.version is None:
    <p><a href="/{{page.name}}">{{page.name}}</a> doesn't exist yet, <a href="/edit/{{page.name}}">create it</a>!</p>
% else:
    {{!page.render()}}
    <hr>
    <p>
      % if not page.history:
      <a href="/edit/{{page.name}}">Edit</a> :
      % end
      <a href="/history/{{page.name}}">History</a> :
      % if page.history:
      <a href="/restore/{{page.name}}/{{page.version}}">Restore</a> :
      <a href="/delete/{{page.name}}/{{page.version}}">Delete</a>
      % end
      - Last updated: {{page.updated_at}}
    </p>
% end

% include('footer.tpl')