aboutsummaryrefslogtreecommitdiff
path: root/views/page.tpl
blob: c577886e728488bbfefca2e7e5086113f32fd960 (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>Last edited {{page.updated_at}}</p>
    <nav>
      % 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
    </nav>
% end

% include('footer.tpl')