Ignore:
Timestamp:
30 Jul 2010, 20:03:57 (14 years ago)
Author:
Henrik Bettermann
Message:
  • show manage viewlets across the portal
  • disable 'manage faculties' viewlets
  • rename Faculties to Academics
Location:
main/waeup.sirp/branches/henrik-experimental-layout/src/waeup/sirp/browser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/henrik-experimental-layout/src/waeup/sirp/browser/breadcrumbs.py

    r5005 r5351  
    7171    """
    7272    grok.context(interfaces.IFacultyContainer)
    73     title = u'Faculties'
     73    title = u'Academics'
    7474
    7575class AdministrationBreadcrumb(Breadcrumb):
  • main/waeup.sirp/branches/henrik-experimental-layout/src/waeup/sirp/browser/viewlets.py

    r5152 r5351  
    227227class ManageLink(grok.Viewlet):
    228228    grok.viewletmanager(LeftSidebar)
    229     grok.context(IUniversity)
    230     grok.view(UniversityPage)
     229    #grok.context(IUniversity)
     230    #grok.view(UniversityPage)
    231231    grok.order(5)
    232232    # This link is only displayed, if the user is
     
    235235   
    236236    def render(self):
    237         return u'<div class="portlet"><a href="manage">Settings</a></div>'
     237        return u'<div class="portlet"><a href="%s">Portal Settings</a></div>' % (
     238            self.view.application_url('manage'))       
     239       
     240       
    238241
    239242class ManageFacultiesLink(grok.Viewlet):
     
    247250   
    248251    def render(self):
    249         return u'<div class="portlet"><a href="faculties">Manage faculties</a></div>'
     252        #return u'<div class="portlet"><a href="faculties">Manage Faculties</a></div>'
     253        return ''
    250254
    251255class ManageUsersLink(grok.Viewlet):
    252256    grok.viewletmanager(LeftSidebar)
    253     grok.context(IUniversity)
    254     grok.view(UniversityPage)
     257    #grok.context(IUniversity)
     258    #grok.view(UniversityPage)
    255259    grok.order(6)
    256260    grok.require('waeup.manageUsers')
    257261
    258262    def render(self):
    259         return u'<div class="portlet"><a href="users">Manage users</a></div>'
     263        return u'<div class="portlet"><a href="%s">Portal Users</a></div>' % (
     264            self.view.application_url('users')) 
    260265
    261266class ManageDataCenter(grok.Viewlet):
    262267    grok.viewletmanager(LeftSidebar)
    263     grok.context(IUniversity)
    264     grok.view(UniversityPage)
     268    #grok.context(IUniversity)
     269    #grok.view(UniversityPage)
    265270    grok.order(6)
    266271    grok.require('waeup.manageUniversity')
    267272
    268273    def render(self):
    269         return u'<div class="portlet"><a href="datacenter">Data Center</a></div>'
     274        return u'<div class="portlet"><a href="%s">Data Center</a></div>' % (
     275            self.view.application_url('datacenter')) 
    270276
    271277#
     
    514520
    515521    pnav = 1
    516     tab_title = u'Faculties'
     522    tab_title = u'Academics'
    517523
    518524    @property
Note: See TracChangeset for help on using the changeset viewer.