Mercurial > p > roundup > code
comparison templates/classic/html/page.html @ 1954:a71bc3a6f433
Added 'Users may only edit their issues' customisation example.
Fixed permission check in page.html template.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 10 Dec 2003 01:40:12 +0000 |
| parents | f5c804379c85 |
| children | 3a4abf6d48c2 |
comparison
equal
deleted
inserted
replaced
| 1953:800b226bba58 | 1954:a71bc3a6f433 |
|---|---|
| 55 len(db.keyword.list())" | 55 len(db.keyword.list())" |
| 56 href="keyword?@template=item">Edit Existing<br></a> | 56 href="keyword?@template=item">Edit Existing<br></a> |
| 57 </p> | 57 </p> |
| 58 | 58 |
| 59 <p class="classblock" | 59 <p class="classblock" |
| 60 tal:condition="python:request.user.username != 'anonymous'"> | 60 tal:condition="python:request.user.hasPermission('View', 'user')"> |
| 61 <b>Administration</b><br> | 61 <b>Administration</b><br> |
| 62 <tal:block tal:condition="python:request.user.hasPermission('Edit', None)"> | 62 <tal:block tal:condition="python:request.user.hasPermission('Edit', None)"> |
| 63 <a href="home?@template=classlist">Class List</a><br> | 63 <a href="home?@template=classlist">Class List</a><br> |
| 64 </tal:block> | 64 </tal:block> |
| 65 <a tal:condition="python:request.user.hasPermission('View', 'user') | 65 <a tal:condition="python:request.user.hasPermission('View', 'user') |
