From 11299f734e98caf6cf6e7858a2fdff6fb6c49b03 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 25 Feb 2015 13:27:41 +0100 Subject: gallery: jquery-ui -> bootstrap --- .../chimere/css/extra-styles.css | 20 ++- templates/chimere/detail.html | 149 +++++++++++++++++++++ 2 files changed, 167 insertions(+), 2 deletions(-) create mode 100644 templates/chimere/detail.html diff --git a/chimere_example_static/chimere/css/extra-styles.css b/chimere_example_static/chimere/css/extra-styles.css index 8babe28..5c29708 100644 --- a/chimere_example_static/chimere/css/extra-styles.css +++ b/chimere_example_static/chimere/css/extra-styles.css @@ -85,7 +85,7 @@ a:hover, a:focus { padding: 0.2em 0.4em; } -#panel, #detail{ +#panel, #detail-wrapper{ background-color: #F8F8F8; } @@ -105,11 +105,27 @@ a:hover, a:focus { } #detail { + position:static; + border:0 transparent; +} + +#detail div { + margin:auto; +} + +#detail-wrapper div { + margin: 4px 8px; +} + +#detail-wrapper{ + position:absolute; + z-index:5; right:auto; left:0; bottom:0; top:0; - padding-top:100px; + width:400px; + padding-top:50px; border:0 transparent; border-right:1px solid #E7E7E7; border-top:1px solid #E7E7E7; diff --git a/templates/chimere/detail.html b/templates/chimere/detail.html new file mode 100644 index 0000000..73a540b --- /dev/null +++ b/templates/chimere/detail.html @@ -0,0 +1,149 @@ +{% load i18n sanitize chimere_tags %} +
+ +

{{ marker.name }}

+
+ {% if marker.default_pictures or marker.default_pictures or marker.default_multimedia_items%} + + {%endif%} +
+ {% if dated %} +

{{marker.start_date|date:"D d M Y"}} + {% if marker.end_date %} - {{marker.end_date|date:"D d M Y"}}

{% endif %} + {% endif %} + {% if marker.description %} +

{{ marker.description|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}

+ {% endif %} + {% for property in marker.getProperties %} +

{{ property.value|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}

+ {% endfor %} + {% if marker.origin %}

{% trans "Source:" %} {{marker.origin}}

{% endif %} + {% if marker.license %}

{% trans "License:" %} {{marker.license}}

{% endif %} + {% if marker.multimedia_items %}

+ {% trans "Show multimedia gallery"%} +

{% endif %} +
+ {% share_bar marker.name %} +

+ {% trans "Submit an amendment" %} + + {% if moderator_emails %} + + {% trans "Propose amendment" %} + {%endif%} +

+
+ + +{% if marker.multimedia_items %} + + + + + +{% endif %} + + -- cgit v1.2.3