forked from rDrama/rDrama
fix
parent
95f20a8d6e
commit
f5ff9f98f9
|
@ -534,41 +534,10 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
|
||||
<!-- {% if v %}
|
||||
<div id="voting" class="shadow-inner shadow-md rounded-md flex flex-col mb-1 py-2 items-center w-16 border-opacity-40 border border-gray-700 bg-gray-700 text-gray-500">
|
||||
<button id="post-{{p.id}}-up" tabindex="0" onclick="vote('post', '{{p.id}}', '1')" class="mx-auto arrow-up upvote-button post-{{p.id}}-up {% if voted==1 %}active{% endif %}"></button>
|
||||
<span id="post-score-{{p.id}}" class="font-bold text-lg post-score-{{p.id}} {% if voted==1 %}score-up{% elif voted==-1%}score-down{% endif %}" data-bs-toggle="tooltip" data-bs-placement="right" title="" data-bs-original-title="+{{ups}} | -{{downs}}">{{score}}</span>
|
||||
<div {% if environ.get('DISABLE_DOWNVOTES') == '1' %}style="display:None!important"{% endif %} id="post-{{p.id}}-down" tabindex="0" href="javascript:void(0)" onclick="vote('post', '{{p.id}}', '-1')" class="text-muted mx-auto arrow-down downvote-button post-{{p.id}}-down {% if voted==-1 %}active{% endif %}"></div>
|
||||
</div>
|
||||
|
||||
<button id="post-{{p.id}}-up" class="flex items-center justify-center text-xs font-bold mb-1 rounded-md w-full border p-1 border-gray-800 post-{{p.id}}-up text-gray-500 hover:text-pink-500 focus:text-pink-500" onclick="vote('post', '{{p.id}}', '1')">
|
||||
+ <i class="fas fa-heart fa-sm fa-fw pl-1"></i>
|
||||
</button>
|
||||
|
||||
{% if environ.get('DISABLE_DOWNVOTES') != '1' %}
|
||||
<button id="post-{{p.id}}-down" class="text-gray-600 text-center text-xs post-{{p.id}}-down {% if voted==-1 %}active{% endif %}" onclick="vote('post', '{{p.id}}', '-1')">
|
||||
Dislike
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
Logged out score
|
||||
<div id="voting" class="shadow-inner shadow-md rounded-md flex flex-col mb-1 py-2 items-center w-16 border-opacity-40 border border-gray-700 bg-gray-700 text-gray-500">
|
||||
<span id="post-score-{{p.id}}" class="font-bold text-lg post-score-{{p.id}}" data-bs-toggle="tooltip" data-bs-placement="right" title="" data-bs-original-title="+{{ups}} | -{{downs}}">{{score}}</span>
|
||||
</div>
|
||||
Logged out upvote (links to login)
|
||||
<button id="post-{{p.id}}-up" class="flex items-center justify-center text-xs font-bold mb-1 rounded-md w-full border p-1 border-gray-800 post-{{p.id}}-up text-gray-500 hover:text-pink-500 focus:text-pink-500" onclick="location.href='/login?redirect={{request.path | urlencode}}';">
|
||||
+ <i class="fas fa-heart fa-sm fa-fw pl-1"></i>
|
||||
</button>
|
||||
Logged out downvote (links to login)
|
||||
{% if environ.get('DISABLE_DOWNVOTES') != '1' %}
|
||||
<button id="post-{{p.id}}-down" class="text-gray-600 text-center text-xs post-{{p.id}}-down" onclick="location.href='/login?redirect={{request.path | urlencode}}';">
|
||||
Dislike
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% endif %} -->
|
||||
|
||||
<div class="md:hidden px-2.5">
|
||||
{% include "/submission/SubmissionActionsMobile.html" %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -584,10 +553,6 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="md:hidden px-2.5">
|
||||
{% include "/submission/SubmissionActionsMobile.html" %}
|
||||
</div>
|
||||
|
||||
<div class="shadow-inset-t-white-05 bg-gray-200 md:border-t md:border-gray-300 py-4 mt-3 md:mt-0">
|
||||
|
||||
<div class="flex justify-between mb-1 px-2.5 md:px-0">
|
||||
|
|
Loading…
Reference in New Issue