lib.itmens/journal/templates/user_collection_list.html
2025-02-07 15:14:36 +00:00

59 lines
1.9 KiB
HTML

{% load static %}
{% load i18n %}
{% load l10n %}
{% load humanize %}
{% load mastodon %}
{% load user_actions %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE }}" class="classic-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {{ identity.display_name }} -
{% if liked %}
{% trans "Liked Collections" %}
{% else %}
{% trans "Collections" %}
{% endif %}
</title>
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" %}
<main>
<div class="grid__main">
<h5>
{{ identity.display_name }} -
{% if liked %}
{% trans "Liked Collections" %}
{% else %}
{% trans "Collections" %}
{% endif %}
</h5>
{% for collection in collections %}
<p>
<div class="action">
{% if collection.latest_post %}
{% include "action_like_post.html" with post=collection.latest_post %}
{% include "action_boost_post.html" with post=collection.latest_post %}
{% include "action_open_post.html" with post=collection.latest_post %}
{% endif %}
</div>
<span><a href="{{ collection.url }}">{{ collection.title }}</a></span>
{% if liked %}
-
<a href="{{ collection.owner.url }}"
title="@{{ collection.owner.handle }}">{{ collection.owner.display_name }}</a>
{% endif %}
</p>
{% empty %}
<div class="empty">{% trans "nothing so far." %}</div>
{% endfor %}
</div>
{% include "_sidebar.html" with show_profile=1 %}
</main>
{% include "_footer.html" %}
</body>
</html>