fix
parent
b8f1f0dd3a
commit
ff4e8836ea
|
@ -55,6 +55,16 @@
|
|||
<i class="fas fa-gift fa-fw mr-2"></i>Give Award
|
||||
</button>
|
||||
</li>
|
||||
<li id="subscribe-{{p.id}}" class="{% if p.id in v.subscribed_idlist() %}hidden{% endif %}">
|
||||
<button class="hover:text-gray-400" onclick="post_toast2('/subscribe/{{p.id}}','subscribe-{{p.id}}','unsubscribe-{{p.id}}')">
|
||||
<i class="fas fa-bell fa-fw mr-2"></i>Subscribe
|
||||
</button>
|
||||
</li>
|
||||
<li id="unsubscribe-{{p.id}}" class="{% if p.id not in v.subscribed_idlist() %}hidden{% endif %}">
|
||||
<button class="hover:text-gray-400" onclick="post_toast2('/unsubscribe/{{p.id}}','subscribe-{{p.id}}','unsubscribe-{{p.id}}')">
|
||||
<i class="fas fa-bell-slash fa-fw mr-2"></i>Unsubscribe
|
||||
</button>
|
||||
</li>
|
||||
{% endif %}
|
||||
<!-- Does not require auth -->
|
||||
<li>
|
||||
|
@ -75,16 +85,6 @@
|
|||
<ul class="dropdown-menu w-56 bg-gray-900 rounded-md shadow-lg" aria-labelledby="dropdownPostActions">
|
||||
<!-- Requies auth -->
|
||||
{% if v %}
|
||||
<li id="subscribe-{{p.id}}" class="{% if p.id in v.subscribed_idlist() %}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('/subscribe/{{p.id}}','subscribe-{{p.id}}','unsubscribe-{{p.id}}')">
|
||||
<i class="fas fa-bell fa-fw fa-sm fa-fw mr-4"></i>Subscribe
|
||||
</button>
|
||||
</li>
|
||||
<li id="unsubscribe-{{p.id}}" class="{% if p.id not in v.subscribed_idlist() %}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('/unsubscribe/{{p.id}}','subscribe-{{p.id}}','unsubscribe-{{p.id}}')">
|
||||
<i class="fas fa-bell-slash fa-sm fa-fw mr-4"></i>Unsubscribe
|
||||
</button>
|
||||
</li>
|
||||
<li id="save-{{p.id}}" class="{% if p.id in v.saved_idlist() %}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('/save_post/{{p.id}}','save-{{p.id}}','unsave-{{p.id}}')">
|
||||
<i class="far fa-bookmark fa-sm fa-fw mr-4"></i>Save
|
||||
|
|
Loading…
Reference in New Issue