remotes/1693045480750635534/spooky-22
kek7198 2021-12-02 21:26:53 -06:00
parent 666c43d512
commit 13cc16594b
1 changed files with 3 additions and 3 deletions

View File

@ -228,17 +228,17 @@
</li>
<li id="unblock-{{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-green-800 hover:to-green-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-green-800 focus:to-green-700" onclick="post_toast2('/settings/unblock?username={{p.author.username}}','block-{{p.id}}','unblock-{{p.id}}')">
<i class="fas fa-eye text-success fa-fw mr-4"></i>Unblock user
<i class="fas fa-user-check fa-sm fa-fw mr-4"></i>Unblock user
</button>
</li>
<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}}')">
<i class="fas fa-eye-slash 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>
</li>
<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');">
<i class="fas fa-eye-slash fa-fw mr-4"></i>Block user
<i class="fas fa-user-slash fa-sm fa-fw mr-4"></i>Block user
</button>
</li>
{% endif %}