lib.itmens/journal/templates/user_collection_list.html
2023-10-22 17:46:34 -04:00

59 lines
2 KiB
HTML

{% load static %}
{% load i18n %}
{% load l10n %}
{% load humanize %}
{% load admin_url %}
{% load mastodon %}
{% load oauth_token %}
{% load truncate %}
{% load user_actions %}
{% load thumb %}
<!DOCTYPE html>
<html lang="zh" class="classic-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {{ user.display_name }} -
{% if liked %}关注的{% endif %}
收藏单</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
</head>
<body>
{% include "_header.html" %}
<main>
<div class="grid__main">
<h5>
{{ user.display_name }} -
{% if liked %}关注的{% endif %}
收藏单
</h5>
{% for collection in collections %}
<p>
<div class="action">
<span>
{% liked_piece collection as liked %}
{% include 'like_stats.html' with liked=liked piece=collection label='关注' icon='fa-bookmark' %}
</span>
<span>
<a target="_blank"
rel="noopener"
{% if collection.shared_link %} href="{{ collection.shared_link }}" title="打开联邦宇宙分享链接" {% else %} class="disabled" {% endif %}><i class="fa-solid {% if collection.visibility > 0 %} fa-lock {% else %} fa-globe {% endif %}"></i></a>
</span>
<span class="timestamp">{{ collection.created_time|date }}</span>
</div>
<span><a href="{{ collection.url }}">{{ collection.title }}</a></span>
{% if liked %}
-
<a href="{{ collection.owner.url }}"
title="@{{ collection.owner.handler }}">{{ collection.owner.display_name }}</a>
{% endif %}
</p>
{% empty %}
<div class="empty">暂无</div>
{% endfor %}
</div>
{% include "_sidebar.html" with show_profile=1 %}
</main>
{% include "_footer.html" %}
</body>
</html>