forked from rDrama/rDrama
fix
parent
31398579b0
commit
9d3eafc46f
|
@ -80,7 +80,7 @@
|
||||||
<button class="btn btn-gray" onclick="post_toast2('/save_post/{{p.id}}','save2-{{p.id}}','unsave2-{{p.id}}')">
|
<button class="btn btn-gray" onclick="post_toast2('/save_post/{{p.id}}','save2-{{p.id}}','unsave2-{{p.id}}')">
|
||||||
<i class="far fa-save text-center text-muted mr-3"></i>Save
|
<i class="far fa-save text-center text-muted mr-3"></i>Save
|
||||||
</button>
|
</button>
|
||||||
<li>
|
</li>
|
||||||
|
|
||||||
<li id="unsave2-{{p.id}}" class="{% if not p.id in v.saved_idlist() %}hidden{% endif %}">
|
<li id="unsave2-{{p.id}}" class="{% if not p.id in v.saved_idlist() %}hidden{% endif %}">
|
||||||
<button id="btn btn-gray" onclick="post_toast2('/unsave_post/{{p.id}}','save2-{{p.id}}','unsave2-{{p.id}}')">
|
<button id="btn btn-gray" onclick="post_toast2('/unsave_post/{{p.id}}','save2-{{p.id}}','unsave2-{{p.id}}')">
|
||||||
|
@ -102,11 +102,27 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if v.admin_level > 0 %}
|
{% if v.admin_level > 0 %}
|
||||||
<button id="pin2-{{p.id}}" class="{% if p.stickied %}hidden{% endif %} nobackground btn btn-link btn-block btn-lg text-left" href="javascript:void(0)" onclick="post_toast2('/sticky/{{p.id}}','pin2-{{p.id}}','unpin2-{{p.id}}')" data-bs-dismiss="modal"><i class="fas fa-thumbtack fa-rotate--45 text-center mr-3"></i>Pin</button>
|
<li id="pin2-{{p.id}}" class="{% if p.stickied %}hidden{% endif %}">
|
||||||
<button id="unpin2-{{p.id}}" class="{% if not p.stickied %}hidden{% endif %} nobackground btn btn-link btn-block btn-lg text-left" href="javascript:void(0)" onclick="post_toast2('/sticky/{{p.id}}','pin2-{{p.id}}','unpin2-{{p.id}}')" data-bs-dismiss="modal"><i class="fas fa-thumbtack fa-rotate--45 text-center mr-3"></i>Unpin</button>
|
<button class="btn btn-gray" onclick="post_toast2('/sticky/{{p.id}}','pin2-{{p.id}}','unpin2-{{p.id}}')">
|
||||||
|
<i class="fas fa-thumbtack fa-rotate--45 text-center mr-3"></i>Pin
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
<li id="unpin2-{{p.id}}" class="{% if not p.stickied %}hidden{% endif %}">
|
||||||
|
<button class="btn btn-gray" onclick="post_toast2('/sticky/{{p.id}}','pin2-{{p.id}}','unpin2-{{p.id}}')">
|
||||||
|
<i class="fas fa-thumbtack fa-rotate--45 text-center mr-3"></i>Unpin
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
{% if v==p.author %}
|
{% if v==p.author %}
|
||||||
<button id="distinguish2-{{p.id}}" class="{% if p.distinguish_level %}hidden{% endif %} nobackground btn btn-link btn-block btn-lg text-left" href="javascript:void(0)" onclick="post_toast2('/distinguish/{{p.id}}','distinguish2-{{p.id}}','undistinguish2-{{p.id}}')" data-bs-dismiss="modal"><i class="fas fa-crown text-center mr-3"></i>Distinguish</button>
|
<li id="distinguish2-{{p.id}}" class="{% if p.distinguish_level %}hidden{% endif %}">
|
||||||
<button id="undistinguish2-{{p.id}}" class="{% if not p.distinguish_level %}hidden{% endif %} nobackground btn btn-link btn-block btn-lg text-left" href="javascript:void(0)" onclick="post_toast2('/distinguish/{{p.id}}','distinguish2-{{p.id}}','undistinguish2-{{p.id}}')" data-bs-dismiss="modal"><i class="fas fa-crown text-center mr-3"></i>Undistinguish</button>
|
<button class="btn btn-gray" onclick="post_toast2('/distinguish/{{p.id}}','distinguish2-{{p.id}}','undistinguish2-{{p.id}}')">
|
||||||
|
<i class="fas fa-crown text-center mr-3"></i>Distinguish
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
<li id="undistinguish2-{{p.id}}" class="{% if not p.distinguish_level %}hidden{% endif %}">
|
||||||
|
<button class="btn btn-gray" onclick="post_toast2('/distinguish/{{p.id}}','distinguish2-{{p.id}}','undistinguish2-{{p.id}}')">
|
||||||
|
<i class="fas fa-crown text-center mr-3"></i>Undistinguish
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if "/reported/" in request.path %}
|
{% if "/reported/" in request.path %}
|
||||||
|
|
Loading…
Reference in New Issue