]> git.lizzy.rs Git - cheatdb.git/commitdiff
Add nofollow to tags
authorrubenwardy <rw@rubenwardy.com>
Thu, 16 Jul 2020 13:06:29 +0000 (14:06 +0100)
committerrubenwardy <rw@rubenwardy.com>
Thu, 16 Jul 2020 13:07:21 +0000 (14:07 +0100)
app/templates/packages/list.html
app/templates/packages/view.html

index e272782df91ef84eb86ee8e0aa362a424edd15a9..ec17f801e66056137b981f4aeedac4f941de56f9 100644 (file)
                        {% set tag = pair[1] %}
 
                        {% if tag in selected_tags %}
-                               <a class="badge badge-primary"
+                               <a class="badge badge-primary" rel="nofollow"
                                                href="{{ url_set_query(page=1, _remove={ 'tag': tag.name }) }}">
 
                                        {{ tag.title }}
                                        ({{ count }})
                                </a>
                        {% else %}
-                               <a class="badge badge-secondary"
+                               <a class="badge badge-secondary" rel="nofollow"
                                                href="{{ url_set_query(page=1, _add={ 'tag': tag.name }) }}">
 
                                        {{ tag.title }}
index 1d97da92a83ef44faaf14a329832fcce40c810b6..00eea2ee0b193d167b61cdb6ca38de22d879db8e 100644 (file)
@@ -48,7 +48,7 @@
                                        </a>
                                {% endif %}
                                {% for t in package.tags %}
-                                       <a class="badge badge-primary"
+                                       <a class="badge badge-primary" rel="nofollow"
                                                href="{{ url_for('packages.list_all', tag=t.name) }}">{{ t.title }}</a>
                                {% endfor %}
                        </p>