From: Christian Weiske Date: Mon, 2 Apr 2012 20:56:22 +0000 (+0200) Subject: move js-add button and logic into separate file, make it available in new pastes X-Git-Tag: v0.1.0~67 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/b5cad4fdafacd1d1eced5784e449996db5dc8e84 move js-add button and logic into separate file, make it available in new pastes --- 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' %}