- commit
- d7773bd95e370d231ae18d533d7283502a3a6ac3
- parent
- dc9bdc8c52a1755be3fd4bf4ac21ba424905b57e
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2018-10-19 10:48
use filelist styling for subpages
Diffstat
| M | templates/page.html | 26 | ++++++++++++++------------ |
1 files changed, 14 insertions, 12 deletions
diff --git a/templates/page.html b/templates/page.html
@@ -4,18 +4,6 @@ 4 4 {% for name, path in breadcrumbs %} 5 5 / <a href="?path={{ path }}">{{ name }}</a> 6 6 {% endfor %}7 -18 -1 {% if not pathIsFile %}9 -1 / <form>10 -1 <input type="hidden" name="path" value="{{ path }}">11 -1 <input type="text" name="add" list="subpages" autocomplete="off">12 -1 <datalist id="subpages">13 -1 {% for name, path in subpages %}14 -1 <option value="{{ name }}">15 -1 {% endfor %}16 -1 </datalist>17 -1 </form>18 -1 {% endif %}19 7 {% endblock %} 20 8 21 9 {% block main %} @@ -40,4 +28,18 @@ 40 28 </div> 41 29 </div> 42 30 </form> -1 31 -1 32 {% if not pathIsFile %} -1 33 <ul class="file-list"> -1 34 {% for name, path in subpages %} -1 35 <li><a href="?path={{ path }}" class="file-list__main">{{ name }}</a></li> -1 36 {% endfor %} -1 37 <li> -1 38 <form class="flex-ignore"> -1 39 <input type="hidden" name="path" value="{{ path }}"> -1 40 <input type="text" name="add" placeholder="add page" class="input--invisible file-list__main"> -1 41 </form> -1 42 </li> -1 43 </ul> -1 44 {% endif %} 43 45 {% endblock %}