version 1.2, 2006/03/19 03:26:56
|
version 1.10, 2006/04/07 18:32:28
|
Line 1
|
Line 1
|
<html metal:use-macro="here/main_template/macros/page"> |
<html metal:use-macro="here/main_template/macros/page"> |
<head> |
<head> |
<title>Default</title> |
<title>Default</title> |
|
<style metal:fill-slot="additionalStyles" type="text/css"> |
|
td.vario { background-color:#AC1D15 } |
|
</style> |
</head> |
</head> |
<body> |
<body> |
|
|
<!-- span = bodytext --> |
<!-- span = bodytext --> |
<span metal:fill-slot="body" tal:omit-tag=""> |
<span metal:fill-slot="body" tal:omit-tag=""> |
<tal:block tal:define="authorized python:here.isAuthorized()"> |
|
|
|
<!-- user is logged in --> |
<tal:block tal:define="authorized python:here.checkPermission('authorized') or |
<!-- log in message --> |
options.get('mode', 'open') == 'open'; global listEmpty python:1"> |
<div class="logout" style="float:right"><a href="/users/login.html?logout">log out</a></div> |
|
<div class="userName">logged in as <span tal:content="here/getActualUserName"/></div> |
<tal:block tal:condition="authorized"> |
|
<h3 tal:define="global mode python: options.get('mode', 'open')"><span |
<!-- id selected: manage set --> |
tal:condition="python: mode == 'private'" |
<tal:block tal:condition="python:here.isAuthorized('edit')"> |
tal:replace="python:'My '" /><span |
<a href="manageBasketFolder">Manage set overview</a> |
tal:condition="python: mode == 'open_intern'" |
|
tal:replace="python:'User '" /><span |
|
tal:condition="python: mode == 'open'" |
|
tal:replace="python:'Public '" />Sets |
|
<span tal:condition="python:here.checkPermission('edit') and mode != 'open_intern'"> |
|
<a class="editLink" tal:attributes=" |
|
href python:'manageBasketFolder?mode=%s'%mode"> | Edit overview</a></span> |
|
<span tal:condition="python:mode == 'private'"> |
|
<a class="editLink" tal:attributes=" |
|
href python:'manageBasketFolder?mode=%s'%mode"> | Edit overview</a> |
|
</span> |
|
</h3> |
|
<p><span |
|
tal:condition="python: mode == 'private'" |
|
tal:replace="structure python: 'This is a list of all your sets, including the sets of other users you have the permission to work on as an editor or administrator.'"/><span |
|
tal:condition="python: mode == 'open_intern'" |
|
tal:replace="structure python: 'Browse through the sets of other registered users. To include one of your sets you must change the access rights on its management page to <i>open_intern</i>.'"/><span |
|
tal:condition="python: mode == 'open'" |
|
tal:replace="structure python: 'These sets are thematic compilations of objects created by collaborators of the <i>Virtual Laboratory</i>.'"/> </p><br> |
|
|
|
<tal:block tal:repeat="item python: here.getSets(mode=options.get('mode', 'open'))"> |
|
<hr tal:define="global listEmpty python:0"> |
|
<a class="setTitle" tal:attributes="href item/absolute_url" tal:content="item/title"/> |
|
<i class="small" tal:condition="python: |
|
here.getActualUserName() != item.owner and mode == 'private'" tal:content="python:' [shared set]'" /> |
|
<div class="TOC" tal:content="structure item/shortDescription"/> |
</tal:block> |
</tal:block> |
|
|
|
<form tal:condition="python: listEmpty and mode == 'private'" action="setFolder/addBasket"> |
|
There are no sets for your account.<br>Create a new set with title <input size="20" name="title"><input type="submit" value="add"> |
|
</form> |
|
|
</tal:block> |
</tal:block> |
<h1>Sets</h1> |
|
|
|
<tal:x tal:repeat="item python:here.getSets(mode=options.get('mode',None))"> |
<tal:block tal:condition="not: authorized"> |
<a tal:attributes="href item/absolute_url"> |
<h3>Private Page</h3> |
<h2 tal:content="item/title"/> |
|
</a> |
|
|
|
<p tal:content="structure item/shortDescription"/> |
<p>We are sorry, but only registered users may access this page,<br> |
|
please <a href="users">log in</a> to view it.</p> |
|
|
<br> |
<p>Not yet registered? <a href="register.html">Sign up</a> for a free account.</p><br><br> |
|
|
|
<p>You may find some thematic sets of objects compiled by collaborators <br> |
|
of the <i>Virtual Laboratory</i> in the <a href="?mode=open">Public Sets</a> section.</p> |
|
</tal:block> |
|
|
</tal:x> |
</tal:block> |
|
|
</span> |
</span> |
</body> |
</body> |