Changeset 6642 for main/waeup.sirp/trunk/src/waeup/sirp/browser
- Timestamp:
- 28 Aug 2011, 08:41:05 (13 years ago)
- 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 14 14 from waeup.sirp.browser.interfaces import ITheme 15 15 from waeup.sirp.browser.theming import get_all_themes, WAeUPThemeGray1 16 from waeup.sirp.students.interfaces import IStudentNavigation 16 17 17 18 grok.templatedir('templates') … … 152 153 return userid 153 154 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 154 162 def update(self): 155 163 """Include the resources required by the chosen skin/theme. -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/sitelayout.pt
r6639 r6642 73 73 </div> 74 74 <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> 75 83 <div class="block"> 76 84 <div class="hd">
Note: See TracChangeset for help on using the changeset viewer.