Browse Source
Adds the title attribute to tags
merge-requests/44/head
Bauke
7 years ago
No known key found for this signature in database
GPG Key ID: C1C0F29952BCF558
2 changed files with
2 additions and
2 deletions
-
tildes/tildes/templates/includes/topic_tags.jinja2
-
tildes/tildes/templates/macros/topics.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 %} |
|
|
|
|
|
|
|
@ -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 %} |
|
|
|
|