fix tags link
This commit is contained in:
parent
3783e345dd
commit
e1e8af424e
1 changed files with 3 additions and 42 deletions
|
@ -81,61 +81,22 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
{% if top_tags %}
|
||||
<div class="user-relation">
|
||||
<h5 class="user-relation__label">
|
||||
{% trans '常用标签' %}
|
||||
</h5>
|
||||
<a href="{% url 'journal:user_tag_list' user.mastodon_username %}">{% trans '更多' %}</a>
|
||||
<div class="tag-collection" style="margin-left: 0;">
|
||||
{% if top_tags %}
|
||||
{% for t in top_tags %}
|
||||
<span class="tag-collection__tag">
|
||||
<a href="/users/{{ user.mastodon_username }}/tag/{{ t }}/">{{ t }}</a>
|
||||
<a href="/users/{{ user.mastodon_username }}/tags/{{ t }}/">{{ t }}</a>
|
||||
</span>
|
||||
{% endfor %}
|
||||
<div class="clearfix"></div>
|
||||
{% endif %}
|
||||
{% if book_tags %}
|
||||
<div>{% trans '书籍' %}</div>
|
||||
{% for v in book_tags %}
|
||||
<span class="tag-collection__tag">
|
||||
<a href="{% url 'users:book_list' user.mastodon_username 'tagged' %}?t={{ v.content }}">{{ v.content }}</a>
|
||||
</span>
|
||||
{% endfor %}
|
||||
<div class="clearfix"></div>
|
||||
{% endif %}
|
||||
|
||||
{% if movie_tags %}
|
||||
<div>{% trans '电影和剧集' %}</div>
|
||||
{% for v in movie_tags %}
|
||||
<span class="tag-collection__tag">
|
||||
<a href="{% url 'users:movie_list' user.mastodon_username 'tagged' %}?t={{ v.content }}">{{ v.content }}</a>
|
||||
</span>
|
||||
{% endfor %}
|
||||
<div class="clearfix"></div>
|
||||
{% endif %}
|
||||
|
||||
{% if music_tags %}
|
||||
<div>{% trans '音乐' %}</div>
|
||||
{% for v in music_tags %}
|
||||
<span class="tag-collection__tag">
|
||||
<a href="{% url 'users:music_list' user.mastodon_username 'tagged' %}?t={{ v.content }}">{{ v.content }}</a>
|
||||
</span>
|
||||
{% endfor %}
|
||||
<div class="clearfix"></div>
|
||||
{% endif %}
|
||||
|
||||
{% if game_tags %}
|
||||
<div>{% trans '游戏' %}</div>
|
||||
{% for v in game_tags %}
|
||||
<span class="tag-collection__tag">
|
||||
<a href="{% url 'users:game_list' user.mastodon_username 'tagged' %}?t={{ v.content }}">{{ v.content }}</a>
|
||||
</span>
|
||||
{% endfor %}
|
||||
<div class="clearfix"></div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue