Mercurial > p > roundup > code
comparison templates/classic/html/msg.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 |
|---|---|
| 21 tal:omit-tag="python:1" i18n:translate="">Message<tal:x | 21 tal:omit-tag="python:1" i18n:translate="">Message<tal:x |
| 22 replace="context/id" i18n:name="id" /> Editing</span> | 22 replace="context/id" i18n:name="id" /> Editing</span> |
| 23 </tal:block> | 23 </tal:block> |
| 24 <td class="content" metal:fill-slot="content"> | 24 <td class="content" metal:fill-slot="content"> |
| 25 | 25 |
| 26 <p tal:condition="not:context/is_view_ok" i18n:translate="">You are not | 26 <p tal:condition="python:not (context.is_view_ok() |
| 27 allowed to view this page.</p> | 27 or request.user.hasRole('Anonymous'))" i18n:translate=""> |
| 28 You are not allowed to view this page.</p> | |
| 29 | |
| 30 <p tal:condition="python:not context.is_view_ok() | |
| 31 and request.user.hasRole('Anonymous')" i18n:translate=""> | |
| 32 Please login with your username and password.</p> | |
| 28 | 33 |
| 29 <div tal:condition="context/is_view_ok"> | 34 <div tal:condition="context/is_view_ok"> |
| 30 <table class="form"> | 35 <table class="form"> |
| 31 | 36 |
| 32 <tr> | 37 <tr> |
