Mercurial > p > roundup > code
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 3741:f9efa4ad9d96 | 3742:a9f6eb633452 |
|---|---|
| 4 <span metal:fill-slot="body_title" tal:omit-tag="python:1" | 4 <span metal:fill-slot="body_title" tal:omit-tag="python:1" |
| 5 i18n:translate="">File display</span> | 5 i18n:translate="">File display</span> |
| 6 | 6 |
| 7 <td class="content" metal:fill-slot="content"> | 7 <td class="content" metal:fill-slot="content"> |
| 8 | 8 |
| 9 <p tal:condition="not:context/is_view_ok" i18n:translate="">You are not | 9 <p tal:condition="python:not (context.is_view_ok() |
| 10 allowed to view this page.</p> | 10 or request.user.hasRole('Anonymous'))" i18n:translate=""> |
| 11 You are not allowed to view this page.</p> | |
| 12 | |
| 13 <p tal:condition="python:not context.is_view_ok() | |
| 14 and request.user.hasRole('Anonymous')" i18n:translate=""> | |
| 15 Please login with your username and password.</p> | |
| 11 | 16 |
| 12 <form method="POST" onSubmit="return submit_once()" | 17 <form method="POST" onSubmit="return submit_once()" |
| 13 enctype="multipart/form-data" tal:condition="context/is_view_ok" | 18 enctype="multipart/form-data" tal:condition="context/is_view_ok" |
| 14 tal:attributes="action context/designator"> | 19 tal:attributes="action context/designator"> |
| 15 | 20 |
