Changeset 6690 for main/waeup.sirp
- Timestamp:
- 6 Sep 2011, 21:55:38 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/browser
- Files:
-
- 2 added
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py
r6687 r6690 124 124 #: An instance of the default theme to use for the site layout 125 125 default_theme = WAeUPThemeGray1() 126 stafftemp = grok.PageTemplateFile('templates/staffsitelayout.pt') 127 studenttemp = grok.PageTemplateFile('templates/studentsitelayout.pt') 128 126 129 127 130 @property … … 166 169 return 'waeup.Student' in roles 167 170 168 def tableClass(self):169 if self.isStudent():170 return 'yui-t7'171 return 'yui-t1'172 173 171 def update(self): 174 172 """Include the resources required by the chosen skin/theme. … … 193 191 return 194 192 193 def render(self): 194 if self.isStudent() or not self.isAuthenticated(): 195 return self.studenttemp.render(self) 196 return self.stafftemp.render(self) -
main/waeup.sirp/trunk/src/waeup/sirp/browser/static/waeup-base.css
r6646 r6690 52 52 } 53 53 54 55 .block { 56 margin-bottom: 0.5em; 57 } 58 54 59 .block .bd { 55 60 padding-bottom: 1em; … … 62 67 .wfstatus { 63 68 float: right; 69 } 70 71 .studentmenu { 72 text-align: center; 73 line-height: 2; 64 74 } 65 75 -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/staffsitelayout.pt
r6687 r6690 13 13 tal:attributes="title string:RSS feed of ${layout/getAppTitle}; 14 14 href python: view.url(layout.site, 'feed.rss')" /> 15 15 16 </head> 16 17 <body class="rounded yui-skin-sam"> 17 <div id="doc3" tal:attributes= "class layout/tableClass">18 <div id="doc3" class="yui-t1"> 18 19 <div id="hd" role="banner"> 19 20 <div id="hd"> … … 25 26 </span> </h1> 26 27 <div id="navigation" class="yui-navset" style="text-align:right;"> 27 <ul id="primary-navigation" tal:condition="not: layout/isStudent">28 <ul id="primary-navigation"> 28 29 <tal:primary_nav content="structure provider:primary_nav" /> 29 30 </ul> 30 <ul id="primary-navigation" tal:condition="layout/isStudent"> 31 <tal:primary_nav content="structure provider:primary_nav_student" /> 32 </ul> 33 <ul id="user-navigation" tal:condition="layout/isAuthenticated"> 34 <li> 31 <ul id="user-navigation"> 32 <li tal:condition="not: layout/isAuthenticated"> 33 <a href="#" tal:attributes="href python: view.url(layout.site, 'login')"> 34 Login 35 </a> 36 </li> 37 <li tal:condition="layout/isAuthenticated"> 35 38 <a href="#" tal:attributes="href python: view.url(layout.site, '@@contactadmin')"> 36 39 Contact 37 40 </a> 38 41 </li> 39 <li >42 <li tal:condition="layout/isAuthenticated"> 40 43 <a href="#" tal:attributes="href python: view.url(context, '@@logout')">Logout</a> 41 44 </li> … … 47 50 </div> 48 51 <div id="bd" role="main"> 49 <span tal:condition="python: layout.isAuthenticated() and not layout.isStudent()"52 <span tal:condition="python: layout.isAuthenticated()" 50 53 tal:content="structure provider:breadcrumbs" /> 51 54 52 <div class="yui-b" tal:condition="not: layout/isStudent">55 <div class="yui-b"> 53 56 <div class="block" tal:condition="layout/getStudentName"> 54 57 <div class="hd"> … … 59 62 </div> 60 63 </div> 61 <div class="block" >64 <div class="block" tal:condition="layout/isAuthenticated"> 62 65 <div class="hd"> 63 66 <h2 tal:content="layout/getUserTitle">Username</h2> … … 69 72 </div> 70 73 71 <div class="yui-b" tal:condition="layout/isStudent">72 <div class="block" tal:condition="layout/getStudentName">73 <div>74 <tal:left content="structure provider:top_student" />75 </div>76 </div>77 </div>78 79 74 <div id="yui-main"> 80 75 <div class="yui-b"> 81 76 <div class="yui-g"> 82 77 <div class="block"> 83 <div class="hd" tal:condition=" not: layout/isStudent">78 <div class="hd" tal:condition="python: layout.isAuthenticated()"> 84 79 <span tal:content="view/title"> THE CONTENT TITLE </span> 85 80 <span tal:condition="layout/getStudentName" class="wfstatus">
Note: See TracChangeset for help on using the changeset viewer.