--- a/src/pyams_skin/interfaces/viewlet.py Wed Sep 12 15:45:27 2018 +0200
+++ b/src/pyams_skin/interfaces/viewlet.py Wed Sep 12 16:42:47 2018 +0200
@@ -224,8 +224,7 @@
label = TextLine(title="Item label")
- view_name = TextLine(title="Link view name",
- default='admin')
+ view_name = TextLine(title="Link view name")
css_class = TextLine(title="CSS class")
--- a/src/pyams_skin/viewlet/breadcrumb/__init__.py Wed Sep 12 15:45:27 2018 +0200
+++ b/src/pyams_skin/viewlet/breadcrumb/__init__.py Wed Sep 12 16:42:47 2018 +0200
@@ -42,6 +42,12 @@
return absolute_url(self.context, self.request, self.view_name)
+class BreadcrumbAdminLayerItem(BreadcrumbItem):
+ """Breadcrumb item for admin layer"""
+
+ view_name = 'admin'
+
+
@contentprovider_config(name='pyams.breadcrumbs', layer=IPyAMSLayer, view=Interface)
@template_config(template='breadcrumbs.pt', layer=IPyAMSLayer)
class BreadcrumbsContentProvider(ViewContentProvider):