2022-11-17 00:48:32 +00:00
|
|
|
{% set logged_in = request.user.is_authenticated %}
|
|
|
|
{% set profile = request.profile if logged_in else None %}
|
|
|
|
{% if logged_in %}
|
|
|
|
{% if include_hr %}<hr>{% endif %}
|
2022-12-18 09:31:31 +00:00
|
|
|
<div class="page-vote actionbar">
|
2022-11-17 00:48:32 +00:00
|
|
|
<span class="actionbar-block" style="justify-content: flex-start;">
|
|
|
|
<span id="like-button-{{pagevote.id}}"
|
|
|
|
class="like-button actionbar-button {% if pagevote.vote_score(request.profile) == 1 %}voted{% endif %}"
|
|
|
|
onclick="javascript:pagevote_upvote({{ pagevote.id }})"
|
|
|
|
>
|
|
|
|
<span class="pagevote-score" id="pagevote-score-{{pagevote.id}}">{{ pagevote.score }}</span>
|
|
|
|
<i class="fa fa-thumbs-o-up" style="font-size: large;"></i>
|
|
|
|
<span class="actionbar-text">{{_("Like")}}</span>
|
|
|
|
</span>
|
|
|
|
<span id="dislike-button-{{pagevote.id}}" class="dislike-button actionbar-button {% if pagevote.vote_score(request.profile) == -1 %}voted{% endif %}" onclick="javascript:pagevote_downvote({{ pagevote.id }})">
|
|
|
|
<i class="fa fa-thumbs-o-down" style="font-size: large;"></i>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{% if not hide_actionbar_comment %}
|
2022-11-19 23:30:07 +00:00
|
|
|
<span class="actionbar-block">
|
|
|
|
<span class="actionbar-button actionbar-comment">
|
2022-11-17 00:48:32 +00:00
|
|
|
<i class="fa fa-comment-o" style="font-size: large;"></i>
|
2023-01-26 17:53:24 +00:00
|
|
|
<span class="actionbar-text">{{_("Comment")}} {% if comment_list.count() %} ({{comment_list.count()}}) {% endif %}</span>
|
2022-11-17 00:48:32 +00:00
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
<span class="actionbar-block">
|
2022-11-17 19:17:45 +00:00
|
|
|
<span id="bookmark-button-{{bookmark.id}}"
|
|
|
|
class="bookmark-button actionbar-button {% if bookmark.get_bookmark(request.profile) == True %} bookmarked {% endif %}"
|
|
|
|
onclick="javascript:bookmark({{ bookmark.id }})"
|
|
|
|
>
|
2022-11-17 00:48:32 +00:00
|
|
|
<i class="fa fa-bookmark-o" style="font-size: large;"></i>
|
2022-11-17 21:21:32 +00:00
|
|
|
<span class="actionbar-text">{{_("Bookmark")}}</span>
|
2022-11-17 00:48:32 +00:00
|
|
|
</span>
|
|
|
|
</span>
|
2022-11-19 23:30:07 +00:00
|
|
|
<span class="actionbar-block" >
|
|
|
|
<span class="actionbar-button actionbar-share" style="position: relative" {{"share-url=" + share_url if share_url else ""}}>
|
2022-11-17 00:48:32 +00:00
|
|
|
<i class="fa fa-share" style="font-size: large;"></i>
|
|
|
|
<span class="actionbar-text">{{_("Share")}}</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{% if actionbar_report_url %}
|
|
|
|
<span class="actionbar-block">
|
2022-12-18 09:31:31 +00:00
|
|
|
<a class="actionbar-button black" href="{{actionbar_report_url}}">
|
2022-11-17 00:48:32 +00:00
|
|
|
<i class="fa fa-flag-o" style="font-size: large;"></i>
|
|
|
|
<span class="actionbar-text">{{_("Report")}}</span>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|