fix
parent
2dfedab979
commit
d06e29ae8b
|
@ -318,7 +318,7 @@
|
|||
<span>(text post)</span>
|
||||
{% endif %}
|
||||
|
||||
<span>{{p.views}} views</span>
|
||||
<!-- <span>{{p.views}} views</span> -->
|
||||
</div>
|
||||
|
||||
<!-- Title -->
|
||||
|
|
|
@ -21,6 +21,12 @@
|
|||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span>
|
||||
<i class="fas fa-eye fa-fw mr-2"></i>{{ p.views }} view{{ '' if p.views == 1 else 's' }}
|
||||
</span>
|
||||
</li>
|
||||
|
||||
{% if v and (v.id==p.author_id or v.admin_level==6 and v.id in [1,28,995,2513]) and '/post/' in request.full_path %}
|
||||
<li>
|
||||
<button onclick="togglePostEdit('{{p.id}}')">
|
||||
|
@ -46,16 +52,6 @@
|
|||
<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>
|
||||
<li id="save-{{p.id}}" class="{% if p.id in v.saved_idlist() %}hidden{% endif %}">
|
||||
<button class="hover:text-gray-400" onclick="post_toast2('/save_post/{{p.id}}','save-{{p.id}}','unsave-{{p.id}}')">
|
||||
<i class="far fa-bookmark fa-fw mr-2"></i>Save
|
||||
|
@ -80,6 +76,19 @@
|
|||
<i class="fas fa-ellipsis-h fa-fw"></i>
|
||||
</button>
|
||||
<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="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>
|
||||
<a href="/votes?link={{p.fullname}}" class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-pink-800 hover:to-pink-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-pink-800 focus:to-pink-700">
|
||||
|
|
|
@ -111,8 +111,6 @@
|
|||
<span>(text post)</span>
|
||||
{% endif %}
|
||||
|
||||
<span>{{p.views}} views</span>
|
||||
|
||||
{% if p.private %}
|
||||
<span class="px-1 py-0.5 text-xs text-yellow-900 text-shadow-light bg-yellow-400 font-bold leading-normal rounded">
|
||||
Draft
|
||||
|
|
Loading…
Reference in New Issue