Updated templates
authorThierry Florac <tflorac@ulthar.net>
Wed, 09 Jan 2019 11:40:57 +0100
changeset 360 99c6433229ea
parent 359 2eb804d4ea34
child 361 894112bb9af7
Updated templates
src/pyams_default_theme/shared/logo/templates/logos-default.pt
src/pyams_default_theme/shared/site/portlet/templates/site-panels-vertical.pt
src/pyams_default_theme/shared/site/portlet/templates/site-panels.pt
--- a/src/pyams_default_theme/shared/logo/templates/logos-default.pt	Wed Jan 09 11:40:18 2019 +0100
+++ b/src/pyams_default_theme/shared/logo/templates/logos-default.pt	Wed Jan 09 11:40:57 2019 +0100
@@ -1,6 +1,6 @@
 <div class="logos" i18n:domain="pyams_default_theme">
 	<h3>${view.title}</h3>
-	<tal:loop repeat="logo context.get_targets()">
+	<tal:loop repeat="logo context.get_logos()">
 		<div class="logo col-lg-2 col-md-2 col-sm-2 col-xs-3"
 			 tal:condition="logo is not None">
 			<a tal:omit-tag="not:logo.url"
@@ -11,4 +11,4 @@
 		</div>
 	</tal:loop>
 	<div class="clearfix"></div>
-</div>
+</div>
\ No newline at end of file
--- a/src/pyams_default_theme/shared/site/portlet/templates/site-panels-vertical.pt	Wed Jan 09 11:40:18 2019 +0100
+++ b/src/pyams_default_theme/shared/site/portlet/templates/site-panels-vertical.pt	Wed Jan 09 11:40:57 2019 +0100
@@ -8,13 +8,13 @@
 		<tal:var define="target tales:relative_url(item.context)">
 			<div tal:define="illustration tales:pyams_illustration(item.context)"
 				 tal:condition="illustration"
-				 class="thumbnail pull-left hidden-xs">
+				 class="thumbnail pull-left col-sm-12 hidden-xs">
 				<a href="${target}">
 					<tal:if define="image i18n:illustration.data;
 									alt i18n:illustration.alt_title;"
 							condition="image">
 						${structure:tales:picture(image, lg_thumb='portrait', lg_width=3, md_thumb='portrait', md_width=3,
-												  sm_thumb='pano', sm_width=12, xs_thumb='pano', xs_width=12, alt=alt)}
+												  sm_thumb='pano', sm_width=12, xs_thumb='pano', xs_width=0, alt=alt)}
 					</tal:if>
 				</a>
 			</div>
--- a/src/pyams_default_theme/shared/site/portlet/templates/site-panels.pt	Wed Jan 09 11:40:18 2019 +0100
+++ b/src/pyams_default_theme/shared/site/portlet/templates/site-panels.pt	Wed Jan 09 11:40:57 2019 +0100
@@ -8,13 +8,13 @@
 		<tal:var define="target tales:relative_url(item.context)">
 			<div tal:define="illustration tales:pyams_illustration(item.context)"
 				 tal:condition="illustration"
-			     class="thumbnail pull-left hidden-xs">
+			     class="thumbnail pull-left col-sm-12 hidden-xs">
 				<a href="${target}">
 					<tal:if define="image i18n:illustration.data;
 									alt i18n:illustration.alt_title;"
 							condition="image">
 						${structure:tales:picture(image, lg_thumb='pano', lg_width=4, md_thumb='pano', md_width=4,
-												  sm_thumb='pano', sm_width=4, xs_thumb='pano', xs_width=12, alt=alt)}
+												  sm_thumb='pano', sm_width=4, xs_thumb='pano', xs_width=0, alt=alt)}
 					</tal:if>
 				</a>
 			</div>