src/pyams_portal/zmi/layout.py
changeset 290 3977d9c8618d
parent 289 fca4100c1733
equal deleted inserted replaced
289:fca4100c1733 290:3977d9c8618d
    93         container = get_parent(self.context, IPortalTemplateContainer)
    93         container = get_parent(self.context, IPortalTemplateContainer)
    94         if container is None:
    94         if container is None:
    95             context = get_parent(self.context, IPortalContext)
    95             context = get_parent(self.context, IPortalContext)
    96             page = IPortalPage(context)
    96             page = IPortalPage(context)
    97             if page.use_local_template:
    97             if page.use_local_template:
    98                 return _("Local template configuration")
    98                 return _("Local template layout")
    99             if page.template.name == LOCAL_TEMPLATE_NAME:
    99             if page.template.name == LOCAL_TEMPLATE_NAME:
   100                 return _("Inherited local template configuration")
   100                 return _("Inherited local template configuration")
   101             translate = self.request.localizer.translate
   101             translate = self.request.localizer.translate
   102             return translate(_("Shared template configuration ({0})")).format(page.template.name)
   102             return translate(_("Shared template configuration ({0})")).format(page.template.name)
   103         return _("Template configuration")
   103         return _("Template layout")
   104 
   104 
   105     def get_template(self):
   105     def get_template(self):
   106         return self.context
   106         return self.context
   107 
   107 
   108     def get_context(self):
   108     def get_context(self):