Mercurial > p > roundup > code
comparison roundup/templates/minimal/html/page @ 1226:0ef27b438916
adding the "minimal" template
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 26 Sep 2002 04:15:55 +0000 |
| parents | |
| children | f19dde90e473 |
comparison
equal
deleted
inserted
replaced
| 1225:eae6a5eb62e0 | 1226:0ef27b438916 |
|---|---|
| 1 <html metal:define-macro="icing"> | |
| 2 <head> | |
| 3 <title metal:define-slot="head_title">title goes here</title> | |
| 4 | |
| 5 <link rel="stylesheet" type="text/css" href="_file/style.css"> | |
| 6 | |
| 7 <script tal:replace="structure request/base_javascript"> | |
| 8 </script> | |
| 9 | |
| 10 </head> | |
| 11 <body class="body" marginwidth="0" marginheight="0"> | |
| 12 | |
| 13 <table class="body"> | |
| 14 | |
| 15 <tr> | |
| 16 <td class="page-header-left"> </td> | |
| 17 <td class="page-header-top" metal:define-slot="body_title"><h2>name</h2></td> | |
| 18 </tr> | |
| 19 | |
| 20 <tr> | |
| 21 <td rowspan="2" valign="top" nowrap class="sidebar"> | |
| 22 <p class="userblock" tal:condition="python:request.user.username=='anonymous'"> | |
| 23 <form method="POST" action=""> | |
| 24 <input size="10" name="__login_name"><br> | |
| 25 <input size="10" type="password" name="__login_password"><br> | |
| 26 <input type="submit" name=":action" value="login"> | |
| 27 <span tal:replace="structure request/indexargs_form" /> | |
| 28 </form> | |
| 29 <a href="user?:template=register">Register</a> | |
| 30 </p> | |
| 31 | |
| 32 <p class="userblock" tal:condition="python:request.user.username != 'anonymous'"> | |
| 33 <b>Hello,</b><br><b tal:content="request/user/username">username</b><br> | |
| 34 <a tal:attributes="href string:user${request/user/id}">My Details</a><br> | |
| 35 <a tal:attributes="href python:request.indexargs_href('', | |
| 36 {':action':'logout'})">Logout</a> | |
| 37 </p> | |
| 38 | |
| 39 <p class="classblock" | |
| 40 tal:condition="python:request.user.username != 'anonymous'"> | |
| 41 <b>Administration</b><br> | |
| 42 <a tal:condition="python:request.user.hasPermission('Edit', None)" | |
| 43 href="home?:template=classlist">Class List</a><br> | |
| 44 <a tal:condition="python:request.user.hasPermission('View', 'user') | |
| 45 or request.user.hasPermission('Edit', 'user')" | |
| 46 href="user" >User List</a><br> | |
| 47 <a tal:condition="python:request.user.hasPermission('Edit', 'user')" | |
| 48 href="user?:template=item">Add User</a> | |
| 49 </p> | |
| 50 </td> | |
| 51 <td> | |
| 52 <p tal:condition="options/error_message | nothing" class="error-message" | |
| 53 tal:repeat="m options/error_message" tal:content="structure m">error</p> | |
| 54 <p tal:condition="options/ok_message | nothing" class="ok-message" | |
| 55 tal:repeat="m options/ok_message" tal:content="structure m">error</p> | |
| 56 </td> | |
| 57 </tr> | |
| 58 <tr> | |
| 59 <td class="content" metal:define-slot="content">Page content goes here</td> | |
| 60 </tr> | |
| 61 | |
| 62 </table> | |
| 63 | |
| 64 <pre tal:condition="request/form/debug | nothing" tal:content="request"> | |
| 65 </pre> | |
| 66 | |
| 67 </body> | |
| 68 </html> |
