forked from rDrama/rDrama
fdfd
parent
b7e0bfb658
commit
9affe9ced1
|
@ -447,11 +447,11 @@
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
{% if v.admin_level>=1 and v.id==c.author_id %}
|
{% if v.admin_level>=1 and v.id==c.author_id %}
|
||||||
<li class="list-group-item"><a class="d-block" id="distinguish-{{c.id}}" href="javascript:void(0)" onclick="admin_comment('{{c.id}}')"><i class="fas fa-id-badge"></i>{{'Undistinguish' if c.distinguish_level else 'Distinguish'}}</a></li>
|
<li class="list-group-item"><a class="d-block" id="distinguish-{{c.id}}" href="javascript:void(0)" onclick="admin_comment('{{c.id}}', , function(){window.location.reload(true);})"><i class="fas fa-id-badge"></i>{{'Undistinguish' if c.distinguish_level else 'Distinguish'}}</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if v.admin_level>=3 %}
|
{% if v.admin_level>=3 %}
|
||||||
<li class="list-group-item"><a class="text-success d-block" href="javascript:void(0)" onclick="approveComment('{{c.id}}')"><i class="fas fa-check text-success"></i>Approve</a></li>
|
<li class="list-group-item"><a class="text-success d-block" href="javascript:void(0)" onclick="approveComment('{{c.id}}', function(){window.location.reload(true);})"><i class="fas fa-check text-success"></i>Approve</a></li>
|
||||||
<li class="list-group-item"><a class="text-danger d-block" href="javascript:void(0)" onclick="removeComment('{{c.id}}')"><i class="fas fa-ban text-danger"></i>Remove</a></li>
|
<li class="list-group-item"><a class="text-danger d-block" href="javascript:void(0)" onclick="removeComment('{{c.id}}', function(){window.location.reload(true);})"><i class="fas fa-ban text-danger"></i>Remove</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if v.admin_level >=4 and c.oauth_app %}
|
{% if v.admin_level >=4 and c.oauth_app %}
|
||||||
<li class="list-group-item"><a class="d-block text-info" href="{{c.oauth_app.permalink}}/comments"><i class="fas fa-code text-info"></i>API App</a></li>
|
<li class="list-group-item"><a class="d-block text-info" href="{{c.oauth_app.permalink}}/comments"><i class="fas fa-code text-info"></i>API App</a></li>
|
||||||
|
@ -459,7 +459,7 @@
|
||||||
|
|
||||||
{% if not v.id==c.author_id and v.admin_level == 0 %}
|
{% if not v.id==c.author_id and v.admin_level == 0 %}
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<a class="d-block" href="javascript:void(0)" onclick="post_toast('/settings/block?username={{c.author.username}}')"><i class="fas fa-eye-slash"></i>Block user</a>
|
<a class="d-block" href="javascript:void(0)" onclick="post('/settings/block?username={{c.author.username}}', function(){window.location.reload(true);})"><i class="fas fa-eye-slash"></i>Block user</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -471,9 +471,9 @@
|
||||||
{% if v and (c.post and v.admin_level == 6) %}
|
{% if v and (c.post and v.admin_level == 6) %}
|
||||||
{% if c.author_id != v.id %}
|
{% if c.author_id != v.id %}
|
||||||
{% if c.author.is_banned %}
|
{% if c.author.is_banned %}
|
||||||
<li class="list-group-item"><a class="text-success d-block" id="unexile-comment2-{{c.id}}" href="javascript:void(0)" onclick="post_toast('/unban_user/{{c.author_id}}?toast=1')"><i class="fas fa-user-minus fa-fw text-success"></i>Unban user</a></li>
|
<li class="list-group-item"><a class="text-success d-block" id="unexile-comment2-{{c.id}}" href="javascript:void(0)" onclick="post('/unban_user/{{c.author_id}}', function(){window.location.reload(true);})"><i class="fas fa-user-minus fa-fw text-success"></i>Unban user</a></li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li class="list-group-item"><a class="text-danger d-block" id="exile-comment2-{{c.id}}" href="javascript:void(0)" onclick="post_toast('/ban_user/{{c.author_id}}?toast=1')"><i class="fas fa-user-minus fa-fw text-danger"></i>Ban user</a></li>
|
<li class="list-group-item"><a class="text-danger d-block" id="exile-comment2-{{c.id}}" href="javascript:void(0)" onclick="post('/ban_user/{{c.author_id}}', function(){window.location.reload(true);})"><i class="fas fa-user-minus fa-fw text-danger"></i>Ban user</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue