Mercurial > p > roundup > code
comparison website/issues/html/page.html @ 4024:c2d0d3e9099d website
svn repository setup
| author | Stefan Seefeld <stefan@users.sourceforge.net> |
|---|---|
| date | Fri, 06 Feb 2009 13:16:31 +0000 |
| parents | |
| children | 099e33402fc7 |
comparison
equal
deleted
inserted
replaced
| 4023:86c38b5aed66 | 4024:c2d0d3e9099d |
|---|---|
| 1 <tal:block metal:define-macro="icing"> | |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| 3 <html> | |
| 4 <head> | |
| 5 <title metal:define-slot="head_title">title goes here</title> | |
| 6 <link media="screen" href="http://python.org/styles/defaultfonts.css" type="text/css" rel="alternate stylesheet" title="default fonts" /> | |
| 7 <link rel="stylesheet" type="text/css" href="@@file/style.css" /> | |
| 8 <link rel="stylesheet" type="text/css" href="@@file/tracker.css" /> | |
| 9 <meta http-equiv="Content-Type" | |
| 10 tal:attributes="content string:text/html;; charset=${request/client/charset}" /> | |
| 11 <script tal:replace="structure request/base_javascript"> | |
| 12 </script> | |
| 13 <metal:x define-slot="more-javascript" /> | |
| 14 | |
| 15 </head> | |
| 16 <body | |
| 17 tal:define=" | |
| 18 kw_create python:request.user.hasPermission('Create', 'keyword'); | |
| 19 columns string:id,activity,title,creator,status; | |
| 20 columns_showall string:id,activity,title,creator,assignee,status; | |
| 21 status_notresolved string:-1,1,2,4; | |
| 22 "> | |
| 23 <div class="header"> | |
| 24 <h1><a href="/">Roundup Tracker - Issues</a></h1> | |
| 25 <div id="searchbox"> | |
| 26 <form name="searchform" method="get" action="issue" id="searchform"> | |
| 27 <div id="search"> | |
| 28 <input type="hidden" name="@columns" | |
| 29 tal:attributes="value columns_showall"/> | |
| 30 <input type="hidden" name="@sort" value="-activity" /> | |
| 31 <input type="hidden" name="@group" value="priority" /> | |
| 32 <input type="hidden" name="@filter" value="status"/> | |
| 33 <input type="hidden" name="status" tal:attributes="value status_notresolved"/> | |
| 34 <input class="input-text" id="search-text" name="@search_text" size="10" /> | |
| 35 <input type="submit" id="submit" value="search in open issues" name="submit" | |
| 36 class="input-button"/> | |
| 37 </div> | |
| 38 </form> | |
| 39 </div> <!-- searchbox --> | |
| 40 </div> | |
| 41 <div class="navigation"> | |
| 42 <div class="menu"> | |
| 43 <ul> | |
| 44 <li><a href="http://www.roundup-tracker.org" title="home...">Home</a></li> | |
| 45 <li><a href="http://pypi.python.org/pypi/roundup" title="Get it !">Download</a></li> | |
| 46 <li><a href="http://www.roundup-tracker.org/docs.html" title="What you always wanted to know...">Docs</a></li> | |
| 47 <li class="current"><a href="/" i18n:translate="">Issues</a> | |
| 48 <ul tal:condition="python:request.user.hasPermission('View', 'issue')"> | |
| 49 <li tal:condition="python:request.user.hasPermission('Create', 'issue')"> | |
| 50 <a href="issue?@template=item" i18n:translate="">Create New</a> | |
| 51 </li> | |
| 52 <li><a href="#" | |
| 53 tal:attributes="href python:request.indexargs_url('issue', { | |
| 54 '@sort': '-activity', | |
| 55 '@group': 'priority', | |
| 56 '@filter': 'status', | |
| 57 '@columns': columns_showall, | |
| 58 '@search_text': '', | |
| 59 'status': status_notresolved, | |
| 60 '@dispname': i18n.gettext('Show All'), | |
| 61 '@startwith': 0, | |
| 62 })" | |
| 63 i18n:translate="">Show Open</a></li> | |
| 64 <li><a href="#" | |
| 65 tal:attributes="href python:request.indexargs_url('issue', { | |
| 66 '@sort': '-activity', | |
| 67 '@group': 'priority', | |
| 68 '@filter': 'status,assignee', | |
| 69 '@columns': columns, | |
| 70 '@search_text': '', | |
| 71 'status': status_notresolved, | |
| 72 'assignee': '-1', | |
| 73 '@dispname': i18n.gettext('Show Unassigned'), | |
| 74 '@startwith': 0, | |
| 75 })" | |
| 76 i18n:translate="">Show Unassigned</a></li> | |
| 77 <li> | |
| 78 <a href="issue?@template=search&status=1" i18n:translate="">Search</a> | |
| 79 </li> | |
| 80 <li> | |
| 81 <form method="post" action="#"> | |
| 82 <input type="submit" class="form-small" value="Show issue:" | |
| 83 i18n:attributes="value"/> | |
| 84 <input class="form-small" size="4" | |
| 85 type="text" name="@number"/> | |
| 86 <input type="hidden" name="@type" value="issue"/> | |
| 87 <input type="hidden" name="@action" value="show"/> | |
| 88 </form> | |
| 89 </li> | |
| 90 </ul> | |
| 91 | |
| 92 <ul> | |
| 93 <li tal:condition="python:request.user.username=='anonymous'" class="submenu"> | |
| 94 <b i18n:translate="">User</b> | |
| 95 <form method="post" action="#"> | |
| 96 <ul> | |
| 97 <li> | |
| 98 <tal:span i18n:translate="">Login</tal:span><br/> | |
| 99 <input size="10" name="__login_name"/><br/> | |
| 100 <input size="10" type="password" name="__login_password"/><br/> | |
| 101 <input type="hidden" name="@action" value="Login"/> | |
| 102 <input type="checkbox" name="remember" id="remember"/> | |
| 103 <label for="remember" i18n:translate="">Remember me?</label><br/> | |
| 104 <input class="form-small" type="submit" value="Login" i18n:attributes="value"/><br/> | |
| 105 <input type="hidden" name="__came_from" tal:attributes="value string:${request/env/PATH_INFO}"/> | |
| 106 <span tal:replace="structure request/indexargs_form" /> | |
| 107 </li> | |
| 108 <li> | |
| 109 <a href="user?@template=register" | |
| 110 tal:condition="python:request.user.hasPermission('Create', 'user')" | |
| 111 i18n:translate="">Register</a> | |
| 112 </li> | |
| 113 <li><a href="user?@template=forgotten" i18n:translate="">Lost your login?</a> | |
| 114 </li> | |
| 115 </ul> | |
| 116 </form> | |
| 117 </li> | |
| 118 | |
| 119 <li tal:condition="python:request.user.username != 'anonymous'" class="submenu"> | |
| 120 <p class="label"><b tal:replace="request/user/username">username</b></p> | |
| 121 <ul> | |
| 122 <li> | |
| 123 <a href="#" | |
| 124 tal:attributes="href python:request.indexargs_url('issue', { | |
| 125 '@sort': '-activity', | |
| 126 '@group': 'priority', | |
| 127 '@filter': 'status,assignee', | |
| 128 '@columns': 'id,activity,title,creator,status', | |
| 129 '@search_text': '', | |
| 130 'status': status_notresolved, | |
| 131 'assignee': request.user.id, | |
| 132 '@dispname': i18n.gettext('Your Issues'), | |
| 133 '@startwith': 0, | |
| 134 })" | |
| 135 i18n:translate="">Your Issues</a> | |
| 136 </li> | |
| 137 <li> | |
| 138 <a tal:attributes="href string:user${request/user/id}" | |
| 139 i18n:translate="">Your Details</a> | |
| 140 </li> | |
| 141 <li> | |
| 142 <a tal:attributes="href python:request.indexargs_url('', | |
| 143 {'@action':'logout'})" i18n:translate="">Logout</a> | |
| 144 </li> | |
| 145 <li class="" | |
| 146 tal:condition="python:request.user.hasPermission('View', 'query')"> | |
| 147 <span i18n:translate=""><b>Your Queries</b> (<a class="nomargin" href="query?@template=edit">edit</a>)</span><br/> | |
| 148 <ul tal:repeat="qs request/user/queries"> | |
| 149 <li><a tal:attributes="href string:${qs/klass}?${qs/url}&@dispname=${qs/name}" | |
| 150 tal:content="qs/name">link</a></li> | |
| 151 </ul> | |
| 152 </li> | |
| 153 <li class="" | |
| 154 tal:condition="python:request.user.hasPermission('View', 'user')"> | |
| 155 <b i18n:translate="">Administration</b> | |
| 156 <ul> | |
| 157 <li tal:condition="python:request.user.hasPermission('Edit', None)"> | |
| 158 <a href="home?@template=classlist" i18n:translate="">Class List</a> | |
| 159 </li> | |
| 160 <li tal:condition="python:request.user.hasPermission('View', 'user') | |
| 161 or request.user.hasPermission('Edit', 'user')"> | |
| 162 <a href="user?@sort=username" i18n:translate="">User List</a> | |
| 163 </li> | |
| 164 <li tal:condition="python:request.user.hasPermission('Create', 'user')"><a href="user?@template=item" i18n:translate="">Add User</a> | |
| 165 </li> | |
| 166 <li tal:condition="python:request.user.hasPermission('Edit', | |
| 167 'keyword')"><a href="keyword" i18n:translate="">Edit Keywords</a> | |
| 168 </li> | |
| 169 <!-- <li tal:condition="python:request.user.hasPermission('SB: May Classify',None)"><a href="msg?@sort=-spambayes_score">View Spam</a> | |
| 170 </li>--> | |
| 171 </ul> | |
| 172 </li> | |
| 173 </ul> | |
| 174 </li> | |
| 175 </ul> | |
| 176 | |
| 177 </li> | |
| 178 <li><a href="http://www.roundup-tracker.org/contact.html" title="Get in touch.">Contact</a></li> | |
| 179 <li><a href="http://wiki.roundup-tracker.org" title="Share your ideas...">Wiki</a></li> | |
| 180 <li><a href="http://www.roundup-tracker.org/code.html" title="Be the sources with you.">Code</a></li> | |
| 181 </ul> | |
| 182 </div> <!-- menu --> | |
| 183 </div> <!-- navigation --> | |
| 184 | |
| 185 <div class="content"> | |
| 186 <h1 id="breadcrumb"><span metal:define-slot="body_title">body title</span></h1> | |
| 187 <p tal:condition="options/error_message | nothing" class="error-message" | |
| 188 tal:repeat="m options/error_message" tal:content="structure m" /> | |
| 189 <p tal:condition="options/ok_message | nothing" class="ok-message"> | |
| 190 <span tal:repeat="m options/ok_message" | |
| 191 tal:content="structure string:$m <br/ > " /> | |
| 192 <a class="form-small" tal:attributes="href request/current_url" | |
| 193 i18n:translate="">clear this message</a> | |
| 194 </p> | |
| 195 <tal:block metal:define-slot="content">Page content goes here</tal:block> | |
| 196 </div> <!-- content --> | |
| 197 <div class="footer"> | |
| 198 <div class="credits"> | |
| 199 <a href="http://www.upfrontsystems.co.za/" title="issue tracker hosting provided by Upfront Systems, South Africa">hosting by Upfront Systems</a> | |
| 200 </div> <!-- credits --> | |
| 201 <!-- Created: Wed Jan 14 11:55:38 EST 2009 --> | |
| 202 <!-- hhmts start --> | |
| 203 Last modified: Tue Feb 3 22:02:04 EST 2009 | |
| 204 <!-- hhmts end --> | |
| 205 </div> <!-- footer --> | |
| 206 | |
| 207 <pre tal:condition="request/form/deissue | nothing" tal:content="request"> | |
| 208 </pre> | |
| 209 | |
| 210 </body> | |
| 211 </html> | |
| 212 </tal:block> | |
| 213 | |
| 214 <!-- | |
| 215 The following macros are intended to be used in search pages. | |
| 216 | |
| 217 The invoking context must define a "name" variable which names the | |
| 218 property being searched. | |
| 219 | |
| 220 See issue.search.html in the classic template for examples. | |
| 221 --> | |
| 222 | |
| 223 <!-- creates a th and a label: --> | |
| 224 <th metal:define-macro="th_label" | |
| 225 tal:define="required required | python:[]" | |
| 226 tal:attributes="class python:(name in required) and 'required' or nothing"> | |
| 227 <label tal:attributes="for name" tal:content="label" i18n:translate="">text</label> | |
| 228 <metal:x define-slot="behind_the_label" /> | |
| 229 </th> | |
| 230 | |
| 231 <td metal:define-macro="search_input"> | |
| 232 <input tal:attributes="value python:request.form.getvalue(name) or nothing; | |
| 233 name name; | |
| 234 id name"/> | |
| 235 </td> | |
| 236 | |
| 237 <td metal:define-macro="search_date"> | |
| 238 <input tal:attributes="value python:request.form.getvalue(name) or nothing; | |
| 239 name name; | |
| 240 id name"/> | |
| 241 <a class="classhelp" | |
| 242 tal:attributes="href python:'''javascript:help_window('issue?@template=calendar&property=%s&form=itemSynopsis', 300, 200)'''%name">(cal)</a> | |
| 243 </td> | |
| 244 | |
| 245 <td metal:define-macro="search_popup"> | |
| 246 <!-- | |
| 247 context needs to specify the popup "columns" as a comma-separated | |
| 248 string (eg. "id,title" or "id,name,description") as well as name | |
| 249 --> | |
| 250 <input tal:attributes="value python:request.form.getvalue(name) or nothing; | |
| 251 name name; | |
| 252 id name"/> | |
| 253 <span tal:replace="structure python:db.issue.classhelp(columns, | |
| 254 property=name)" /> | |
| 255 </td> | |
| 256 | |
| 257 <td metal:define-macro="search_select"> | |
| 258 <select tal:attributes="name name; id name" | |
| 259 tal:define="value python:request.form.getvalue(name)"> | |
| 260 <option value="" i18n:translate="">don't care</option> | |
| 261 <metal:slot define-slot="extra_options" /> | |
| 262 <option value="" i18n:translate="" disabled="disabled">------------</option> | |
| 263 <option tal:repeat="s python:db[db_klass].list()" | |
| 264 tal:attributes="value s/id; selected python:value == s.id" | |
| 265 tal:content="python:s[db_content]"></option> | |
| 266 </select> | |
| 267 </td> | |
| 268 | |
| 269 <!-- like search_select, but translates the further values. | |
| 270 Could extend it (METAL 1.1 attribute "extend-macro") | |
| 271 --> | |
| 272 <td metal:define-macro="search_select_translated"> | |
| 273 <select tal:attributes="name name; id name" | |
| 274 tal:define="value python:request.form.getvalue(name)"> | |
| 275 <option value="" i18n:translate="">don't care</option> | |
| 276 <metal:slot define-slot="extra_options" /> | |
| 277 <option value="" i18n:translate="" disabled="disabled">------------</option> | |
| 278 <option tal:repeat="s python:db[db_klass].list()" | |
| 279 tal:attributes="value s/id; selected python:value == s.id" | |
| 280 tal:content="python:s[db_content]" | |
| 281 i18n:translate=""></option> | |
| 282 </select> | |
| 283 </td> | |
| 284 | |
| 285 <!-- currently, there is no convenient API to get a list of all roles --> | |
| 286 <td metal:define-macro="search_select_roles" | |
| 287 tal:define="onchange onchange | nothing"> | |
| 288 <select name=roles id=roles tal:attributes="onchange onchange"> | |
| 289 <option value="" i18n:translate="">don't care</option> | |
| 290 <option value="" i18n:translate="" disabled="disabled">------------</option> | |
| 291 <option value="User">User</option> | |
| 292 <option value="Developer">Developer</option> | |
| 293 <option value="Coordinator">Coordinator</option> | |
| 294 </select> | |
| 295 </td> | |
| 296 | |
| 297 <td metal:define-macro="search_multiselect"> | |
| 298 <input tal:attributes="value python:request.form.getvalue(name) or nothing; | |
| 299 name name; | |
| 300 id name"/> | |
| 301 <span tal:replace="structure python:db[db_klass].classhelp(db_content, | |
| 302 property=name, width='600')" /> | |
| 303 </td> | |
| 304 | |
| 305 <td metal:define-macro="search_checkboxes"> | |
| 306 <ul class="search-checkboxes" | |
| 307 tal:define="value python:request.form.getvalue(name); | |
| 308 values python:value and value.split(',') or []"> | |
| 309 <li tal:repeat="s python:db[db_klass].list()"> | |
| 310 <input type="checkbox" tal:attributes="name name; id string:$name-${s/id}; | |
| 311 value s/id; checked python:s.id in values" /> | |
| 312 <label tal:attributes="for string:$name-${s/id}" | |
| 313 tal:content="python:s[db_content]" /> | |
| 314 </li> | |
| 315 <li metal:define-slot="no_value_item"> | |
| 316 <input type="checkbox" value="-1" tal:attributes="name name; | |
| 317 id string:$name--1; checked python:value == '-1'" /> | |
| 318 <label tal:attributes="for string:$name--1" i18n:translate="">no value</label> | |
| 319 </li> | |
| 320 </ul> | |
| 321 </td> | |
| 322 | |
| 323 <td metal:define-macro="column_input"> | |
| 324 <input type="checkbox" name="@columns" | |
| 325 tal:attributes="value name; | |
| 326 checked python:name in cols"/> | |
| 327 </td> | |
| 328 | |
| 329 <td metal:define-macro="sort_input"> | |
| 330 <input type="radio" name="@sort" | |
| 331 tal:attributes="value name; | |
| 332 checked python:name == sort_on"/> | |
| 333 </td> | |
| 334 | |
| 335 <td metal:define-macro="group_input"> | |
| 336 <input type="radio" name="@group" | |
| 337 tal:attributes="value name; | |
| 338 checked python:name == group_on"/> | |
| 339 </td> | |
| 340 | |
| 341 <!-- | |
| 342 The following macros are intended for user editing. | |
| 343 | |
| 344 The invoking context must define a "name" variable which names the | |
| 345 property being searched; the "edit_ok" variable tells whether the | |
| 346 current user is allowed to edit. | |
| 347 | |
| 348 See user.item.html in the classic template for examples. | |
| 349 --> | |
| 350 <script metal:define-macro="user_utils" type="text/javascript" src="@@file/user_utils.js"></script> | |
| 351 | |
| 352 <!-- src: value will be re-used for other input fields --> | |
| 353 <input metal:define-macro="user_src_input" | |
| 354 type="text" tal:attributes="onblur python:edit_ok and 'split_name(this)'; | |
| 355 id name; name name; value value; readonly not:edit_ok" | |
| 356 value="heinz.kunz"/> | |
| 357 <!-- normal: no re-using --> | |
| 358 <input metal:define-macro="user_normal_input" type="text" | |
| 359 tal:attributes="id name; name name; value value; readonly not:edit_ok" | |
| 360 value="heinz"/> | |
| 361 <!-- password: type; no initial value --> | |
| 362 <input metal:define-macro="user_pw_input" type="password" | |
| 363 tal:attributes="id name; name name; readonly not:edit_ok" value=""/> | |
| 364 <input metal:define-macro="user_confirm_input" type="password" | |
| 365 tal:attributes="id name; name string:@confirm@$name; readonly not:edit_ok" value=""/> | |
| 366 |
