From fb081ec01ee63f8d5b206cf8c7824a9c3559db85 Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@bioforsk.no>
Date: Tue, 12 Jul 2016 17:53:04 +0200
Subject: [PATCH] Adding the illustration caption to the message detail site

---
 VIPSWeb/static/css/vipsweb.css               | 7 +++++++
 vips_messages/templates/messages/detail.html | 1 +
 2 files changed, 8 insertions(+)

diff --git a/VIPSWeb/static/css/vipsweb.css b/VIPSWeb/static/css/vipsweb.css
index 3c7288b6..4242f9ba 100644
--- a/VIPSWeb/static/css/vipsweb.css
+++ b/VIPSWeb/static/css/vipsweb.css
@@ -138,6 +138,13 @@ a.dropdown-toggle{
 div.messages_illustration{
 	
 }
+div.messages_illustration_caption{
+	padding-top: 5px;
+	color: #333;
+	line-height: 130%;
+	font-size: 95%;
+	font-weight: 300;
+}
 
 /* Styles for OpenLayers forecast map */
 
diff --git a/vips_messages/templates/messages/detail.html b/vips_messages/templates/messages/detail.html
index be95f0ee..e30eef71 100644
--- a/vips_messages/templates/messages/detail.html
+++ b/vips_messages/templates/messages/detail.html
@@ -7,6 +7,7 @@
 	<div class="col-md-9 singleBlockContainer">	
 		{% if message.illustration_file_name %}
 		<div class="messages_illustration"><img src="{{message.get_illustration_url}}" class="img-responsive"/></div>
+		<div class="messages_illustration_caption">{{message.illustration_caption}}</div>
 		{% endif %}
 		<h1>{{ message.heading }}</h1>
 		<p class="byline">{{message.date_pub | date:"Y-m-d"}} / {{message.created_by}}</p>
-- 
GitLab