forked from rDrama/rDrama
62 lines
3.0 KiB
HTML
62 lines
3.0 KiB
HTML
<ul class="flex items-center text-sm text-gray-500 mb-0">
|
|
{% if p.realbody(v) and '/post/' not in request.full_path and not p.over_18 %}
|
|
<li class="mr-5">
|
|
<button class="hover:text-gray-400" onclick="expandText('{{p.id}}')">
|
|
<i class="fas fa-expand-alt fa-fw text-expand-icon-{{p.id}}"></i>
|
|
</button>
|
|
</li>
|
|
{% endif %}
|
|
<li class="mr-5">
|
|
<a {% if v %}href="{{p.permalink}}"{% else %}href="/logged_out{{p.permalink}}"{% endif %} class="text-gray-500 hover:text-gray-400">
|
|
<i class="fas fa-comment-dots fa-fw mr-2"></i>{{ p.comment_count }}
|
|
<span class="hidden sm:inline-block">comment{{ '' if p.comment_count == 1 else 's' }}</span>
|
|
<span class="text-info hidden new-comments"></span>
|
|
</a>
|
|
</li>
|
|
<li class="mr-auto">
|
|
<span>
|
|
<i class="fas fa-eye fa-fw mr-2"></i>{{ p.views }}
|
|
</span>
|
|
</li>
|
|
<li class="mr-5">
|
|
<button class="copy-link" data-clipboard-text="{% if 'rama' in request.host %}https://rdrama.com{{p.permalink}}{% else %}{{p.permalink | full_link}}{% endif %}">
|
|
<i class="fas fa-link fa-fw"></i>
|
|
</button>
|
|
</li>
|
|
{% if v and (v.id==p.author_id or v.admin_level > 1 and v.admin_level > 2) and '/post/' in request.full_path %}
|
|
<li class="mr-5">
|
|
<button class="hover:text-gray-400" onclick="togglePostEdit('{{p.id}}')">
|
|
<i class="fas fa-pencil fa-fw mr-2"></i>Edit
|
|
</button>
|
|
</li>
|
|
{% endif %}
|
|
{% if v %}
|
|
<li class="mr-5">
|
|
<button data-bs-toggle="modal" data-bs-target="#actionsModal-{{p.id}}">
|
|
<i class="fas fa-ellipsis-h fa-fw"></i>
|
|
</button>
|
|
</li>
|
|
{% endif %}
|
|
<li id="voting-{{p.id}}-mobile" class="flex-shrink-0 voting {% if voted==1 %} upvoted{% elif voted==-1 %} downvoted{% endif %}">
|
|
{% if v %}
|
|
<button id="post-mobile-{{p.id}}-up" onclick="vote('post-mobile', '{{p.id}}', '1')" class="mx-0 pr-1 arrow-up upvote-button post-{{p.id}}-up {% if voted==1 %}active{% endif %}">
|
|
</button>
|
|
{% else %}
|
|
<button id="arrow-{{p.id}}-mobile-up" class="mx-0 pr-1 arrow-mobile-up" onclick="location.href='/login?redirect={{request.path | urlencode}}';">
|
|
<i class="fas fa-arrow-alt-up mx-0" aria-hidden="true"></i>
|
|
</button>
|
|
{% endif %}
|
|
|
|
<span id="post-mobile-score-{{p.id}}" class="text-base score post-score-{{p.id}} {% if voted==1 %}score-up{% elif voted==-1%}score-down{% endif %}" data-bs-toggle="tooltip" data-bs-placement="top" title="" data-bs-original-title="+{{ups}} | -{{downs}}">
|
|
{{score}}
|
|
</span>
|
|
|
|
{% if v %}
|
|
<button {% if environ.get('DISABLE_DOWNVOTES') == '1' %}style="display:None!important"{% endif %} id="post-mobile-{{p.id}}-down" onclick="vote('post-mobile', '{{p.id}}', '-1')" class="mx-0 pl-1 my-0 arrow-down downvote-button post-{{p.id}}-down {% if voted==-1 %}active{% endif %}"></button>
|
|
{% else %}
|
|
<button {% if environ.get('DISABLE_DOWNVOTES') == '1' %}style="display:None!important"{% endif %} id="arrow-{{p.id}}-mobile-down" class="arrow-mobile-down mx-0 pl-1 my-0" onclick="location.href='/login?redirect={{request.path | urlencode}}';">
|
|
<i class="fas fa-arrow-alt-down mx-0" aria-hidden="true"></i>
|
|
</button>
|
|
{% endif %}
|
|
</li>
|
|
</ul> |