src/pyams_default_theme/shared/view/portlet/templates/view-items-horiz-list.pt
changeset 440 8fc7bc61494b
parent 396 fcc70be2fc80
child 513 874331106012
equal deleted inserted replaced
439:669391ff8379 440:8fc7bc61494b
     1 <div tal:define="settings view.settings;
     1 <div i18n:domain="pyams_default_theme"
     2 				 renderer_settings view.renderer_settings;"
     2 	 tal:define="settings view.settings;
     3 	 i18n:domain="pyams_default_theme">
     3 				 items settings.get_items(request);
       
     4 				 (has_items, results) tales:boolean_iter(items);"
       
     5 	 tal:condition="has_items">
     4 	<h2>${i18n:settings.title}</h2>
     6 	<h2>${i18n:settings.title}</h2>
     5 	<div tal:define="items settings.get_items(request);
     7 	<div tal:define="renderer_settings view.renderer_settings;
     6 					 limit settings.limit;
     8 					 limit settings.limit;
     7 					 selection renderer_settings.thumbnails_selection;
     9 					 selection renderer_settings.thumbnails_selection;
     8 					 lg_width 1 if selection == 'portrait' and limit > 6 else 2;
    10 					 lg_width 1 if selection == 'portrait' and limit > 6 else 2;
     9 					 md_width 1 if selection == 'portrait' and limit > 6 else 2;
    11 					 md_width 1 if selection == 'portrait' and limit > 6 else 2;
    10 					 sm_width 2 if selection == 'portrait' and limit > 6 else 3;
    12 					 sm_width 2 if selection == 'portrait' and limit > 6 else 3;
    11 					 xs_width 2 if selection == 'portrait' and limit > 6 else 3;">
    13 					 xs_width 2 if selection == 'portrait' and limit > 6 else 3;">
    12 		<tal:loop repeat="item items">
    14 		<tal:loop repeat="item results">
    13 			<div class="thumbnail col-lg-${lg_width} col-md-${md_width} col-sm-${sm_width} col-xs-${xs_width}"
    15 			<div class="thumbnail col-lg-${lg_width} col-md-${md_width} col-sm-${sm_width} col-xs-${xs_width}"
    14 				 tal:define="illustration tales:pyams_illustration(item);
    16 				 tal:define="illustration tales:pyams_illustration(item);
    15 							 target view.get_url(item);"
    17 							 target view.get_url(item);"
    16 				 tal:condition="illustration">
    18 				 tal:condition="illustration">
    17 				<a href="${target}">
    19 				<a href="${target}">