version 1.2, 2006/03/19 03:26:56
|
version 1.8, 2006/04/06 16:49:14
|
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')"> |
<!-- log in message --> |
|
<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> |
|
|
|
<!-- id selected: manage set --> |
|
<tal:block tal:condition="python:here.isAuthorized('edit')"> |
|
<a href="manageBasketFolder">Manage set overview</a> |
|
</tal:block> |
|
</tal:block> |
|
<h1>Sets</h1> |
|
|
|
<tal:x tal:repeat="item python:here.getSets(mode=options.get('mode',None))"> |
<tal:block tal:condition="authorized"> |
<a tal:attributes="href item/absolute_url"> |
<h2 tal:define="mode python: options.get('mode', 'open')"><span |
<h2 tal:content="item/title"/> |
tal:condition="python: mode == 'private'" |
</a> |
tal:replace="python:'My '" /><span |
|
tal:condition="python: mode == 'open_intern'" |
<p tal:content="structure item/shortDescription"/> |
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></h2> |
|
|
|
<tal:block tal:repeat="item python:here.getSets(mode=options.get('mode', 'open'))"> |
|
<hr> |
|
<a class="setTitle" tal:attributes="href item/absolute_url" tal:content="item/title"/> |
|
<div class="TOC" tal:content="structure item/shortDescription"/> |
|
</tal:block> |
|
|
<br> |
</tal:block> |
|
|
|
<tal:block tal:condition="not: authorized"> |
|
log in message |
|
</tal:block> |
|
|
</tal:x> |
</tal:block> |
|
|
</span> |
</span> |
</body> |
</body> |