From: Christian Weiske Date: Wed, 28 Mar 2012 14:59:54 +0000 (+0200) Subject: preparation for file editing X-Git-Tag: v0.1.0~83 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/ec66a5c7d17cb1e67ee066f2e9bdaf5bbc9ab614 preparation for file editing --- diff --git a/data/templates/edit-file.htm b/data/templates/edit-file.htm new file mode 100644 index 0000000..66647f0 --- /dev/null +++ b/data/templates/edit-file.htm @@ -0,0 +1,19 @@ +
+
+
+ + +
+
+ + + +
+
+ +
+ diff --git a/data/templates/edit.htm b/data/templates/edit.htm new file mode 100644 index 0000000..56e08ef --- /dev/null +++ b/data/templates/edit.htm @@ -0,0 +1,23 @@ +{% extends "base.htm" %} +{% block title %}Edit paste{% endblock %} + +{% block content %} +
+
+ + +
+ + {% for fileid, file in repo.getFiles %} + {% include 'edit-file.htm' with {'file': file, 'fileid': fileid} %} + {% endfor %} + +
+ +
+ +
+{% endblock %} diff --git a/data/templates/index.htm b/data/templates/index.htm index c239d56..05989df 100644 --- a/data/templates/index.htm +++ b/data/templates/index.htm @@ -8,23 +8,7 @@ -
-
-
- - -
-
- - -
-
- -
+ {% include 'edit-file.htm' with {'file': file[1], 'fileid': 1} %}