Browse Source

Fix double quotes around target attribute

merge-requests/3/head
Ivan Fonseca 8 years ago
parent
commit
07f9c18740
No known key found for this signature in database GPG Key ID: 95A9C856EC788689
  1. 6
      tildes/tildes/templates/macros/topics.jinja2
  2. 2
      tildes/tildes/templates/topic.jinja2

6
tildes/tildes/templates/macros/topics.jinja2

@ -13,12 +13,12 @@
{% if topic.is_text_type %}
<a
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>
{% elif topic.is_link_type %}
<a
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>
{% endif %}
</h1>
@ -64,7 +64,7 @@
<div class="topic-info-comments">
<a
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 %}
{{ num_comments }} comment

2
tildes/tildes/templates/topic.jinja2

@ -46,7 +46,7 @@
<div class="topic-icon topic-icon-{{ topic.link_domain.replace('.', '_') }}"></div>
<a
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>
</div>
{% endif %}

Loading…
Cancel
Save