Add shield to staff name
This commit is contained in:
parent
04ec755daf
commit
61c853dcc7
@ -21,6 +21,7 @@
|
||||
<span class="logo">Episodes<span class="period">.</span>Community</span>
|
||||
<div class="userdata">
|
||||
{% if user.is_authenticated %}
|
||||
{% if user.is_staff %}<a class="mod" href="/admin"><i class="fa fa-fw fa-shield"></a></i>{% endif %}
|
||||
{{ user.display_name }}
|
||||
{% else %}
|
||||
<a href="/login">Log in</a>
|
||||
|
@ -70,7 +70,14 @@
|
||||
</form>
|
||||
</div>
|
||||
<div class="data">
|
||||
<span class="timestamp">Submitted {{sbm.timestamp}} by {{sbm.user.display_name}}</span><span class="divider">·</span>
|
||||
{% get_obj_perms sbm.user for show as "publisher_perms" %}
|
||||
<span class="timestamp">Submitted {{sbm.timestamp}} by
|
||||
{% if sbm.user.is_staff or "can_moderate_show" in publisher_perms %}
|
||||
<span class="mod"><i class="fa fa-fw fa-shield"></i></span>
|
||||
{% endif %}
|
||||
<span class="display_name">{{sbm.user.display_name}}</span>
|
||||
</span>
|
||||
<span class="divider">·</span>
|
||||
{% if "can_moderate_show" in show_perms %}
|
||||
<a href="/show/{{show.abbr}}/submission/{{sbm.id}}/moderate" class="button modbutton"><i class="fa fa-fw fa-shield"></i> Change</a>
|
||||
{% else %}
|
||||
|
Reference in New Issue
Block a user