Ignore:
Timestamp:
30 Sep 2005, 09:28:29 (19 years ago)
Author:
joachim
Message:

weitere fixes

Location:
waeup_product/trunk/skins/waeup_student
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_student/student_folder_view.py

    r19 r23  
    1 ##parameters=post_id=None, REQUEST=None
     1##parameters=REQUEST=None
    22
    33# $Id$
     
    66will be displayed, otherwise first post will be displayed."""
    77
    8 return context.student_folder_view_main()
     8admin = "SectionManager" in context.portal_membership.getAuthenticatedMember().getRolesInContext(context)
     9
     10return context.student_folder_view_main(admin = admin)
  • waeup_product/trunk/skins/waeup_student/student_folder_view_main.pt

    r19 r23  
    11<html metal:use-macro="here/content_lib_master/macros/master">
    22
    3 <metal:block fill-slot="head_slot">
    4   <tal:block tal:define="student here/getContent">
    5   </tal:block>
    6 </metal:block>
     3  <metal:block fill-slot="head_slot">
     4    <tal:block tal:define="student here/getContent">
     5    </tal:block>
     6  </metal:block>
    77
    8 <metal:block fill-slot="css_slot">
    9   <link rel="Stylesheet" type="text/css" href=""
    10     tal:attributes="href string:${base_url}student.css" />
    11 </metal:block>
     8  <metal:block fill-slot="css_slot">
     9    <link rel="Stylesheet" type="text/css" href=""
     10          tal:attributes="href string:${base_url}student.css" />
     11  </metal:block>
    1212
    13 <metal:block fill-slot="main"
    14              tal:define="student_folder here/getContent;
    15              items here/contentValues">
    16 <span tal:condition="python: 0" tal:content="items" />
    17 <table cellspacing="0" cellpadding="0">
    18     <tal:block condition="python: len(items)">
    19       <tr tal:repeat="item items">
    20         <td colspan="1">
    21           <a href="student" tal:attributes="href item/absolute_url" tal:content="item/title_or_id"></a>
    22       </td>
    23       </tr>
    24     </tal:block>
    25     <tr tal:condition="python:not len(items)">
    26       <td>
    27         no Students yet !
    28       </td>
    29     </tr>
    30   </table>
    31 </metal:block>
     13  <metal:block fill-slot="main"
     14               tal:define="student_folder here/getContent;
     15               items here/contentValues"
     16               >
     17    <span tal:condition="python: mtool.isAnonymousUser()">
     18      Please login or check you Jambadmission.
     19    </span>
     20    <span tal:condition="python: 0" tal:content="python:member.getRolesInContext(here)" />
     21    <span tal:condition="python: 'SectionManager' in member.getRolesInContext(here)">
     22      <table cellspacing="0" cellpadding="0">
     23        <tal:block condition="python: len(items)">
     24          <tr tal:repeat="item items">
     25            <td colspan="1">
     26              <a href="student" tal:attributes="href item/absolute_url" tal:content="item/title_or_id"></a>
     27            </td>
     28          </tr>
     29        </tal:block>
     30        <tr tal:condition="python:not len(items)">
     31          <td>
     32            no Students yet !
     33          </td>
     34        </tr>
     35      </table>
     36    </span>
     37  </metal:block>
    3238</html>
Note: See TracChangeset for help on using the changeset viewer.