X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/81e9ac241907e0a802122e6787e648ce3bb1b494..8b86653c2471e04429ae9fec19dc33fcb5e5c059:/data/templates/edit.htm diff --git a/data/templates/edit.htm b/data/templates/edit.htm index 6c1899f..912a073 100644 --- a/data/templates/edit.htm +++ b/data/templates/edit.htm @@ -1,55 +1,55 @@ {% extends "base.htm" %} {% block title %}Edit paste{% endblock %} +{% block meta %} + +{% endblock %} + {% block content %} -
-
- +
+ +
+ +
+
{% for fileid, file in repo.getFiles %} - {% include 'edit-file.htm' with {'file': file, 'fileid': fileid} %} + {% if not singlefile or file == singlefile %} + {% include 'edit-file.htm' with {'file': file, 'fileid': fileid, 'newfile': false} %} + {% endif %} {% endfor %} + {% if singlefile == "newfile" %} + {% include 'edit-file.htm' with {'file': null, 'fileid': 'newfile', 'newfile': true} %} + {% endif %} - - - {% include 'edit-file.htm' with {'file': '', 'fileid': 'new'} %} - + {% include 'edit-add.htm' %} -
-
-
+
+ -
+
+ {% include 'edit-add-button.htm' %} +
+
-
{% endblock %} + +{% block sidebar %} + {% include 'display-sidebar-history.htm' %} +{% endblock %}