From 0a5471217b9f562b92f32802de4260390f639880 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 23 Mar 2024 19:01:29 +0000 Subject: Initial import --- views/edit.tpl | 10 ++++++++++ views/footer.tpl | 3 +++ views/header.tpl | 14 ++++++++++++++ views/history.tpl | 17 +++++++++++++++++ views/page.tpl | 21 +++++++++++++++++++++ 5 files changed, 65 insertions(+) create mode 100644 views/edit.tpl create mode 100644 views/footer.tpl create mode 100644 views/header.tpl create mode 100644 views/history.tpl create mode 100644 views/page.tpl (limited to 'views') diff --git a/views/edit.tpl b/views/edit.tpl new file mode 100644 index 0000000..5e0f35b --- /dev/null +++ b/views/edit.tpl @@ -0,0 +1,10 @@ +% include('header.tpl', title=f"Edit {page.name}") + +
+ + + +

Or Cancel

+
+ +% include('footer.tpl') diff --git a/views/footer.tpl b/views/footer.tpl new file mode 100644 index 0000000..f5471aa --- /dev/null +++ b/views/footer.tpl @@ -0,0 +1,3 @@ + + + diff --git a/views/header.tpl b/views/header.tpl new file mode 100644 index 0000000..83c2046 --- /dev/null +++ b/views/header.tpl @@ -0,0 +1,14 @@ + + + + + + Wiki - {{page.title}} + + + + +
+

{{page.title}}

+
+
diff --git a/views/history.tpl b/views/history.tpl new file mode 100644 index 0000000..5e0d42a --- /dev/null +++ b/views/history.tpl @@ -0,0 +1,17 @@ +% include('header.tpl', page=page) + +

History

+ + +% include('footer.tpl') 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: +

{{page.name}} doesn't exist yet, create it!

+% else: + {{!page.render()}} +
+

+ % if not page.history: + Edit : + % end + History : + % if page.history: + Restore : + Delete + % end + - Last updated: {{page.updated_at}} +

+% end + +% include('footer.tpl') -- cgit v1.2.3