fix
parent
03da90cc8c
commit
8a762ec387
|
@ -175,27 +175,27 @@
|
|||
{% if v.admin_level >=3 %}
|
||||
<!-- Requires non author -->
|
||||
{% if v.id != p.author.id %}
|
||||
<li id="remove-{{p.id}}" class="hidden {% if not p.is_banned %}md:block{% endif %} text-red-600">
|
||||
<button class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-red-800 hover:to-red-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-red-800 focus:to-red-700" onclick="post_toast3('/ban_post/{{p.id}}','remove-{{p.id}}','approve-{{p.id}}')">
|
||||
<li id="remove-{{p.id}}" class="{% if p.is_banned %}hidden{% endif %} text-red-600">
|
||||
<button class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-red-800 hover:to-red-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-red-800 focus:to-red-700" onclick="post_toast2('/ban_post/{{p.id}}','remove-{{p.id}}','approve-{{p.id}}')">
|
||||
<i class="fas fa-ban fa-sm fa-fw mr-4"></i>Remove
|
||||
</button>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li id="approve-{{p.id}}" class="hidden {% if p.is_banned %}md:block{% endif %}">
|
||||
<button class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-red-800 hover:to-red-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-red-800 focus:to-red-700" onclick="post_toast3('/unban_post/{{p.id}}','remove-{{p.id}}','approve-{{p.id}}')">
|
||||
<li id="approve-{{p.id}}" class="{% if p.is_banned %}hidden{% endif %}">
|
||||
<button class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-red-800 hover:to-red-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-red-800 focus:to-red-700" onclick="post_toast2('/unban_post/{{p.id}}','remove-{{p.id}}','approve-{{p.id}}')">
|
||||
<i class="fas fa-check fa-sm fa-fw mr-4"></i>Approve
|
||||
</button>
|
||||
</li>
|
||||
{% endif %}
|
||||
<!-- Requires admin or author -->
|
||||
{% if v.id == p.author_id or v.admin_level >= 3 %}
|
||||
<li class="{% if p.over_18 %}hidden{% endif %}">
|
||||
<button id="mark-{{p.id}}" class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-red-800 hover:to-red-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-red-800 focus:to-red-700" onclick="post_toast2('/toggle_post_nsfw/{{p.id}}','mark-{{p.id}}','unmark-{{p.id}}')">
|
||||
<li id="mark-{{p.id}}" class="{% if p.over_18 %}hidden{% endif %}">
|
||||
<button class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-red-800 hover:to-red-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-red-800 focus:to-red-700" onclick="post_toast2('/toggle_post_nsfw/{{p.id}}','mark-{{p.id}}','unmark-{{p.id}}')">
|
||||
<i class="fas fa-eye-evil fa-sm fa-fw mr-4"></i>Mark +18
|
||||
</button>
|
||||
</li>
|
||||
<li class="{% if not p.over_18 %}hidden{% endif %}">
|
||||
<button id="unmark-{{p.id}}" class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-red-800 hover:to-red-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-red-800 focus:to-red-700" onclick="post_toast2('/toggle_post_nsfw/{{p.id}}','mark-{{p.id}}','unmark-{{p.id}}')">
|
||||
<li id="unmark-{{p.id}}" class="{% if not p.over_18 %}hidden{% endif %}">
|
||||
<button class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-red-800 hover:to-red-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-red-800 focus:to-red-700" onclick="post_toast2('/toggle_post_nsfw/{{p.id}}','mark-{{p.id}}','unmark-{{p.id}}')">
|
||||
<i class="fas fa-eye-evil fa-sm fa-fw mr-4"></i>Unmark +18
|
||||
</button>
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue