lib.itmens/catalog/templates/item_mark_list.html

68 lines
2.7 KiB
HTML
Raw Normal View History

2022-12-24 01:28:24 -05:00
{% load static %}
{% load i18n %}
{% load mastodon %}
{% load thumb %}
{% load user_actions %}
{% load duration %}
2025-02-06 19:17:53 +00:00
{% get_current_language as LANGUAGE_CODE %}
2022-12-24 01:28:24 -05:00
<!DOCTYPE html>
2025-02-06 19:17:53 +00:00
<html lang="{{ LANGUAGE_CODE }}" class="content-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2024-05-20 23:17:47 -04:00
<title>{{ site_name }} - {{ item.display_title }} - {% trans 'Marks' %}</title>
2024-01-07 17:24:34 -05:00
{% include "common_libs.html" %}
</head>
<body>
{% include '_header.html' %}
<main>
<div class="grid__main">
<h5>
2023-05-20 14:17:02 -04:00
{% if followeing_only %}
2024-05-20 23:17:47 -04:00
<a href="{% url 'catalog:mark_list' item.url_path item.uuid %}">{% trans 'marks' %}</a>
| {% trans 'marks from who you follow' %}
2023-05-20 14:17:02 -04:00
{% else %}
2024-05-20 23:17:47 -04:00
{% trans 'marks' %}
| <a href="{% url 'catalog:mark_list' item.url_path item.uuid 'following' %}">{% trans 'marks from who you follow' %}</a>
2023-05-20 14:17:02 -04:00
{% endif %}
2024-05-20 23:17:47 -04:00
| <a href="{% url 'catalog:review_list' item.url_path item.uuid %}">{% trans 'reviews' %}</a>
</h5>
{% for member in marks %}
{% with member.mark as mark %}
<section>
<div class="action">
2023-12-29 16:03:31 -05:00
{% if mark.comment.latest_post %}
{% include "action_reply_piece.html" with post=mark.comment.latest_post piece=mark.comment %}
{% include "action_like_post.html" with post=mark.comment.latest_post %}
{% include "action_boost_post.html" with post=mark.comment.latest_post %}
2022-12-24 01:28:24 -05:00
{% endif %}
2023-12-29 16:03:31 -05:00
{% include "action_open_post.html" with post=mark.shelfmember.latest_post %}
<span class="timestamp">{{ mark.created_time|date }}</span>
</div>
<div>
2024-02-25 23:04:50 -05:00
<a href="{{ mark.owner.url }}" title="@{{ mark.owner.handle }}">{{ mark.owner.display_name }}</a>
<span>{{ mark.action_label }}</span>
2024-07-13 01:36:18 -04:00
{% if mark.comment.item != item %}
<a href="{{ mark.comment.item_url }}">{{ mark.comment.item.display_title }}</a>
{% endif %}
2022-12-24 01:28:24 -05:00
</div>
2024-04-14 20:40:18 -04:00
<div>
{% if mark.rating_grade %}{{ mark.rating_grade|rating_star }}{% endif %}
{{ mark.comment.html|safe }}
</div>
2023-12-29 16:03:31 -05:00
{% if mark.comment.latest_post %}<div id="replies_{{ mark.comment.latest_post.pk }}"></div>{% endif %}
</section>
{% endwith %}
{% empty %}
2024-05-20 23:17:47 -04:00
<div>{% trans 'nothing so far.' %}</div>
{% endfor %}
{% include "_pagination.html" %}
</div>
2023-05-20 14:17:02 -04:00
<aside class="grid__aside top">
2023-06-09 02:45:27 -04:00
{% include "_sidebar_item.html" %}
2023-05-20 14:17:02 -04:00
</aside>
</main>
2023-06-09 03:01:17 -04:00
{% include "_footer.html" %}
</body>
2022-12-24 01:28:24 -05:00
</html>