diff options
author | Juan J. Martinez <jjm@usebox.net> | 2024-03-23 19:01:29 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2024-03-23 19:10:43 +0000 |
commit | 0a5471217b9f562b92f32802de4260390f639880 (patch) | |
tree | daf0655fe2753351d7fac9010e3b50c499194bb2 /views/page.tpl | |
download | personal-wiki-pybottle-0a5471217b9f562b92f32802de4260390f639880.tar.gz personal-wiki-pybottle-0a5471217b9f562b92f32802de4260390f639880.zip |
Initial import
Diffstat (limited to 'views/page.tpl')
-rw-r--r-- | views/page.tpl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/views/page.tpl b/views/page.tpl new file mode 100644 index 0000000..4a4189a --- /dev/null +++ b/views/page.tpl @@ -0,0 +1,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') |