diff --git a/fotogalleri/gallery/static/css/folder.css b/fotogalleri/gallery/static/css/folder.css index 169ee04..9c08a4b 100644 --- a/fotogalleri/gallery/static/css/folder.css +++ b/fotogalleri/gallery/static/css/folder.css @@ -37,4 +37,15 @@ .folder-link:hover::before { color: rgb(255, 153, 161); -} \ No newline at end of file +} + +.hidden-folder-tag { + border-color: var(--dark-red); + color: var(--dark-red); + border-width: 1px; + border-style: solid; +} + +.has-margin-left-10 { + margin-left: 10px; +} diff --git a/fotogalleri/gallery/templates/components/folder.html b/fotogalleri/gallery/templates/components/folder.html index 61cc4e0..89cf701 100644 --- a/fotogalleri/gallery/templates/components/folder.html +++ b/fotogalleri/gallery/templates/components/folder.html @@ -7,6 +7,11 @@ data-url="/view/{{ folder.full_path }}" data-id="{{ folder.pk }}" > -{{ folder.path }} - + {{ folder.path }} + + {% if folder.hidden %} + Hidden + {% endif %} + + diff --git a/fotogalleri/gallery/templates/view_images.html b/fotogalleri/gallery/templates/view_images.html index 4a205f4..021962b 100644 --- a/fotogalleri/gallery/templates/view_images.html +++ b/fotogalleri/gallery/templates/view_images.html @@ -38,12 +38,12 @@ class="content folders-content" style="{% if not folders %}display: none;{% endif %}" > -
- {% for folder in folders %}
- {% include "components/folder.html" with folder=folder %} -
- {% endfor %} + {% for folder in folders %} +
+ {% include "components/folder.html" with folder=folder %} +
+ {% endfor %}