Skip to content

Commit

Permalink
Add hidden tag for hidden folders
Browse files Browse the repository at this point in the history
  • Loading branch information
c00k133 committed Jan 23, 2020
1 parent 6ff7695 commit de6e1fc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 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;
}
7 changes: 6 additions & 1 deletion 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 }}"
>
<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>

0 comments on commit de6e1fc

Please sign in to comment.