# HG changeset patch # User Thierry Florac # Date 1558527394 -7200 # Node ID 8fc7bc61494bfbd770cffddd24165109109e9d2c # Parent 669391ff83792ff5b893c9e6563a1c2c61489618 Added conditions on iterators contents using new "boolean_iter" TALES expression diff -r 669391ff8379 -r 8fc7bc61494b src/pyams_default_theme/component/association/templates/association-default.pt --- a/src/pyams_default_theme/component/association/templates/association-default.pt Wed Mar 27 09:06:41 2019 +0100 +++ b/src/pyams_default_theme/component/association/templates/association-default.pt Wed May 22 14:16:34 2019 +0200 @@ -1,4 +1,6 @@ - -

ยง title

- ${structure:provider:pyams.associations(settings)} + +

${view.title}

+ ${structure:viewlet}
\ No newline at end of file diff -r 669391ff8379 -r 8fc7bc61494b src/pyams_default_theme/component/association/templates/association-remote-content.pt --- a/src/pyams_default_theme/component/association/templates/association-remote-content.pt Wed Mar 27 09:06:41 2019 +0100 +++ b/src/pyams_default_theme/component/association/templates/association-remote-content.pt Wed May 22 14:16:34 2019 +0200 @@ -1,8 +1,11 @@ + define="settings view.settings; + items view.links; + (has_items, links) tales:boolean_iter(items);" + condition="has_items">

${title}

- +

${i18n:target.title}

@@ -14,4 +17,4 @@
-
+ \ No newline at end of file diff -r 669391ff8379 -r 8fc7bc61494b src/pyams_default_theme/component/association/templates/association-viewlet.pt --- a/src/pyams_default_theme/component/association/templates/association-viewlet.pt Wed Mar 27 09:06:41 2019 +0100 +++ b/src/pyams_default_theme/component/association/templates/association-viewlet.pt Wed May 22 14:16:34 2019 +0200 @@ -1,7 +1,12 @@ + \ No newline at end of file diff -r 669391ff8379 -r 8fc7bc61494b src/pyams_default_theme/component/gallery/templates/renderer-carousel.pt --- a/src/pyams_default_theme/component/gallery/templates/renderer-carousel.pt Wed Mar 27 09:06:41 2019 +0100 +++ b/src/pyams_default_theme/component/gallery/templates/renderer-carousel.pt Wed May 22 14:16:34 2019 +0200 @@ -1,38 +1,41 @@ -

${view.title}

-