diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-07-17 20:48:51 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-07-17 20:48:51 +0100 |
| commit | 6a674c3c79437c7b4829947c67dd7f14b32c1941 (patch) | |
| tree | 0830107ee78e80e61312c90c35a84c6154f6970a /app/templates/packages/view.html | |
| parent | 0ac2827468a5d18536a9066033e0ad4a4767edbb (diff) | |
| download | cheatdb-6a674c3c79437c7b4829947c67dd7f14b32c1941.tar.xz | |
Add Content Warnings
Diffstat (limited to 'app/templates/packages/view.html')
| -rw-r--r-- | app/templates/packages/view.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 00eea2e..f2c22e3 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -47,6 +47,13 @@ {{ 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> |
