Browse Source
Fix double quotes around target attribute
merge-requests/3/head
Ivan Fonseca
8 years ago
No known key found for this signature in database
GPG Key ID: 95A9C856EC788689
2 changed files with
4 additions and
4 deletions
-
tildes/tildes/templates/macros/topics.jinja2
-
tildes/tildes/templates/topic.jinja2
|
|
@ -13,12 +13,12 @@ |
|
|
{% if topic.is_text_type %} |
|
|
{% if topic.is_text_type %} |
|
|
<a |
|
|
<a |
|
|
href="{{ topic.permalink }}" |
|
|
href="{{ topic.permalink }}" |
|
|
{{ 'target=_blank' if request.user.open_links_new_tab }} |
|
|
|
|
|
|
|
|
{% if request.user.open_links_new_tab %}target="_blank"{% endif %} |
|
|
>{{ topic.title }}</a> |
|
|
>{{ topic.title }}</a> |
|
|
{% elif topic.is_link_type %} |
|
|
{% elif topic.is_link_type %} |
|
|
<a |
|
|
<a |
|
|
href="{{ topic.link }}" |
|
|
href="{{ topic.link }}" |
|
|
{{ 'target=_blank' if request.user.open_links_new_tab }} |
|
|
|
|
|
|
|
|
{% if request.user.open_links_new_tab %}target="_blank"{% endif %} |
|
|
>{{ topic.title }}</a> |
|
|
>{{ topic.title }}</a> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
</h1> |
|
|
</h1> |
|
|
@ -64,7 +64,7 @@ |
|
|
<div class="topic-info-comments"> |
|
|
<div class="topic-info-comments"> |
|
|
<a |
|
|
<a |
|
|
href="{{ topic.permalink }}" |
|
|
href="{{ topic.permalink }}" |
|
|
{{ 'target=_blank' if request.user.open_links_new_tab }} |
|
|
|
|
|
|
|
|
{% if request.user.open_links_new_tab %}target="_blank"{% endif %} |
|
|
> |
|
|
> |
|
|
{% trans num_comments=topic.num_comments %} |
|
|
{% trans num_comments=topic.num_comments %} |
|
|
{{ num_comments }} comment |
|
|
{{ num_comments }} comment |
|
|
|
|
|
@ -46,7 +46,7 @@ |
|
|
<div class="topic-icon topic-icon-{{ topic.link_domain.replace('.', '_') }}"></div> |
|
|
<div class="topic-icon topic-icon-{{ topic.link_domain.replace('.', '_') }}"></div> |
|
|
<a |
|
|
<a |
|
|
href="{{ topic.link }}" |
|
|
href="{{ topic.link }}" |
|
|
{{ 'target=_blank' if request.user.open_links_new_tab }} |
|
|
|
|
|
|
|
|
{% if request.user.open_links_new_tab %}target="_blank"{% endif %} |
|
|
>{{ topic.link }}</a> |
|
|
>{{ topic.link }}</a> |
|
|
</div> |
|
|
</div> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|