lib.itmens/journal/templates/user_collection_list.html

60 lines
2 KiB
HTML
Raw Normal View History

2022-12-29 14:30:31 -05:00
{% load static %}
{% load i18n %}
{% load l10n %}
{% load humanize %}
{% load admin_url %}
{% load mastodon %}
{% load oauth_token %}
{% load truncate %}
{% load user_actions %}
2022-12-29 14:30:31 -05:00
{% load thumb %}
<!DOCTYPE html>
2023-05-23 08:08:07 -04:00
<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"
2023-07-20 21:59:49 -04:00
{% 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>
2022-12-29 14:30:31 -05:00
</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>
2023-06-09 03:01:17 -04:00
{% include "_footer.html" %}
</body>
2022-12-29 14:30:31 -05:00
</html>