Mercurial > p > roundup > code
comparison templates/classic/html/issue.item.html @ 3742:a9f6eb633452
nicer "permission required" messages (patch [SF#1558183])
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 09 Nov 2006 01:26:29 +0000 |
| parents | b2cff3b9e582 |
| children | 91008ec8f9a0 |
comparison
equal
deleted
inserted
replaced
| 3741:f9efa4ad9d96 | 3742:a9f6eb633452 |
|---|---|
| 23 replace="context/id" i18n:name="id" /> Editing</span> | 23 replace="context/id" i18n:name="id" /> Editing</span> |
| 24 </tal:block> | 24 </tal:block> |
| 25 | 25 |
| 26 <td class="content" metal:fill-slot="content"> | 26 <td class="content" metal:fill-slot="content"> |
| 27 | 27 |
| 28 <p tal:condition="not:context/is_view_ok" i18n:translate="">You are not | 28 <p tal:condition="python:not (context.is_view_ok() |
| 29 allowed to view this page.</p> | 29 or request.user.hasRole('Anonymous'))" i18n:translate=""> |
| 30 You are not allowed to view this page.</p> | |
| 31 | |
| 32 <p tal:condition="python:not context.is_view_ok() | |
| 33 and request.user.hasRole('Anonymous')" i18n:translate=""> | |
| 34 Please login with your username and password.</p> | |
| 30 | 35 |
| 31 <div tal:condition="context/is_view_ok"> | 36 <div tal:condition="context/is_view_ok"> |
| 32 | 37 |
| 33 <form method="POST" name="itemSynopsis" | 38 <form method="POST" name="itemSynopsis" |
| 34 onSubmit="return submit_once()" enctype="multipart/form-data" | 39 onSubmit="return submit_once()" enctype="multipart/form-data" |
