From b5cad4fdafacd1d1eced5784e449996db5dc8e84 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 2 Apr 2012 22:56:22 +0200 Subject: move js-add button and logic into separate file, make it available in new pastes --- data/templates/edit-add.htm | 23 +++++++++++++++++++++++ data/templates/edit.htm | 25 +------------------------ data/templates/index.htm | 4 +++- 3 files changed, 27 insertions(+), 25 deletions(-) create mode 100644 data/templates/edit-add.htm (limited to 'data') diff --git a/data/templates/edit-add.htm b/data/templates/edit-add.htm new file mode 100644 index 0000000..8435852 --- /dev/null +++ b/data/templates/edit-add.htm @@ -0,0 +1,23 @@ + + + {% include 'edit-file.htm' with {'file': '', 'fileid': 'new'} %} + + diff --git a/data/templates/edit.htm b/data/templates/edit.htm index 6c1899f..d60598f 100644 --- a/data/templates/edit.htm +++ b/data/templates/edit.htm @@ -12,16 +12,7 @@ {% include 'edit-file.htm' with {'file': file, 'fileid': fileid} %} {% endfor %} - - - - {% include 'edit-file.htm' with {'file': '', 'fileid': 'new'} %} - + {% include 'edit-add.htm' %}
@@ -38,18 +29,4 @@
- {% endblock %} diff --git a/data/templates/index.htm b/data/templates/index.htm index 05989df..3893d2a 100644 --- a/data/templates/index.htm +++ b/data/templates/index.htm @@ -8,7 +8,9 @@
- {% include 'edit-file.htm' with {'file': file[1], 'fileid': 1} %} + {% include 'edit-file.htm' with {'file': file[1], 'fileid': 0} %} + + {% include 'edit-add.htm' %}