Changeset 9140 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 1 Sep 2012, 06:19:56 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r9139 r9140 131 131 """ 132 132 grok.context(IStudentStudyCourse) 133 title = _('Study Course') 133 134 def title(self): 135 if self.context.is_current: 136 return _('Study Course') 137 else: 138 return _('Previous Study Course') 134 139 135 140 class PaymentsBreadcrumb(Breadcrumb): … … 669 674 @property 670 675 def label(self): 671 return _('${a}: Study Course', 672 mapping = {'a':self.context.__parent__.display_fullname}) 676 if self.context.is_current: 677 return _('${a}: Study Course', 678 mapping = {'a':self.context.__parent__.display_fullname}) 679 else: 680 return _('${a}: Previous Study Course', 681 mapping = {'a':self.context.__parent__.display_fullname}) 673 682 674 683 @property … … 689 698 if self.context.certificate is not None: 690 699 return self.context.certificate.__parent__.__parent__.__parent__ 700 return 701 702 @property 703 def prev_studycourses(self): 704 if self.context.is_current: 705 if self.context.__parent__.get('studycourse_2', None) is not None: 706 return ( 707 {'href':self.url(self.context.student) + '/studycourse_1', 708 'title':_('First Study Course, ')}, 709 {'href':self.url(self.context.student) + '/studycourse_2', 710 'title':_('Second Study Course')} 711 ) 712 if self.context.__parent__.get('studycourse_1', None) is not None: 713 return ( 714 {'href':self.url(self.context.student) + '/studycourse_1', 715 'title':_('First Study Course')}, 716 ) 691 717 return 692 718 -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/studycoursepage.pt
r7876 r9140 47 47 </td> 48 48 </tr> 49 <tr tal:condition="view/prev_studycourses"> 50 <td i18n:translate=""> 51 Previous Study Courses: 52 </td> 53 <td> 54 <span tal:repeat="value view/prev_studycourses"> 55 <a tal:attributes="href value/href" tal:content="value/title"> 56 FACULTY 57 </a> 58 </span> 59 </td> 60 </tr> 49 61 </tbody> 50 62 </table>
Note: See TracChangeset for help on using the changeset viewer.