view templates/minimal/html/page.html @ 2077:3e0961d6d44d

Added the "actor" property. Metakit backend not done (still not confident I know how it's supposed to work ;) Currently it will come up as NULL in the RDBMS backends for older items. The *dbm backends will look up the journal. I hope to remedy the former before 0.7's release. Fixed a bunch of migration issues in the rdbms backends while I was at it (index changes for key prop changes) and simplified the class table update code for RDBMSes that have "alter table" in their command set (ie. not sqlite) ... migration from "version 1" to "version 2" still hasn't actually been tested yet though.
author Richard Jones <richard@users.sourceforge.net>
date Mon, 15 Mar 2004 05:50:20 +0000
parents 3a4abf6d48c2
children 35b4435d2ef2
line wrap: on
line source

<tal:block metal:define-macro="icing">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
                               "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title metal:define-slot="head_title">title goes here</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8;">

<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 class="body">

<tr>
 <td class="page-header-left">&nbsp;</td>
 <td class="page-header-top"><h2><span metal:define-slot="body_title">body title</span></h2></td>
</tr>

<tr>
 <td rowspan="2" valign="top" class="sidebar">
  <p class="userblock" tal:condition="python:request.user.username=='anonymous'">
   <form method="POST" action="">
    <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>
   <a tal:condition="python:request.user.hasPermission('Web Registration')"
      href="user?@template=register">Register</a>
  </p>

  <p class="userblock" tal:condition="python:request.user.username != 'anonymous'">
   <b>Hello,</b><br><b tal:content="request/user/username">username</b><br>
   <a tal:attributes="href string:user${request/user/id}">My Details</a><br>
   <a tal:attributes="href python:request.indexargs_href('',
       {'@action':'logout'})">Logout</a>
  </p>

  <p class="classblock"
       tal:condition="python:request.user.username != 'anonymous'">
   <b>Administration</b><br>
   <a tal:condition="python:request.user.hasPermission('Edit', None)"
      href="home?@template=classlist">Class List</a><br>
   <a tal:condition="python:request.user.hasPermission('View', 'user')
                            or request.user.hasPermission('Edit', 'user')"
      href="user" >User List</a><br>
   <a tal:condition="python:request.user.hasPermission('Edit', 'user')"
      href="user?@template=item">Add User</a>
  </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 class="content" metal:define-slot="content">Page content goes here</td>
</tr>

</table>

<pre tal:condition="request/form/debug | nothing" tal:content="request">
</pre>

</body>
</html>
</tal:block>

Roundup Issue Tracker: http://roundup-tracker.org/