Mercurial > p > roundup > code
diff templates/classic/html/page.html @ 2080:aee415589d2c maint-0.6
simpler test
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 17 Mar 2004 06:30:57 +0000 |
| parents | 3d7bb1659d73 |
| children |
line wrap: on
line diff
--- a/templates/classic/html/page.html Fri Mar 12 00:28:31 2004 +0000 +++ b/templates/classic/html/page.html Wed Mar 17 06:30:57 2004 +0000 @@ -44,12 +44,10 @@ </form> <p class="classblock" - tal:condition="python:request.user.hasPermission('View', 'keyword')"> + tal:condition="python:request.user.hasPermission('Edit', 'keyword')"> <b>Keywords</b><br> - <a tal:condition="python:request.user.hasPermission('Edit', 'keyword')" - href="keyword?:template=item">Create New<br></a> - <a tal:condition="python:request.user.hasPermission('Edit', 'keyword') and - len(db.keyword.list())" + <a href="keyword?:template=item">Create New<br></a> + <a tal:condition="db/keyword/list" href="keyword?:template=item">Edit Existing<br></a> </p>
