forked from rDrama/rDrama
fix
parent
b27dfe8efb
commit
378114d487
|
@ -21,30 +21,30 @@
|
|||
{% if p.private %}
|
||||
<li>
|
||||
<button class="btn btn-gray w-full text-left" onclick="post_toast('/publish/{{p.id}}')" data-bs-dismiss="modal">
|
||||
<i class="fas fa-globe fa-fw mr-2"></i>Publish
|
||||
<i class="fas fa-globe fa-fw mr-4"></i>Publish
|
||||
</button>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li id="pin-profile2-{{p.id}}" class="{% if p.is_pinned %}hidden{% endif %}">
|
||||
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/pin/{{p.id}}','pin-profile2-{{p.id}}','unpin-profile2-{{p.id}}')">
|
||||
<i class="fas fa-thumbtack fa-rotate--45 fa-fw mr-2"></i>Pin to profile
|
||||
<i class="fas fa-thumbtack fa-rotate--45 fa-fw mr-4"></i>Pin to profile
|
||||
</button>
|
||||
</li>
|
||||
<li id="unpin-profile2-{{p.id}}" class="{% if not p.is_pinned %}hidden{% endif %}">
|
||||
<button class="nobackground btn btn-link btn-block btn-lg text-muted text-left" onclick="post_toast2('/pin/{{p.id}}','pin-profile2-{{p.id}}','unpin-profile2-{{p.id}}')">
|
||||
<i class="fas fa-thumbtack fa-rotate--45 fa-fw mr-2"></i>Unpin from profile
|
||||
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/pin/{{p.id}}','pin-profile2-{{p.id}}','unpin-profile2-{{p.id}}')">
|
||||
<i class="fas fa-thumbtack fa-rotate--45 fa-fw mr-4"></i>Unpin from profile
|
||||
</button>
|
||||
</li>
|
||||
{% if p.deleted_utc > 0 %}
|
||||
<li>
|
||||
<button class="btn btn-gray w-full text-left" onclick="post_toast('/undelete_post/{{p.id}}')" data-bs-dismiss="modal">
|
||||
<i class="far fa-trash-alt text-center text-muted mr-3"></i>Undelete
|
||||
<i class="far fa-trash-alt fa-fw mr-4"></i>Undelete
|
||||
</button>
|
||||
</li>
|
||||
{% else %}
|
||||
<li>
|
||||
<button class="btn btn-gray w-full text-left" data-bs-toggle="modal" data-bs-dismiss="modal" data-bs-target="#deletePostModal" onclick="delete_postModal('{{p.id}}')">
|
||||
<i class="far fa-trash-alt fa-fw mr-2"></i>Delete
|
||||
<i class="far fa-trash-alt fa-fw mr-4"></i>Delete
|
||||
</button>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
@ -52,14 +52,14 @@
|
|||
|
||||
<li>
|
||||
<a class="btn btn-gray w-full text-left" href="/votes?link={{p.fullname}}">
|
||||
<i class="fas fa-arrows-v fa-fw mr-2"></i>Votes
|
||||
<i class="fas fa-arrows-v fa-fw mr-4"></i>Votes
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{% if v %}
|
||||
<li>
|
||||
<button class="btn btn-gray w-full text-left" data-bs-toggle="modal" data-bs-dismiss="modal" data-bs-target="#awardModal" onclick="awardModal('/post/{{p.id}}/awards')">
|
||||
<i class="fas fa-gift fa-fw mr-2"></i>Give Award
|
||||
<i class="fas fa-gift fa-fw mr-4"></i>Give Award
|
||||
</button>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
@ -67,37 +67,37 @@
|
|||
{% if v %}
|
||||
<li id="subscribe2-{{p.id}}" class="{% if p.id in v.subscribed_idlist() %}hidden{% endif %}">
|
||||
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/subscribe/{{p.id}}','subscribe2-{{p.id}}','unsubscribe2-{{p.id}}')">
|
||||
<i class="fas fa-eye fa-fw mr-2"></i>Subscribe
|
||||
<i class="fas fa-eye fa-fw mr-4"></i>Subscribe
|
||||
</button>
|
||||
</li>
|
||||
|
||||
<li id="unsubscribe2-{{p.id}}" class="{% if not p.id in v.subscribed_idlist() %}hidden{% endif %}">
|
||||
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/unsubscribe/{{p.id}}','subscribe2-{{p.id}}','unsubscribe2-{{p.id}}')">
|
||||
<i class="fas fa-eye-slash fa-fw mr-2"></i>Unsubscribe
|
||||
<i class="fas fa-eye-slash fa-fw mr-4"></i>Unsubscribe
|
||||
</button>
|
||||
</li>
|
||||
|
||||
<li id="save2-{{p.id}}" class="{% if p.id in v.saved_idlist() %}hidden{% endif %}">
|
||||
<button class="btn btn-gray w-full text-left" 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 fa-fw mr-4"></i>Save
|
||||
</button>
|
||||
</li>
|
||||
|
||||
<li id="unsave2-{{p.id}}" class="{% if not p.id in v.saved_idlist() %}hidden{% endif %}">
|
||||
<button id="btn btn-gray w-full text-left" onclick="post_toast2('/unsave_post/{{p.id}}','save2-{{p.id}}','unsave2-{{p.id}}')">
|
||||
<i class="fas fa-save text-center text-muted mr-3"></i>Unsave
|
||||
<i class="fas fa-save fa-fw mr-4"></i>Unsave
|
||||
</button>
|
||||
</li>
|
||||
|
||||
{% if v.admin_level > 1 or v.id == p.author.id and v.paid_dues %}
|
||||
<li id="club2-{{p.id}}" class="{% if p.club %}hidden{% endif %}">
|
||||
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/toggle_club/{{p.id}}','club2-{{p.id}}','unclub2-{{p.id}}')">
|
||||
<i class="fas fa-eye-slash mr-3"></i>Mark club
|
||||
<i class="fas fa-eye-slash fa-fw mr-4"></i>Mark club
|
||||
</button>
|
||||
</li>
|
||||
<li id="unclub2-{{p.id}}" class="{% if not p.club %}hidden{% endif %}">
|
||||
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/toggle_club/{{p.id}}','club2-{{p.id}}','unclub2-{{p.id}}')">
|
||||
<i class="fas fa-eye mr-3"></i>Unmark club
|
||||
<i class="fas fa-eye fa-fw mr-4"></i>Unmark club
|
||||
</button>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
@ -105,38 +105,44 @@
|
|||
{% if v.admin_level > 0 %}
|
||||
<li id="pin2-{{p.id}}" class="{% if p.stickied %}hidden{% endif %}">
|
||||
<button class="btn btn-gray w-full text-left" 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
|
||||
<i class="fas fa-thumbtack fa-rotate--45 fa-fw mr-4"></i>Pin
|
||||
</button>
|
||||
</li>
|
||||
<li id="unpin2-{{p.id}}" class="{% if not p.stickied %}hidden{% endif %}">
|
||||
<button class="btn btn-gray w-full text-left" 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
|
||||
<i class="fas fa-thumbtack fa-rotate--45 fa-fw mr-4"></i>Unpin
|
||||
</button>
|
||||
</li>
|
||||
{% if v==p.author %}
|
||||
<li id="distinguish2-{{p.id}}" class="{% if p.distinguish_level %}hidden{% endif %}">
|
||||
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/distinguish/{{p.id}}','distinguish2-{{p.id}}','undistinguish2-{{p.id}}')">
|
||||
<i class="fas fa-crown text-center mr-3"></i>Distinguish
|
||||
<i class="fas fa-crown fa-fw mr-4"></i>Distinguish
|
||||
</button>
|
||||
</li>
|
||||
<li id="undistinguish2-{{p.id}}" class="{% if not p.distinguish_level %}hidden{% endif %}">
|
||||
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/distinguish/{{p.id}}','distinguish2-{{p.id}}','undistinguish2-{{p.id}}')">
|
||||
<i class="fas fa-crown text-center mr-3"></i>Undistinguish
|
||||
<i class="fas fa-crown fa-fw mr-4"></i>Undistinguish
|
||||
</button>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li id="remove2-{{p.id}}" class="{% if p.is_banned %}hidden{% endif %}">
|
||||
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/ban_post/{{p.id}}','remove2-{{p.id}}','approve2-{{p.id}}')">
|
||||
<i class="far fa-ban fa-fw mr-4"></i>Remove
|
||||
</button>
|
||||
</li>
|
||||
<li id="approve2-{{p.id}}" class="{% if not p.is_banned %}hidden{% endif %}">
|
||||
<button class="btn btn-gray w-full text-left" onclick="post_toast2('/unban_post/{{p.id}}','remove2-{{p.id}}','approve2-{{p.id}}')">
|
||||
<i class="far fa-check fa-fw mr-4"></i>Approve
|
||||
</button>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if "/reported/" in request.path %}
|
||||
<button class="nobackground btn btn-link btn-block btn-lg text-danger text-left" href="javascript:void(0)" onclick="post_toast('/ban_post/{{p.id}}')" data-bs-dismiss="modal"><i class="far fa-ban text-center mr-3"></i>Remove</button>
|
||||
<button class="nobackground btn btn-link btn-block btn-lg text-success text-left" href="javascript:void(0)" onclick="post_toast('/unban_post/{{p.id}}')" data-bs-dismiss="modal"><i class="far fa-check text-center mr-3"></i>Approve</button>
|
||||
{% else %}
|
||||
<button id="remove2-{{p.id}}" class="{% if p.is_banned %}hidden{% endif %} nobackground btn btn-link btn-block btn-lg text-danger text-left" href="javascript:void(0)" onclick="post_toast2('/ban_post/{{p.id}}','remove2-{{p.id}}','approve2-{{p.id}}')" data-bs-dismiss="modal"><i class="far fa-ban text-center mr-3"></i>Remove</button>
|
||||
<button id="approve2-{{p.id}}" class="{% if not p.is_banned %}hidden{% endif %} nobackground btn btn-link btn-block btn-lg text-success text-left" href="javascript:void(0)" onclick="post_toast2('/unban_post/{{p.id}}','remove2-{{p.id}}','approve2-{{p.id}}')" data-bs-dismiss="modal"><i class="far fa-check text-center mr-3"></i>Approve</button>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if v.admin_level > 1 and p.oauth_app %}
|
||||
<a href="{{p.oauth_app.permalink}}"><button class="nobackground btn btn-link btn-block btn-lg text-muted text-left"><i class="far fa-code text-center text-info mr-3"></i>API App</button></a>
|
||||
<li>
|
||||
<a href="{{p.oauth_app.permalink}}" class="btn btn-gray w-full text-left">
|
||||
<i class="far fa-code fa-fw mr-4"></i>API App
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue