Add visibility indicators to media listings
- Private media now shows [private] in bold - Unlisted media now shows [unlisted] in bold - Public media has no indicator (default) russell@unturf.com is the boss
This commit is contained in:
parent
e380d8d287
commit
c1b54291f0
1 changed files with 5 additions and 0 deletions
|
|
@ -10,6 +10,11 @@
|
|||
{% for media in media_items %}
|
||||
<li>
|
||||
<a href="{{ request.route_url('view_media_details', namespace_short_id=namespace.short_id, media_short_id=media.short_id) }}">{{ media.title or media.filename }}</a>
|
||||
{% if media.visibility == 'private' %}
|
||||
<strong>[private]</strong>
|
||||
{% elif media.visibility == 'unlisted' %}
|
||||
<strong>[unlisted]</strong>
|
||||
{% endif %}
|
||||
({{ media.media_type }}, {{ media.size|filesizeformat }})
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue