Added illustration description
authortflorac@dagon.home
Wed, 02 Jan 2019 20:19:49 +0100
changeset 326 d4b7d40f4847
parent 325 06a83f82c204
child 327 24b4dfcd2c0d
Added illustration description
src/pyams_default_theme/component/gallery/templates/renderer-default.pt
src/pyams_default_theme/component/illustration/templates/illustration-default.pt
src/pyams_default_theme/component/illustration/templates/illustration-left.pt
src/pyams_default_theme/component/illustration/templates/illustration-right.pt
src/pyams_default_theme/component/paragraph/templates/verbatim-default.pt
src/pyams_default_theme/component/paragraph/templates/verbatim-left.pt
src/pyams_default_theme/component/paragraph/templates/verbatim-right.pt
--- a/src/pyams_default_theme/component/gallery/templates/renderer-default.pt	Wed Jan 02 20:18:43 2019 +0100
+++ b/src/pyams_default_theme/component/gallery/templates/renderer-default.pt	Wed Jan 02 20:19:49 2019 +0100
@@ -17,6 +17,7 @@
 		   data-type="image"
 		   data-gallery="gallery-${cache_key}"
 		   data-title="${i18n:image.title}"
+		   data-description="${i18n:image.description}"
 		   data-footer="${i18n:image.author}"
 		   tal:define="image_data i18n:image.data;
 					   alt i18n:image.title;"
--- a/src/pyams_default_theme/component/illustration/templates/illustration-default.pt	Wed Jan 02 20:18:43 2019 +0100
+++ b/src/pyams_default_theme/component/illustration/templates/illustration-default.pt	Wed Jan 02 20:19:49 2019 +0100
@@ -8,4 +8,8 @@
 	<div tal:define="author view.author"
 		 tal:condition="author"
 		 class="author">${author}</div>
+	<p class="description"
+	   tal:condition="view.description">
+		${structure:tales:html(view.description)}
+	</p>
 </div>
--- a/src/pyams_default_theme/component/illustration/templates/illustration-left.pt	Wed Jan 02 20:18:43 2019 +0100
+++ b/src/pyams_default_theme/component/illustration/templates/illustration-left.pt	Wed Jan 02 20:19:49 2019 +0100
@@ -4,6 +4,7 @@
 	<a data-toggle="${'lightbox' if settings.zoom_on_click else None}"
 	   data-type="image"
 	   data-title="${view.title}"
+	   data-description="${view.description}"
 	   data-footer="${view.author}"
 	   tal:omit-tag="not:view.settings.zoom_on_click"
 	   tal:define="image view.data;
--- a/src/pyams_default_theme/component/illustration/templates/illustration-right.pt	Wed Jan 02 20:18:43 2019 +0100
+++ b/src/pyams_default_theme/component/illustration/templates/illustration-right.pt	Wed Jan 02 20:19:49 2019 +0100
@@ -4,6 +4,7 @@
 	<a data-toggle="${'lightbox' if settings.zoom_on_click else None}"
 	   data-type="image"
 	   data-title="${view.title}"
+	   data-description="${view.description}"
 	   data-footer="${view.author}"
 	   tal:omit-tag="not:view.settings.zoom_on_click"
 	   tal:define="image view.data;
--- a/src/pyams_default_theme/component/paragraph/templates/verbatim-default.pt	Wed Jan 02 20:18:43 2019 +0100
+++ b/src/pyams_default_theme/component/paragraph/templates/verbatim-default.pt	Wed Jan 02 20:19:49 2019 +0100
@@ -3,8 +3,10 @@
 				 illustration tales:pyams_illustration(context);
 				 display_illustration view.can_display_illustration()">
 	<div class="panel panel-default">
-		<div class="panel-heading">
-			<h3 class="panel-title">${view.title}</h3>
+		<div class="panel-heading"
+			 tal:define="title view.title"
+			 tal:condition="title">
+			<h3 class="panel-title">${title}</h3>
 		</div>
 		<div class="panel-body">
 			<tal:if condition="display_illustration and illustration">
--- a/src/pyams_default_theme/component/paragraph/templates/verbatim-left.pt	Wed Jan 02 20:18:43 2019 +0100
+++ b/src/pyams_default_theme/component/paragraph/templates/verbatim-left.pt	Wed Jan 02 20:19:49 2019 +0100
@@ -3,7 +3,7 @@
 				 illustration tales:pyams_illustration(context);
 				 display_illustration view.can_display_illustration()"
 	 tal:attributes="class string:${default} col-md-${settings.relative_width}">
-	<h3 tal:condition="view.title" tal:content="view.title">Title</h3>
+	<h3 tal:condition="view.title">${view.title}</h3>
 	<tal:if condition="display_illustration and illustration">
 		<div class="illustration col-md-2"
 			 tal:define="photo i18n:illustration.data;
--- a/src/pyams_default_theme/component/paragraph/templates/verbatim-right.pt	Wed Jan 02 20:18:43 2019 +0100
+++ b/src/pyams_default_theme/component/paragraph/templates/verbatim-right.pt	Wed Jan 02 20:19:49 2019 +0100
@@ -3,7 +3,7 @@
 				 illustration tales:pyams_illustration(context);
 				 display_illustration view.can_display_illustration()"
 	 tal:attributes="class string:${default} col-md-${settings.relative_width}">
-	<h3 tal:condition="view.title" tal:content="view.title">Title</h3>
+	<h3 tal:condition="view.title">${view.title}</h3>
 	<tal:if condition="display_illustration and illustration">
 		<div class="illustration col-md-2"
 			 tal:define="photo i18n:illustration.data;