From ccd6eeed4b8eafcfd2530057fb645915fe335caf Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 29 Apr 2012 21:22:00 +1200 Subject: Make "Go" button on preview form work. --- libpathod/app.py | 2 +- libpathod/templates/index.html | 11 +---------- libpathod/templates/preview.html | 6 +----- libpathod/templates/previewform.html | 12 ++++++++++++ todo | 1 - 5 files changed, 15 insertions(+), 17 deletions(-) create mode 100644 libpathod/templates/previewform.html diff --git a/libpathod/app.py b/libpathod/app.py index 0274853b..fbb99dc4 100644 --- a/libpathod/app.py +++ b/libpathod/app.py @@ -11,7 +11,7 @@ class Index(_Page): name = "index" section = "main" def get(self): - self.render(self.name, section=self.section) + self.render(self.name, section=self.section, spec="") class Preview(_Page): diff --git a/libpathod/templates/index.html b/libpathod/templates/index.html index f5808c4d..396137d6 100644 --- a/libpathod/templates/index.html +++ b/libpathod/templates/index.html @@ -1,13 +1,4 @@ {% extends frame.html %} {% block body %} - - + {% include previewform.html %} {% end %} diff --git a/libpathod/templates/preview.html b/libpathod/templates/preview.html index 6599362f..63960ebe 100644 --- a/libpathod/templates/preview.html +++ b/libpathod/templates/preview.html @@ -20,9 +20,5 @@
{{ output }}
{% end %} - +{% include previewform.html %} {% end %} diff --git a/libpathod/templates/previewform.html b/libpathod/templates/previewform.html new file mode 100644 index 00000000..42502ba7 --- /dev/null +++ b/libpathod/templates/previewform.html @@ -0,0 +1,12 @@ + + diff --git a/todo b/todo index 642aa2ba..660eb36c 100644 --- a/todo +++ b/todo @@ -1,6 +1,5 @@ 0.1: - - Web status and explain - setup.py - API - Logs, log reset, log retrieval -- cgit v1.2.3