Mercurial > p > roundup > code
view roundup/templates/classic/html/page @ 1003:f89b8d32291b
Hack hack hack...
. Implemented security assertion idea punted to mailing list (pretty easy to
back out if someone comes up with a better idea) so editing "my details"
works again. Rationalised and cleaned up the actions in any case.
. fixed some more display issues (stuff appearing when it should and shouldn't)
. trying a nicer colouring scheme for the top level page
. handle no grouping being specified
. fixed journaltag so the logged-in user is journalled, not admin!
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 01 Sep 2002 12:18:41 +0000 |
| parents | 1798d2fa9fec |
| children | 5f12d3259f31 |
line wrap: on
line source
<html tal:define="title string:${db/config/INSTANCE_NAME} - ${request/classname}"> <head> <title tal:content="title">title goes here</title> <link rel="stylesheet" type="text/css" href="_file/style.css"> <script tal:replace="structure request/base_javascript"> </script> </head> <body class="body" marginwidth="0" marginheight="0"> <table border=0 cellspacing=0 cellpadding=0> <tr> <td class="page-header-left"> </td> <td class="page-header-top"> <h2 tal:content="title">name</h2> </td> </tr> <tr> <td rowspan="2" valign="top" nowrap class="sidebar"> <p class="classblock" tal:condition="python:request.user.hasPermission('View', 'issue')"> <b>Issues</b><br> <a tal:condition="python:request.user.hasPermission('Edit', 'issue')" href="issue?:template=item">New Issue<br></a> <a href="issue?:sort=-activity&:group=priority&:filter=status,assignedto&:columns=id,activity,title,creator,priority&status=-1,1,2,3,4,5,6,7&assignedto=-1">Unassigned Issues</a><br> <a href="issue?:sort=-activity&:group=priority&:filter=status&:columns=id,activity,title,creator,assignedto,priority&status=-1,1,2,3,4,5,6,7">All Issues</a><br> <a href="issue?:template=search">Search Issues</a> </p> <p class="classblock" tal:condition="python:request.user.hasPermission('Edit', None)"> <b>Admin</b><br> <a href="home?:template=classlist">Class List</a><br> <a href="user">User List</a><br> <a href="user?:template=item">Add User</a> </p> <p class="userblock"> <b>Hello,</b><br><b tal:content="request/user/username">username</b><br> <form method="POST" action='' tal:condition="python:request.user.username=='anonymous'"> <input size="10" name="__login_name"><br> <input size="10" type="password" name="__login_password"><br> <input type="submit" name=":action" value="login"> <span tal:replace="structure request/indexargs_form" /> </form> <tal:block tal:condition="python:request.user.username != 'anonymous'"> <a tal:attributes="href string:issue?:sort=-activity&:group=priority&:filter=status,assignedto&:columns=id,activity,title,creator,priority&status=-1,1,2,3,4,5,6,7&assignedto=${request/user/id}">My Issues</a><br> <a tal:attributes="href string:user${request/user/id}">My Details</a><br> <a href="?:action=logout">Logout</a> </tal:block> </p> </td> <td> <p tal:condition="options/error_message | nothing" class="error-message" tal:repeat="m options/error_message" tal:content="structure m">error</p> <p tal:condition="options/ok_message | nothing" class="ok-message" tal:repeat="m options/ok_message" tal:content="structure m">error</p> </td> </tr> <tr> <td width="100%" valign="top" tal:content="structure content" class="content"> The page content goes here. </td> </tr> </table> <pre tal:condition="request/form/debug | nothing" tal:content="request"> </pre> </body> </html>
