remotes/1693045480750635534/spooky-22
kek7198 2021-12-06 01:06:26 -06:00
parent a5cc1d6a1f
commit 75e5802219
1 changed files with 35 additions and 5 deletions

View File

@ -441,11 +441,6 @@
</div>
<!-- Post actions -->
<div class="hidden md:block pt-4">
{% include "/submission/SubmissionActions.html" %}
</div>
</div>
<!-- Author avatar, post score, and voting buttons -->
@ -485,6 +480,41 @@
{% 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')">
+&nbsp;<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}}';">
+&nbsp;<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>
</div>