# HG changeset patch # User Thierry Florac # Date 1542636976 -3600 # Node ID 951d11442e0b5a24cd1997c80403dbc1948b32a5 # Parent be5bc85fd4427925f6ef1626828fe4a1cc5b3a88 Updated default templates diff -r be5bc85fd442 -r 951d11442e0b src/pyams_default_theme/component/gallery/__init__.py --- a/src/pyams_default_theme/component/gallery/__init__.py Mon Nov 19 15:15:37 2018 +0100 +++ b/src/pyams_default_theme/component/gallery/__init__.py Mon Nov 19 15:16:16 2018 +0100 @@ -19,7 +19,7 @@ from pyams_template.template import template_config from pyams_utils.adapter import adapter_config -from pyams_default_theme import _ +from pyams_default_theme import _, lightbox class BaseGalleryRenderer(BaseContentRenderer): @@ -34,6 +34,9 @@ label = _("Default grid gallery renderer") weight = 1 + i18n_context_attrs = ('title',) + resources = (lightbox,) + @adapter_config(name='carousel-sm', context=(IBaseGallery, IPyAMSLayer), provides=IContentRenderer) @template_config(template='templates/renderer-carousel.pt', layer=IPyAMSLayer) @@ -42,3 +45,5 @@ label = _("Carousel gallery renderer") weight = 2 + + i18n_context_attrs = ('title',) diff -r be5bc85fd442 -r 951d11442e0b src/pyams_default_theme/component/gallery/templates/renderer-carousel.pt --- a/src/pyams_default_theme/component/gallery/templates/renderer-carousel.pt Mon Nov 19 15:15:37 2018 +0100 +++ b/src/pyams_default_theme/component/gallery/templates/renderer-carousel.pt Mon Nov 19 15:16:16 2018 +0100 @@ -1,3 +1,4 @@ +

${view.title}