From b96d65fcdda5e1993bf9744ae747633f684a0c60 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 28 Sep 2018 10:37:32 +0200 Subject: Display extra categories in description detail --- chimere/static/chimere/css/styles.css | 6 ++++++ chimere/templates/chimere/detail.html | 14 ++++++++++++++ chimere/views.py | 12 ++++++------ 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/chimere/static/chimere/css/styles.css b/chimere/static/chimere/css/styles.css index daed6c0..e1ce87a 100644 --- a/chimere/static/chimere/css/styles.css +++ b/chimere/static/chimere/css/styles.css @@ -776,6 +776,12 @@ div#sidebar-container{ margin:0; } +.full-description ul.extra-categories{ + list-style-type: none; + margin: 0; + padding: 0; +} + .detail-content p.detail_amendment{ padding:0.2em 0.5em; margin: 0.2em 0; diff --git a/chimere/templates/chimere/detail.html b/chimere/templates/chimere/detail.html index eaca0e8..5bac2b5 100644 --- a/chimere/templates/chimere/detail.html +++ b/chimere/templates/chimere/detail.html @@ -61,6 +61,20 @@ {%endif%}
{% include "chimere/detail_description.html" %} + {% if extra_categories %} +

{% trans "Also appears in:" %}

+ + {% endif %}