]> git.lizzy.rs Git - cheatdb.git/blobdiff - app/templates/packages/view.html
Add Content Warnings
[cheatdb.git] / app / templates / packages / view.html
index 00eea2ee0b193d167b61cdb6ca38de22d879db8e..f2c22e3aaf2ade5ac0b7bfaa82b50af540fa370a 100644 (file)
                                                {{ package_warning }}
                                        </a>
                                {% endif %}
+                               {% for warning in package.content_warnings %}
+                                       <a class="badge badge-warning" rel="nofollow" href="/help/content_flags/"
+                                                       title="{{ warning.description }}">
+                                               <i class="fas fa-exclamation-circle" style="margin-right: 0.3em;"></i>
+                                               {{ warning.title }}
+                                       </a>
+                               {% endfor %}
                                {% for t in package.tags %}
                                        <a class="badge badge-primary" rel="nofollow"
                                                href="{{ url_for('packages.list_all', tag=t.name) }}">{{ t.title }}</a>