forked from rDrama/rDrama
fix
parent
6d62710308
commit
41f8ed0fe9
|
@ -149,7 +149,7 @@
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if v and c.post and (v.admin_level > 1 or v.id == c.post.author_id) %}
|
{% if v and c.post %}
|
||||||
<li>
|
<li>
|
||||||
<hr class="mt-2 mb-1.5 border-t border-black h-1 shadow-inset-t-white-05"/>
|
<hr class="mt-2 mb-1.5 border-t border-black h-1 shadow-inset-t-white-05"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -68,17 +68,30 @@
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if v and c.post and (v.admin_level > 1 or v.id == c.post.author_id) %}
|
{% if v and c.post %}
|
||||||
<li id="pin2-{{c.id}}" class="{% if c.is_pinned %}hidden{% endif %}">
|
{% if v.admin_level > 1 %}
|
||||||
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/pin_comment/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')">
|
<li id="pin2-{{c.id}}" class="{% if c.is_pinned %}hidden{% endif %}">
|
||||||
<i class="fas fa-thumbtack fa-rotate--45 fa-fw mr-4"></i>Pin
|
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/sticky_comment/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')">
|
||||||
</button>
|
<i class="fas fa-thumbtack fa-rotate--45 fa-fw mr-4"></i>Pin
|
||||||
</li>
|
</button>
|
||||||
<li id="unpin2-{{c.id}}" class="{% if not c.is_pinned %}hidden{% endif %}">
|
</li>
|
||||||
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/pin_comment/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')">
|
<li id="unpin2-{{c.id}}" class="{% if not c.is_pinned %}hidden{% endif %}">
|
||||||
<i class="fas fa-thumbtack fa-rotate--45 fa-fw mr-4"></i>Unpin
|
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/unsticky_comment/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')">
|
||||||
</button>
|
<i class="fas fa-thumbtack fa-rotate--45 fa-fw mr-4"></i>Unpin
|
||||||
</li>
|
</button>
|
||||||
|
</li>
|
||||||
|
{% elif v.id == c.post.author_id %}
|
||||||
|
<li id="pin2-{{c.id}}" class="{% if c.is_pinned %}hidden{% endif %}">
|
||||||
|
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/pin_comment/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')">
|
||||||
|
<i class="fas fa-thumbtack fa-rotate--45 fa-fw mr-4"></i>Pin
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
<li id="unpin2-{{c.id}}" class="{% if not c.is_pinned %}hidden{% endif %}">
|
||||||
|
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/unpin_comment/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')">
|
||||||
|
<i class="fas fa-thumbtack fa-rotate--45 fa-fw mr-4"></i>Unpin
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if v %}
|
{% if v %}
|
||||||
{% if v.admin_level > 0 and v.id==c.author_id %}
|
{% if v.admin_level > 0 and v.id==c.author_id %}
|
||||||
|
|
Loading…
Reference in New Issue