comparison templates/classic/html/user.index.html @ 2395:97f810f39d16

i18n markup
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sun, 06 Jun 2004 13:21:39 +0000
parents 3a4abf6d48c2
children 3551fbf8cf29
comparison
equal deleted inserted replaced
2394:29bfb67ba5ba 2395:97f810f39d16
1 <!-- dollarId: user.index,v 1.3 2002/07/09 05:29:51 richard Exp dollar--> 1 <!-- dollarId: user.index,v 1.3 2002/07/09 05:29:51 richard Exp dollar-->
2 <tal:block metal:use-macro="templates/page/macros/icing"> 2 <tal:block metal:use-macro="templates/page/macros/icing">
3 <title metal:fill-slot="head_title">User listing</title> 3 <title metal:fill-slot="head_title" i18n:translate="">User listing</title>
4 <span metal:fill-slot="body_title" tal:omit-tag="python:1">User listing</span> 4 <span metal:fill-slot="body_title" tal:omit-tag="python:1"
5 i18n:translate="">User listing</span>
5 <td class="content" metal:fill-slot="content"> 6 <td class="content" metal:fill-slot="content">
6 7
7 <span tal:condition="not:context/is_view_ok"> 8 <span tal:condition="not:context/is_view_ok"
8 You are not allowed to view this page. 9 i18n:translate="">You are not allowed to view this page.</span>
9 </span>
10 10
11 <table width="100%" tal:condition="context/is_view_ok" class="list"> 11 <table width="100%" tal:condition="context/is_view_ok" class="list">
12 <tr> 12 <tr>
13 <th>Username</th> 13 <th i18n:translate="">Username</th>
14 <th>Real name</th> 14 <th i18n:translate="">Real name</th>
15 <th>Organisation</th> 15 <th i18n:translate="">Organisation</th>
16 <th>Email address</th> 16 <th i18n:translate="">Email address</th>
17 <th>Phone number</th> 17 <th i18n:translate="">Phone number</th>
18 <th tal:condition="context/is_edit_ok">Retire</th> 18 <th tal:condition="context/is_edit_ok" i18n:translate="">Retire</th>
19 </tr> 19 </tr>
20 <tr tal:repeat="user context/list" 20 <tr tal:repeat="user context/list"
21 tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]"> 21 tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]">
22 <td> 22 <td>
23 <a tal:attributes="href string:user${user/id}" 23 <a tal:attributes="href string:user${user/id}"
26 <td tal:content="python:user.realname.plain() or default">&nbsp;</td> 26 <td tal:content="python:user.realname.plain() or default">&nbsp;</td>
27 <td tal:content="python:user.organisation.plain() or default">&nbsp;</td> 27 <td tal:content="python:user.organisation.plain() or default">&nbsp;</td>
28 <td tal:content="python:user.address.email() or default">&nbsp;</td> 28 <td tal:content="python:user.address.email() or default">&nbsp;</td>
29 <td tal:content="python:user.phone.plain() or default">&nbsp;</td> 29 <td tal:content="python:user.phone.plain() or default">&nbsp;</td>
30 <td tal:condition="context/is_edit_ok"> 30 <td tal:condition="context/is_edit_ok">
31 <a tal:attributes="href string:user${user/id}?@action=retire&@template=index"> 31 <a tal:attributes="href string:user${user/id}?@action=retire&@template=index"
32 retire</a> 32 i18n:translate="">retire</a>
33 </td> 33 </td>
34 </tr> 34 </tr>
35 </table> 35 </table>
36 </td> 36 </td>
37 37

Roundup Issue Tracker: http://roundup-tracker.org/