more on CSS, controlling portlets
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1729 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
0b221c3697
commit
35038af303
2 changed files with 9 additions and 11 deletions
|
@ -42,9 +42,8 @@ h1 {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
.content-4 h1, .content-3 h2, .content-2 h3, h4 {
|
||||
font-size: 110%;
|
||||
border: none;
|
||||
.content-4 h1, .content-3 h2, .content-2 h3, .content-1 h4 {
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
.content-5 h1, .content-4 h2, .content-3 h3, content-2 h4 {
|
||||
|
|
|
@ -114,17 +114,16 @@ class ResourceView(BaseView):
|
|||
super(ResourceView, self).__init__(context, request)
|
||||
if not IUnauthenticatedPrincipal.providedBy(self.request.principal):
|
||||
cont = self.controller
|
||||
if cont is not None:
|
||||
if cont is not None and list(self.relatedConcepts()):
|
||||
cont.macros.register('portlet_right', 'related', title='Related Items',
|
||||
subMacro=self.template.macros['related'],
|
||||
position=0, info=self)
|
||||
if not IUnauthenticatedPrincipal.providedBy(self.request.principal):
|
||||
versionable = IVersionable(self.context, None)
|
||||
if versionable is not None and len(versionable.versions) > 1:
|
||||
cont.macros.register('portlet_right', 'versions',
|
||||
title='Version ' + versionable.versionId,
|
||||
subMacro=version_macros.macros['portlet_versions'],
|
||||
position=1, info=self)
|
||||
versionable = IVersionable(self.context, None)
|
||||
if versionable is not None and len(versionable.versions) > 1:
|
||||
cont.macros.register('portlet_right', 'versions',
|
||||
title='Version ' + versionable.versionId,
|
||||
subMacro=version_macros.macros['portlet_versions'],
|
||||
position=1, info=self)
|
||||
|
||||
@Lazy
|
||||
def view(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue