Browse Source

Adds the title attribute to tags

merge-requests/44/head
Bauke 7 years ago
parent
commit
df9ae276fe
No known key found for this signature in database GPG Key ID: C1C0F29952BCF558
  1. 2
      tildes/tildes/templates/includes/topic_tags.jinja2
  2. 2
      tildes/tildes/templates/macros/topics.jinja2

2
tildes/tildes/templates/includes/topic_tags.jinja2

@ -3,7 +3,7 @@
<ul class="topic-tags">
{% for tag in topic.tags %}
<li class="label label-topic-tag label-topic-tag-{{ tag.replace(' ', '_') }}">
<li class="label label-topic-tag label-topic-tag-{{ tag.replace(' ', '_') }}" title="{{ tag }}">
<a href="/~{{ topic.group.path }}?tag={{ tag.replace(' ', '_') }}">{{ tag }}</a>
</li>
{% else %}

2
tildes/tildes/templates/macros/topics.jinja2

@ -37,7 +37,7 @@
{% if topic.tags %}
<ul class="topic-tags">
{% for tag in topic.tags %}
<li class="label label-topic-tag label-topic-tag-{{ tag.replace(' ', '_') }}">
<li class="label label-topic-tag label-topic-tag-{{ tag.replace(' ', '_') }}" title="{{ tag }}">
{% if request.matched_route.name in ('home', 'group') %}
<a href="{{ request.current_listing_normal_url({'tag': tag.replace(' ', '_')}) }}">{{ tag }}</a>
{% else %}

Loading…
Cancel
Save