Ignore:
Timestamp:
28 Aug 2011, 08:41:05 (13 years ago)
Author:
Henrik Bettermann
Message:

Add viewlet manager 'StudentSitebar?' which is rendered in a block above the LeftSidebar? viewlet manager block. This viewlet manager replaces the plain action buttons recently implemented.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/browser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py

    r6465 r6642  
    1414from waeup.sirp.browser.interfaces import ITheme
    1515from waeup.sirp.browser.theming import get_all_themes, WAeUPThemeGray1
     16from waeup.sirp.students.interfaces import IStudentNavigation
    1617
    1718grok.templatedir('templates')
     
    152153        return userid
    153154
     155    def getStudentName(self):
     156        """Return the student name.
     157        """
     158        if IStudentNavigation.providedBy(self.context):
     159            return self.context.getStudent().name
     160        return
     161
    154162    def update(self):
    155163        """Include the resources required by the chosen skin/theme.
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/sitelayout.pt

    r6639 r6642  
    7373        </div>
    7474        <div class="yui-b">
     75          <div class="block" tal:condition="layout/getStudentName">
     76            <div class="hd">
     77              <h2 tal:content="layout/getStudentName">Student name</h2>
     78            </div>
     79            <div class="bd">
     80              <tal:left content="structure provider:left_student" />
     81            </div>
     82          </div>
    7583          <div class="block">
    7684            <div class="hd">
Note: See TracChangeset for help on using the changeset viewer.