Mercurial > p > roundup > code
diff roundup/templates/classic/html/issue.index @ 1136:7e193bbda38e
added generic item editing
. much nicer layout of template rendering errors
. added context/is_edit_ok and context/is_view_ok convenience methods and
implemented use of them in the classic template
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 13 Sep 2002 03:31:19 +0000 |
| parents | ddbc5d1ad94f |
| children | 7d1b69122133 |
line wrap: on
line diff
--- a/roundup/templates/classic/html/issue.index Fri Sep 13 01:29:24 2002 +0000 +++ b/roundup/templates/classic/html/issue.index Fri Sep 13 03:31:19 2002 +0000 @@ -1,5 +1,9 @@ <!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar--> -<tal:block tal:define="batch request/batch"> +<tal:block tal:condition="not:context/is_view_ok"> +You are not allowed to view this page. +</tal:block> + +<tal:block tal:define="batch request/batch" tal:condition="context/is_view_ok"> <table class="list"> <tr> <th tal:condition="request/show/priority">Priority</th>
