Mercurial > p > roundup > code
diff templates/classic/html/_generic.index.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 | 902b016abbd1 |
| children |
line wrap: on
line diff
--- a/templates/classic/html/_generic.index.html Thu Nov 09 01:21:21 2006 +0000 +++ b/templates/classic/html/_generic.index.html Thu Nov 09 01:26:29 2006 +0000 @@ -11,10 +11,16 @@ <td class="content" metal:fill-slot="content"> -<span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())" +<span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok() + or request.user.hasRole('Anonymous'))" tal:omit-tag="python:1" i18n:translate="" >You are not allowed to view this page.</span> +<span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok()) + and request.user.hasRole('Anonymous')" + tal:omit-tag="python:1" i18n:translate="" +>Please login with your username and password.</span> + <tal:block tal:condition="context/is_edit_ok"> <tal:block i18n:translate=""> <p class="form-help">
