Skip to content

Commit

Permalink
Merge pull request #80 from Teknologforeningen/hidden-folder-tag
Browse files Browse the repository at this point in the history
Hidden folder tag
  • Loading branch information
rosasam authored Jan 28, 2020
2 parents 2b4babc + de6e1fc commit ec9875d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
13 changes: 12 additions & 1 deletion fotogalleri/gallery/static/css/folder.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,15 @@

.folder-link:hover::before {
color: rgb(255, 153, 161);
}
}

.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;
}
9 changes: 7 additions & 2 deletions fotogalleri/gallery/templates/components/folder.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
data-url="/view/{{ folder.full_path }}"
data-id="{{ folder.pk }}"
>
{{ folder.path }}
<input type="checkbox" style="display: none; margin-left: 10px;" />
{{ folder.path }}

{% if folder.hidden %}
<span class="tag hidden-folder-tag is-normal has-margin-left-10">Hidden</span>
{% endif %}

<input type="checkbox" class="has-margin-left-10" style="display: none;" />
</a>
10 changes: 5 additions & 5 deletions fotogalleri/gallery/templates/view_images.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
class="content folders-content"
style="{% if not folders %}display: none;{% endif %}"
>
<div>
{% for folder in folders %}
<div>
{% include "components/folder.html" with folder=folder %}
</div>
{% endfor %}
{% for folder in folders %}
<div>
{% include "components/folder.html" with folder=folder %}
</div>
{% endfor %}
</div>
</div>

Expand Down

0 comments on commit ec9875d

Please sign in to comment.