Mercurial > p > roundup > code
comparison templates/classic/html/page.html @ 3712:6c35e658c2c6
i18n:translate again; some additional href="#"s
| author | Tobias Herp <tobias-herp@users.sourceforge.net> |
|---|---|
| date | Tue, 19 Sep 2006 07:05:17 +0000 |
| parents | ba2eeadeed69 |
| children | 4cbbf9210edd |
comparison
equal
deleted
inserted
replaced
| 3711:20f63b6b806f | 3712:6c35e658c2c6 |
|---|---|
| 1 <tal:block metal:define-macro="icing"><!-- ££££µµµµ vim:sw=2 ts=2 | 1 <!-- vim:sw=2 sts=2 |
| 2 --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | 2 --><tal:block metal:define-macro="icing" |
| 3 "http://www.w3.org/TR/html4/strict.dtd"> | 3 ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 4 <html> | 4 <html> |
| 5 <head> | 5 <head> |
| 6 <title metal:define-slot="head_title">title goes here</title> | 6 <title metal:define-slot="head_title">title goes here</title> |
| 7 <link rel="stylesheet" type="text/css" href="@@file/style.css"> | 7 <link rel="stylesheet" type="text/css" href="@@file/style.css"> |
| 8 <meta http-equiv="Content-Type" | 8 <meta http-equiv="Content-Type" |
| 9 tal:attributes="content string:text/html;; charset=${request/client/charset}" /> | 9 tal:attributes="content string:text/html; charset=${request/client/charset}" /> |
| 10 <script tal:replace="structure request/base_javascript"> | 10 <script tal:replace="structure request/base_javascript"> |
| 11 </script> | 11 </script> |
| 12 <metal:x define-slot="more-javascript" /> | 12 <metal:x define-slot="more-javascript" /> |
| 13 | 13 |
| 14 </head> | 14 </head> |
| 50 <p class="classblock" | 50 <p class="classblock" |
| 51 tal:condition="python:request.user.hasPermission('View', 'query')"> | 51 tal:condition="python:request.user.hasPermission('View', 'query')"> |
| 52 <span i18n:translate="" | 52 <span i18n:translate="" |
| 53 ><b>Your Queries</b> (<a href="query?@template=edit">edit</a>)</span><br> | 53 ><b>Your Queries</b> (<a href="query?@template=edit">edit</a>)</span><br> |
| 54 <tal:block tal:repeat="qs request/user/queries"> | 54 <tal:block tal:repeat="qs request/user/queries"> |
| 55 <a tal:attributes="href string:${qs/klass}?${qs/url}&@dispname=${qs/name}" | 55 <a href="#" tal:attributes="href string:${qs/klass}?${qs/url}&@dispname=${qs/name}" |
| 56 tal:content="qs/name">link</a><br> | 56 tal:content="qs/name">link</a><br> |
| 57 </tal:block> | 57 </tal:block> |
| 58 </p> | 58 </p> |
| 59 | 59 |
| 60 <form method="POST" tal:attributes="action request/base"> | 60 <form method="POST" tal:attributes="action request/base"> |
| 62 tal:condition="python:request.user.hasPermission('View', 'issue')"> | 62 tal:condition="python:request.user.hasPermission('View', 'issue')"> |
| 63 <b i18n:translate="">Issues</b><br> | 63 <b i18n:translate="">Issues</b><br> |
| 64 <span tal:condition="python:request.user.hasPermission('Create', 'issue')"> | 64 <span tal:condition="python:request.user.hasPermission('Create', 'issue')"> |
| 65 <a href="issue?@template=item" i18n:translate="">Create New</a><br> | 65 <a href="issue?@template=item" i18n:translate="">Create New</a><br> |
| 66 </span> | 66 </span> |
| 67 <a href="#" | 67 <a href="#" |
| 68 tal:define="txt python:i18n.gettext('Show Unassigned')" | |
| 69 tal:attributes="href python:request.indexargs_url('issue', { | 68 tal:attributes="href python:request.indexargs_url('issue', { |
| 70 '@sort': '-activity', | 69 '@sort': '-activity', |
| 71 '@group': 'priority', | 70 '@group': 'priority', |
| 72 '@filter': 'status,assignedto', | 71 '@filter': 'status,assignedto', |
| 73 '@columns': columns, | 72 '@columns': columns, |
| 74 'status': status_notresolved, | 73 'status': status_notresolved, |
| 75 'assignedto': '-1', | 74 'assignedto': '-1', |
| 76 '@dispname': txt, | 75 '@dispname': i18n.gettext('Show Unassigned'), |
| 77 })" | 76 })" |
| 78 tal:content="txt">Show Unassigned</a><br> | 77 i18n:translate="">Show Unassigned</a><br> |
| 79 <a href="#" | 78 <a href="#" |
| 80 tal:define="txt python:i18n.gettext('Show All')" | |
| 81 tal:attributes="href python:request.indexargs_url('issue', { | 79 tal:attributes="href python:request.indexargs_url('issue', { |
| 82 '@sort': '-activity', | 80 '@sort': '-activity', |
| 83 '@group': 'priority', | 81 '@group': 'priority', |
| 84 '@filter': 'status', | 82 '@filter': 'status', |
| 85 '@columns': columns_showall, | 83 '@columns': columns_showall, |
| 86 'status': status_notresolved, | 84 'status': status_notresolved, |
| 87 '@dispname': txt, | 85 '@dispname': i18n.gettext('Show All'), |
| 88 })" | 86 })" |
| 89 tal:content="txt">Show All</a><br> | 87 i18n:translate="">Show All</a><br> |
| 90 <a href="issue?@template=search" i18n:translate="">Search</a><br> | 88 <a href="issue?@template=search" i18n:translate="">Search</a><br> |
| 91 <input type="submit" class="form-small" value="Show issue:" | 89 <input type="submit" class="form-small" value="Show issue:" |
| 92 i18n:attributes="value"><input class="form-small" size="4" | 90 i18n:attributes="value"><input class="form-small" size="4" |
| 93 type="text" name="@number"> | 91 type="text" name="@number"> |
| 94 <input type="hidden" name="@type" value="issue"> | 92 <input type="hidden" name="@type" value="issue"> |
| 141 </form> | 139 </form> |
| 142 | 140 |
| 143 <p class="userblock" tal:condition="python:request.user.username != 'anonymous'"> | 141 <p class="userblock" tal:condition="python:request.user.username != 'anonymous'"> |
| 144 <b i18n:translate="">Hello, <span i18n:name="user" | 142 <b i18n:translate="">Hello, <span i18n:name="user" |
| 145 tal:replace="request/user/username">username</span></b><br> | 143 tal:replace="request/user/username">username</span></b><br> |
| 146 <a tal:attributes="href string:issue?@sort=-activity&@group=priority&@filter=status,assignedto&@columns=id,activity,title,creator,status&status=-1,1,2,3,4,5,6,7&assignedto=${request/user/id}" i18n:translate="">Your Issues</a><br> | 144 <a href="#" tal:attributes="href string:issue?@sort=-activity&@group=priority&@filter=status,assignedto&@columns=id,activity,title,creator,status&status=-1,1,2,3,4,5,6,7&assignedto=${request/user/id}" i18n:translate="">Your Issues</a><br> |
| 147 <a tal:attributes="href string:user${request/user/id}" | 145 <a href="#" tal:attributes="href string:user${request/user/id}" |
| 148 i18n:translate="">Your Details</a><br> | 146 i18n:translate="">Your Details</a><br> |
| 149 <a tal:attributes="href python:request.indexargs_url('', | 147 <a href="#" tal:attributes="href python:request.indexargs_url('', |
| 150 {'@action':'logout'})" i18n:translate="">Logout</a> | 148 {'@action':'logout'})" i18n:translate="">Logout</a> |
| 151 </p> | 149 </p> |
| 152 <p class="userblock"> | 150 <p class="userblock"> |
| 153 <b i18n:translate="">Help</b><br> | 151 <b i18n:translate="">Help</b><br> |
| 154 <a href="http://roundup.sourceforge.net/doc-1.0/" | 152 <a href="http://roundup.sourceforge.net/doc-1.0/" |
| 313 property being searched; the "edit_ok" variable tells whether the | 311 property being searched; the "edit_ok" variable tells whether the |
| 314 current user is allowed to edit. | 312 current user is allowed to edit. |
| 315 | 313 |
| 316 See user.item.html in the classic template for examples. | 314 See user.item.html in the classic template for examples. |
| 317 --> | 315 --> |
| 318 <script metal:define-macro="user_utils" type="text/javascript" src="@@file/user_utils.js"></script> | 316 <script metal:define-macro="user_utils" type="text/javascript" src="@@file/user_utils.js"></script> |
| 319 | 317 |
| 320 <!-- src: value will be re-used for other input fields --> | 318 <!-- src: value will be re-used for other input fields --> |
| 321 <input metal:define-macro="user_src_input" | 319 <input metal:define-macro="user_src_input" |
| 322 type="text" tal:attributes="onblur python:edit_ok and 'split_name(this)'; | 320 type="text" tal:attributes="onblur python:edit_ok and 'split_name(this)'; |
| 323 id name; name name; value value; readonly not:edit_ok" | 321 id name; name name; value value; readonly not:edit_ok" |
| 327 tal:attributes="id name; name name; value value; readonly not:edit_ok" | 325 tal:attributes="id name; name name; value value; readonly not:edit_ok" |
| 328 value="heinz"> | 326 value="heinz"> |
| 329 <!-- password: type; no initial value --> | 327 <!-- password: type; no initial value --> |
| 330 <input metal:define-macro="user_pw_input" type="password" | 328 <input metal:define-macro="user_pw_input" type="password" |
| 331 tal:attributes="id name; name name; readonly not:edit_ok" value=""> | 329 tal:attributes="id name; name name; readonly not:edit_ok" value=""> |
| 332 | 330 |
