From 69e4391bfb53ce2d7a3a42f69e37bbf136d3ee09 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 6 Jul 2015 23:10:18 +0200 Subject: Add "add file" button to display page --- data/templates/display-foot.htm | 9 ++++++++- data/templates/edit.htm | 6 +++++- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'data') diff --git a/data/templates/display-foot.htm b/data/templates/display-foot.htm index 3a53adf..6324509 100644 --- a/data/templates/display-foot.htm +++ b/data/templates/display-foot.htm @@ -1,5 +1,12 @@
-
+
+ +
Delete paste diff --git a/data/templates/edit.htm b/data/templates/edit.htm index 870ef23..912a073 100644 --- a/data/templates/edit.htm +++ b/data/templates/edit.htm @@ -7,7 +7,7 @@ {% block content %}
-
+
@@ -21,6 +21,10 @@ {% endif %} {% endfor %} + {% if singlefile == "newfile" %} + {% include 'edit-file.htm' with {'file': null, 'fileid': 'newfile', 'newfile': true} %} + {% endif %} + {% include 'edit-add.htm' %}
-- cgit v1.2.3