Mercurial > p > roundup > code
diff templates/classic/html/file.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 | c26f2ba69c78 |
| children |
line wrap: on
line diff
--- a/templates/classic/html/file.item.html Thu Nov 09 01:21:21 2006 +0000 +++ b/templates/classic/html/file.item.html Thu Nov 09 01:26:29 2006 +0000 @@ -6,8 +6,13 @@ <td class="content" metal:fill-slot="content"> -<p tal:condition="not:context/is_view_ok" i18n:translate="">You are not - allowed to view this page.</p> +<p tal:condition="python:not (context.is_view_ok() + or request.user.hasRole('Anonymous'))" i18n:translate=""> + You are not allowed to view this page.</p> + +<p tal:condition="python:not context.is_view_ok() + and request.user.hasRole('Anonymous')" i18n:translate=""> + Please login with your username and password.</p> <form method="POST" onSubmit="return submit_once()" enctype="multipart/form-data" tal:condition="context/is_view_ok"
