1 <html tal:define="title string:${db/config/INSTANCE_NAME} - ${request/classname}">
2 <head>
3 <title tal:content="title">title goes here</title>
5 <link rel="stylesheet" type="text/css" href="_file/style.css">
7 <script tal:replace="structure request/base_javascript">
8 </script>
10 </head>
11 <body class="body" marginwidth="0" marginheight="0">
13 <table border=0 cellspacing=0 cellpadding=0>
15 <tr>
16 <td class="page-header-left"> </td>
17 <td class="page-header-top">
18 <h2 tal:content="title">name</h2>
19 </td>
20 </tr>
22 <tr>
23 <td rowspan="2" valign="top" nowrap class="sidebar">
24 <p class="classblock" tal:condition="request/user/queries">
25 <b>Your Queries</b><br>
26 <a tal:repeat="qs request/user/queries"
27 tal:attributes="href python:'%s%s'%(qs['klass'], qs['url'])"
28 tal:content="qs/name">link</a>
29 </p>
31 <p class="classblock"
32 tal:condition="python:request.user.hasPermission('View', 'issue')">
33 <b>Issues</b><br>
34 <a tal:condition="python:request.user.hasPermission('Edit', 'issue')"
35 href="issue?:template=item">New Issue<br></a>
36 <a href="issue?:sort=-activity&:group=priority&:filter=status,assignedto&:columns=id,activity,title,creator,status&status=-1,1,2,3,4,5,6,7&assignedto=-1">Unassigned Issues</a><br>
37 <a href="issue?:sort=-activity&:group=priority&:filter=status&:columns=id,activity,title,creator,assignedto,status&status=-1,1,2,3,4,5,6,7">All Issues</a><br>
38 <a href="issue?:template=search">Search Issues</a>
39 </p>
41 <p class="classblock"
42 tal:condition="python:request.user.hasPermission('Edit', None)">
43 <b>Admin</b><br>
44 <a href="home?:template=classlist">Class List</a><br>
45 <a href="user">User List</a><br>
46 <a href="user?:template=item">Add User</a>
47 </p>
49 <p class="userblock" tal:condition="python:request.user.username=='anonymous'">
50 <form method="POST" action="">
51 <input size="10" name="__login_name"><br>
52 <input size="10" type="password" name="__login_password"><br>
53 <input type="submit" name=":action" value="login">
54 <span tal:replace="structure request/indexargs_form" />
55 </form>
56 <a href="user?:template=register">Register</a>
57 </p>
59 <p class="userblock" tal:condition="python:request.user.username != 'anonymous'">
60 <b>Hello,</b><br><b tal:content="request/user/username">username</b><br>
61 <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}">My Issues</a><br>
62 <a tal:attributes="href string:user${request/user/id}">My Details</a><br>
63 <a tal:attributes="href python:request.indexargs_href(request.url,
64 {':action':'logout'})">Logout</a>
65 </p>
66 </td>
67 <td>
68 <p tal:condition="options/error_message | nothing" class="error-message"
69 tal:repeat="m options/error_message" tal:content="structure m">error</p>
70 <p tal:condition="options/ok_message | nothing" class="ok-message"
71 tal:repeat="m options/ok_message" tal:content="structure m">error</p>
72 </td>
73 </tr>
74 <tr>
75 <td width="100%" valign="top" tal:content="structure content" class="content">
76 The page content goes here.
77 </td>
78 </tr>
80 </table>
82 <pre tal:condition="request/form/debug | nothing" tal:content="request">
83 </pre>
85 </body>
86 </html>