forked from rDrama/rDrama
fix
parent
45eef28b7b
commit
f742f6fe40
|
@ -89,31 +89,31 @@
|
||||||
<ul class="dropdown-menu w-56 bg-gray-900 rounded-md shadow-lg" aria-labelledby="dropdownPostActions">
|
<ul class="dropdown-menu w-56 bg-gray-900 rounded-md shadow-lg" aria-labelledby="dropdownPostActions">
|
||||||
<!-- Does not require auth -->
|
<!-- Does not require auth -->
|
||||||
<li class="hidden">
|
<li class="hidden">
|
||||||
<button class="copy-link 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" role="button" data-clipboard-text="{% if 'rama' in request.host %}https://freeghettohoes.biz{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}">
|
<button class="copy-link dropdown-item dropdown-item-primary" role="button" data-clipboard-text="{% if 'rama' in request.host %}https://freeghettohoes.biz{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}">
|
||||||
<i class="fas fa-link fa-sm fa-fw mr-4"></i>Copy link
|
<i class="fas fa-link fa-sm fa-fw mr-4"></i>Copy link
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<!-- Requires author -->
|
<!-- Requires author -->
|
||||||
{% if v and v.id==p.author_id %}
|
{% if v and v.id==p.author_id %}
|
||||||
<li id="pin-profile-{{p.id}}" class="{% if p.is_stickied %}hidden{% endif %}">
|
<li id="pin-profile-{{p.id}}" class="{% if p.is_stickied %}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('/pin/{{p.id}}','unpin-profile-{{p.id}}','pin-profile-{{p.id}}')">
|
<button class="dropdown-item dropdown-item-primary" onclick="post_toast2('/pin/{{p.id}}','unpin-profile-{{p.id}}','pin-profile-{{p.id}}')">
|
||||||
<i class="fas fa-thumbtack fa-rotate--45 fa-sm fa-fw mr-4"></i>Pin to profile
|
<i class="fas fa-thumbtack fa-rotate--45 fa-sm fa-fw mr-4"></i>Pin to profile
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li id="unpin-profile-{{p.id}}" class="{% if not p.is_stickied %}hidden{% endif %}">
|
<li id="unpin-profile-{{p.id}}" class="{% if not p.is_stickied %}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('/pin/{{p.id}}','unpin-profile-{{p.id}}','pin-profile-{{p.id}}')">
|
<button class="dropdown-item dropdown-item-primary" onclick="post_toast2('/pin/{{p.id}}','unpin-profile-{{p.id}}','pin-profile-{{p.id}}')">
|
||||||
<i class="fas fa-thumbtack fa-rotate--45 fa-sm fa-fw mr-4"></i>Unpin from profile
|
<i class="fas fa-thumbtack fa-rotate--45 fa-sm fa-fw mr-4"></i>Unpin from profile
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
{% if p.deleted_utc > 0 %}
|
{% if p.deleted_utc > 0 %}
|
||||||
<li>
|
<li>
|
||||||
<button class="dropdown-item 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_toast('/undelete_post/{{p.id}}')">
|
<button class="dropdown-item dropdown-item dropdown-item-primary" onclick="post_toast('/undelete_post/{{p.id}}')">
|
||||||
<i class="fas fa-trash-alt fa-sm fa-fw mr-4"></i>Undelete
|
<i class="fas fa-trash-alt fa-sm fa-fw mr-4"></i>Undelete
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li>
|
<li>
|
||||||
<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" data-bs-toggle="modal" data-bs-dismiss="modal" data-bs-target="#deletePostModal" onclick="delete_postModal('{{p.id}}')">
|
<button class="dropdown-item dropdown-item-primary" data-bs-toggle="modal" data-bs-dismiss="modal" data-bs-target="#deletePostModal" onclick="delete_postModal('{{p.id}}')">
|
||||||
<i class="fas fa-trash-alt fa-sm fa-fw mr-4"></i>Delete
|
<i class="fas fa-trash-alt fa-sm fa-fw mr-4"></i>Delete
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
@ -125,24 +125,24 @@
|
||||||
<!-- Requires auth and admin -->
|
<!-- Requires auth and admin -->
|
||||||
{% if v and v.admin_level>=3 %}
|
{% if v and v.admin_level>=3 %}
|
||||||
<li id="pin-{{p.id}}" class="{% if p.stickied %}hidden{% endif %}">
|
<li id="pin-{{p.id}}" class="{% if p.stickied %}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('/sticky/{{p.id}}','pin-{{p.id}}','unpin-{{p.id}}')">
|
<button class="dropdown-item dropdown-item-primary" onclick="post_toast2('/sticky/{{p.id}}','pin-{{p.id}}','unpin-{{p.id}}')">
|
||||||
<i class="fas fa-thumbtack fa-rotate--45 fa-sm fa-fw mr-4"></i>Pin
|
<i class="fas fa-thumbtack fa-rotate--45 fa-sm fa-fw mr-4"></i>Pin
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li id="unpin-{{p.id}}" class="{% if not p.stickied %}hidden{% endif %}">
|
<li id="unpin-{{p.id}}" class="{% if not p.stickied %}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('/sticky/{{p.id}}','/sticky/{{p.id}}','pin-{{p.id}}','unpin-{{p.id}}')">
|
<button class="dropdown-item dropdown-item-primary" onclick="post_toast2('/sticky/{{p.id}}','/sticky/{{p.id}}','pin-{{p.id}}','unpin-{{p.id}}')">
|
||||||
<i class="fas fa-thumbtack fa-rotate--45 fa-sm fa-fw mr-4"></i>Unpin
|
<i class="fas fa-thumbtack fa-rotate--45 fa-sm fa-fw mr-4"></i>Unpin
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<!-- Requires author -->
|
<!-- Requires author -->
|
||||||
{% if v==p.author %}
|
{% if v==p.author %}
|
||||||
<li id="distinguish-{{p.id}}" class="{% if p.distinguish_level %}hidden{% endif %}">
|
<li id="distinguish-{{p.id}}" class="{% if p.distinguish_level %}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('/distinguish/{{p.id}}','distinguish-{{p.id}}','undistinguish-{{p.id}}')">
|
<button class="dropdown-item dropdown-item-primary" onclick="post_toast2('/distinguish/{{p.id}}','distinguish-{{p.id}}','undistinguish-{{p.id}}')">
|
||||||
<i class="fas fa-crown fa-sm fa-fw mr-4"></i>Distinguish
|
<i class="fas fa-crown fa-sm fa-fw mr-4"></i>Distinguish
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li id="undistinguish-{{p.id}}" class="{% if not p.distinguish_level %}hidden{% endif %}">
|
<li id="undistinguish-{{p.id}}" class="{% if not p.distinguish_level %}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('/distinguish/{{p.id}}','distinguish-{{p.id}}','undistinguish-{{p.id}}')">
|
<button class="dropdown-item dropdown-item-primary" onclick="post_toast2('/distinguish/{{p.id}}','distinguish-{{p.id}}','undistinguish-{{p.id}}')">
|
||||||
<i class="fas fa-crown fa-sm fa-fw mr-4"></i>Undistinguish
|
<i class="fas fa-crown fa-sm fa-fw mr-4"></i>Undistinguish
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
@ -155,12 +155,12 @@
|
||||||
<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>
|
||||||
<li id="club-{{p.id}}" class="{% if p.club %}hidden{% endif %}">
|
<li id="club-{{p.id}}" class="{% if p.club %}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_club/{{p.id}}','club-{{p.id}}','unclub-{{p.id}}')">
|
<button class="dropdown-item dropdown-item-primary" onclick="post_toast2('/toggle_club/{{p.id}}','club-{{p.id}}','unclub-{{p.id}}')">
|
||||||
<i class="fas fa-eye-slash fa-sm fa-fw mr-4"></i>Mark club
|
<i class="fas fa-eye-slash fa-sm fa-fw mr-4"></i>Mark club
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li id="unclub-{{p.id}}" class="{% if not p.club %}hidden{% endif %}">
|
<li id="unclub-{{p.id}}" class="{% if not p.club %}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_club/{{p.id}}','club-{{p.id}}','unclub-{{p.id}}')"><i class="fas fa-eye fa-sm fa-fw mr-4"></i>Unmark club
|
<button class="dropdown-item dropdown-item-primary" onclick="post_toast2('/toggle_club/{{p.id}}','club-{{p.id}}','unclub-{{p.id}}')"><i class="fas fa-eye fa-sm fa-fw mr-4"></i>Unmark club
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -175,7 +175,7 @@
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li id="approve-{{p.id}}" class="{% if not p.is_banned %}hidden{% endif %}">
|
<li id="approve-{{p.id}}" class="{% if not 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}}')">
|
<button class="dropdown-item dropdown-item-primary" 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
|
<i class="fas fa-check fa-sm fa-fw mr-4"></i>Approve
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
@ -188,7 +188,7 @@
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li id="unmark-{{p.id}}" class="{% if not p.over_18 %}hidden{% endif %}">
|
<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}}')">
|
<button class="dropdown-item dropdown-item-primary" 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
|
<i class="fas fa-eye-evil fa-sm fa-fw mr-4"></i>Unmark +18
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
@ -201,7 +201,7 @@
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li id="unsex-user-{{p.id}}" class="{% if not p.is_blocking %}hidden{% endif %}">
|
<li id="unsex-user-{{p.id}}" class="{% if not p.is_blocking %}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('/settings/unblock?username={{p.author.username}}','sex-user-{{p.id}}','unsex-user-{{p.id}}')">
|
<button class="dropdown-item dropdown-item-primary" onclick="post_toast2('/settings/unblock?username={{p.author.username}}','sex-user-{{p.id}}','unsex-user-{{p.id}}')">
|
||||||
<i class="fas fa-user-check fa-sm fa-fw mr-4"></i>Unban user
|
<i class="fas fa-user-check fa-sm fa-fw mr-4"></i>Unban user
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
@ -214,7 +214,7 @@
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li id="unban-{{p.id}}" class="{% if not p.author.is_suspended %}hidden{% endif %}">
|
<li id="unban-{{p.id}}" class="{% if not p.author.is_suspended %}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" id="unexile2-user-{{p.id}}" onclick="post_toast2('/unban_user/{{p.author_id}}','ban-{{p.id}}','unban-{{p.id}}')">
|
<button class="dropdown-item dropdown-item-primary" id="unexile2-user-{{p.id}}" onclick="post_toast2('/unban_user/{{p.author_id}}','ban-{{p.id}}','unban-{{p.id}}')">
|
||||||
<i class="fas fa-user-check fa-sm fa-fw mr-4"></i>Unban user
|
<i class="fas fa-user-check fa-sm fa-fw mr-4"></i>Unban user
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
@ -223,7 +223,7 @@
|
||||||
<!-- Requires super admin and app -->
|
<!-- Requires super admin and app -->
|
||||||
{% if v.admin_level >= 4 and p.oauth_app %}
|
{% if v.admin_level >= 4 and p.oauth_app %}
|
||||||
<li>
|
<li>
|
||||||
<a 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" href="{{p.oauth_app.permalink}}">
|
<a class="dropdown-item dropdown-item-primary" href="{{p.oauth_app.permalink}}">
|
||||||
<i class="fas fa-code fa-sm fa-fw mr-4"></i>API App
|
<i class="fas fa-code fa-sm fa-fw mr-4"></i>API App
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -239,12 +239,12 @@
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li id="prompt-{{p.id}}" class="blockuser hidden">
|
<li id="prompt-{{p.id}}" class="blockuser hidden">
|
||||||
<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('/settings/block?username={{p.author.username}}','prompt-{{p.id}}','unblock-{{p.id}}')">
|
<button class="dropdown-item dropdown-item-primary" onclick="post_toast2('/settings/block?username={{p.author.username}}','prompt-{{p.id}}','unblock-{{p.id}}')">
|
||||||
<i class="fas fa-question-circle fa-sm fa-fw mr-4"></i>Are you sure?
|
<i class="fas fa-question-circle fa-sm fa-fw mr-4"></i>Are you sure?
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li id="block-{{p.id}}" class="text-red-600 blockuser{% if p.is_blocking %} hidden{% endif %}">
|
<li id="block-{{p.id}}" class="text-red-600 blockuser{% if p.is_blocking %} 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="document.getElementById('block-{{p.id}}').classList.toggle('hidden');document.getElementById('prompt-{{p.id}}').classList.toggle('hidden');">
|
<button class="dropdown-item dropdown-item-primary" onclick="document.getElementById('block-{{p.id}}').classList.toggle('hidden');document.getElementById('prompt-{{p.id}}').classList.toggle('hidden');">
|
||||||
<i class="fas fa-user-slash fa-sm fa-fw mr-4"></i>Block user
|
<i class="fas fa-user-slash fa-sm fa-fw mr-4"></i>Block user
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
@ -254,7 +254,7 @@
|
||||||
<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>
|
||||||
<li class="text-red-600">
|
<li class="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"data-bs-toggle="modal" data-bs-dismiss="modal" data-bs-target="#reportPostModal" onclick="report_postModal('{{p.id}}')">
|
<button class="dropdown-item dropdown-item-primary"data-bs-toggle="modal" data-bs-dismiss="modal" data-bs-target="#reportPostModal" onclick="report_postModal('{{p.id}}')">
|
||||||
<i class="fas fa-flag fa-sm fa-fw mr-4"></i>Report
|
<i class="fas fa-flag fa-sm fa-fw mr-4"></i>Report
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue