1: <html metal:use-macro="here/main_template/macros/page">
2: <head>
3: <title>Default</title>
4: <style metal:fill-slot="additionalStyles" type="text/css">
5: td.vario { background-color:#AC1D15 }
6: </style>
7: </head>
8: <body>
9:
10: <!-- span = bodytext -->
11: <span metal:fill-slot="body" tal:omit-tag="">
12:
13: <tal:block tal:define="authorized python:here.checkPermission('authorized') or
14: options.get('mode', 'open') == 'open'; global listEmpty python:1">
15:
16: <tal:block tal:condition="authorized">
17: <h3 tal:define="global mode python: options.get('mode', 'open')"><span
18: tal:condition="python: mode == 'private'"
19: tal:replace="python:'My '" /><span
20: tal:condition="python: mode == 'open_intern'"
21: tal:replace="python:'User '" /><span
22: tal:condition="python: mode == 'open'"
23: tal:replace="python:'Public '" />Sets
24: <!-- ??
25: <span tal:condition="python:here.checkPermission('edit') and mode != 'open_intern'">
26: <a class="editLink" tal:attributes="
27: href python:'manageBasketFolder?mode=%s'%mode"> | Edit overview</a></span>-->
28: <span tal:condition="python:mode == 'private'">
29: <a class="editLink" tal:attributes="
30: href python:'manageBasketFolder?mode=%s'%mode"> | Manage your sets</a>
31: </span>
32: </h3>
33: <!-- introduction -->
34: <p><span
35: tal:condition="python: mode == 'private'"
36: tal:replace="structure python:
37: 'This is a list of all your sets, including the sets of other users you have ' +
38: 'the permission to work on as an editor or administrator.'"/><span
39: tal:condition="python: mode == 'open_intern'"
40: tal:replace="structure python:
41: 'Browse through the sets of other registered users. To include one of ' +
42: 'your sets you have to change the access rights on its management page to ' +
43: '<i>open_intern</i>.'"/><span
44: tal:condition="python: mode == 'open'"
45: tal:replace="structure python:
46: 'These sets are thematic compilations of objects created by collaborators ' +
47: 'of the <i>Virtual Laboratory</i>.'"/></p><br>
48:
49: <!-- list of sets -->
50: <tal:block tal:repeat="item python: here.getSets(mode=options.get('mode', 'open'))">
51: <hr tal:define="
52: global listEmpty python:0;
53: global currentBasket python: here.getCurrentBasket();
54: global isActive python: currentBasket and currentBasket.id == item.id">
55: <a class="editLink" style="float:right"
56: tal:condition="python: not isActive and mode == 'private'"
57: tal:attributes="href python:'/users/setFolder/' + item.id +
58: '/selectThisBasketAsCurrent?target=/users/setFolder%3Fmode=' + mode">select</a>
59: <i style="float:right"
60: tal:condition="isActive">- active set -</i>
61:
62: <a class="setTitleLink" tal:condition="item/title"
63: tal:attributes="href item/absolute_url" tal:content="item/title"/>
64: <a class="setTitleLink" tal:condition="not: item/title"
65: tal:attributes="href item/absolute_url" tal:content="python:'Untitled Set'"/>
66: <i class="small"
67: tal:condition="python:
68: mode == 'private' and here.getActualUserName() != item.owner"
69: tal:content="python:
70: ' [shared set, created by ' + item.owner.split('@')[0] + ']'"
71: /><i class="small"
72: tal:condition="python: mode == 'open_intern' and item.owner != here.getActualUserName()"
73: tal:content="python:
74: ' [created by ' + item.owner + ']'"
75: /><i class="small"
76: tal:condition="python: mode == 'open_intern' and item.owner == here.getActualUserName()"
77: tal:content="python:
78: ' [your set]'" />
79: <div class="TOC" tal:content="structure item/shortDescription"/>
80: </tal:block>
81:
82: <form action="setFolder/addBasket"
83: tal:condition="python: listEmpty and mode == 'private'">
84: <!-- no sets available -->
85: There are no sets for your account.<br>
86: Create a new set with title <input size="20" name="title">
87: <input type="submit" value="add">
88: </form>
89:
90: </tal:block>
91:
92: <tal:block tal:condition="not: authorized">
93: <h3>Private Page</h3>
94:
95: <p>We are sorry, but only registered users may access this page,<br>
96: please <a href="users">log in</a> to view it.</p>
97:
98: <p>Not yet registered? <a href="register.html">Sign up</a> for a free account.</p>
99: <br><br>
100:
101: <p>You may find some thematic sets of objects compiled by collaborators <br>
102: of the <i>Virtual Laboratory</i> in the <a href="?mode=open">Public Sets</a> section.</p>
103: </tal:block>
104:
105: </tal:block>
106:
107: </span>
108: </body>
109: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>