2023-05-20 11:01:18 -04:00
|
|
|
{% load static %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% load l10n %}
|
|
|
|
{% load mastodon %}
|
|
|
|
{% load duration %}
|
|
|
|
{% load user_actions %}
|
|
|
|
{% for review in reviews %}
|
|
|
|
{% if forloop.counter <= 10 %}
|
|
|
|
<section>
|
|
|
|
<span class="action">
|
2023-12-29 01:34:17 -05:00
|
|
|
{% if review.latest_post %}
|
|
|
|
{% include "action_reply_piece.html" with post=review.latest_post piece=review href=review.url %}
|
|
|
|
{% include "action_like_post.html" with post=review.latest_post %}
|
2023-12-29 16:03:31 -05:00
|
|
|
{% include "action_boost_post.html" with post=review.latest_post %}
|
2023-12-29 01:34:17 -05:00
|
|
|
{% include "action_open_post.html" with post=review.latest_post %}
|
|
|
|
{% endif %}
|
2023-05-20 11:01:18 -04:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
{% if review.rating_grade %}{{ review.rating_grade|rating_star }}{% endif %}
|
2023-06-30 23:53:53 -04:00
|
|
|
<a href="{{ review.owner.url }}"
|
2023-05-20 11:01:18 -04:00
|
|
|
class="nickname"
|
2024-02-25 23:04:50 -05:00
|
|
|
title="@{{ review.owner.handle }}">{{ review.owner.display_name }}</a>
|
2023-05-22 12:41:27 -04:00
|
|
|
</span>
|
|
|
|
<span class="action inline">
|
|
|
|
<span class="timestamp">{{ review.created_time|date }}</span>
|
2024-05-19 16:32:59 -04:00
|
|
|
<span class="timestamp">{% trans "review" %}</span>
|
2023-05-20 11:01:18 -04:00
|
|
|
</span>
|
2024-04-13 00:53:56 -04:00
|
|
|
{% if review.item != item %}
|
2024-07-13 01:36:18 -04:00
|
|
|
<a href="{{ review.item.url }}">{{ review.item.display_title }}</a><small class="title_deco">{{ comment.item.title_deco }}</small>
|
2024-04-13 00:53:56 -04:00
|
|
|
{% endif %}
|
2024-04-20 10:29:40 -04:00
|
|
|
<div class="tldr">
|
2023-05-20 11:01:18 -04:00
|
|
|
<span>
|
|
|
|
<a href="{% url 'journal:review_retrieve' review.uuid %}">{{ review.title }}</a>
|
|
|
|
</span>
|
|
|
|
-
|
2024-04-20 10:29:40 -04:00
|
|
|
{{ review.plain_content }}
|
2023-05-20 11:01:18 -04:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% else %}
|
|
|
|
<a hx-get="{% url 'catalog:reviews' review.item.url_path review.item.uuid %}?last={{ review.created_time|date:'Y-m-d H:i:s.uO'|urlencode }}"
|
|
|
|
hx-trigger="click"
|
|
|
|
hx-swap="outerHTML">
|
2024-05-19 16:32:59 -04:00
|
|
|
<button class="outline">{% trans "show more" %}</button>
|
2023-05-20 11:01:18 -04:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% empty %}
|
2024-05-19 16:32:59 -04:00
|
|
|
<div class="empty">{% trans 'nothing more.' %}</div>
|
2023-05-20 11:01:18 -04:00
|
|
|
{% endfor %}
|