- commit
- b4653c24022217aea2350f4c9c9c4dadd30eef9e
- parent
- 272053a3b27a975dccdb0d7af185e19538dfc20a
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2018-10-20 22:49
mv actions to top of templates
Diffstat
| M | templates/files.html | 18 | +++++++++--------- |
| M | templates/pages.html | 16 | ++++++++-------- |
2 files changed, 17 insertions, 17 deletions
diff --git a/templates/files.html b/templates/files.html
@@ -1,6 +1,15 @@ 1 1 {% extends 'base.html' %} 2 2 3 3 {% block main %} -1 4 <form method="post" enctype="multipart/form-data" class="form--line"> -1 5 <input type="file" name="file"> -1 6 <button>{{ 'Upload file'|trans }}</button> -1 7 </form> -1 8 <form method="post" class="form--line"> -1 9 <input type="text" name="folder"> -1 10 <button>{{ 'Create folder'|trans }}</button> -1 11 </form> -1 12 4 13 <ul class="file-list"> 5 14 {% for file in files %} 6 15 <li> @@ -25,13 +34,4 @@ 25 34 </li> 26 35 {% endfor %} 27 36 </ul>28 -129 -1 <form method="post" enctype="multipart/form-data" class="form--line">30 -1 <input type="file" name="file">31 -1 <button>{{ 'Upload file'|trans }}</button>32 -1 </form>33 -1 <form method="post" class="form--line">34 -1 <input type="text" name="folder">35 -1 <button>{{ 'Create folder'|trans }}</button>36 -1 </form>37 37 {% endblock %}
diff --git a/templates/pages.html b/templates/pages.html
@@ -1,14 +1,6 @@ 1 1 {% extends 'base.html' %} 2 2 3 3 {% block main %}4 -1 <ul class="file-list">5 -1 {% for path in pages %}6 -1 <li><a href="?path={{ path|e('url') }}" class="file-list__main">7 -1 {{ path }}{% if '.' not in path %}/{% endif %}8 -1 </a></li>9 -1 {% endfor %}10 -1 </ul>11 -112 4 <form class="form--line"> 13 5 <select name="path"> 14 6 {% for path in pages %} @@ -20,4 +12,12 @@ 20 12 <input name="add"> 21 13 <button>{{ 'Add page'|trans }}</button> 22 14 </form> -1 15 -1 16 <ul class="file-list"> -1 17 {% for path in pages %} -1 18 <li><a href="?path={{ path|e('url') }}" class="file-list__main"> -1 19 {{ path }}{% if '.' not in path %}/{% endif %} -1 20 </a></li> -1 21 {% endfor %} -1 22 </ul> 23 23 {% endblock %}