view templates/classic/html/user.index.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 97f810f39d16
line wrap: on
line source

<!-- dollarId: user.index,v 1.3 2002/07/09 05:29:51 richard Exp dollar-->
<tal:block metal:use-macro="templates/page/macros/icing">
<title metal:fill-slot="head_title">User listing</title>
<span metal:fill-slot="body_title" tal:omit-tag="python:1">User listing</span>
<td class="content" metal:fill-slot="content">

<span tal:condition="not:context/is_view_ok">
You are not allowed to view this page.
</span>

<table width="100%" tal:condition="context/is_view_ok" class="list">
<tr>
 <th>Username</th>
 <th>Real name</th>
 <th>Organisation</th>
 <th>Email address</th>
 <th>Phone number</th>
 <th tal:condition="context/is_edit_ok">Retire</th>
</tr>
<tr tal:repeat="user context/list"
    tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]">
 <td>
  <a tal:attributes="href string:user${user/id}"
     tal:content="user/username">username</a>
 </td>
 <td tal:content="python:user.realname.plain() or default">&nbsp;</td>
 <td tal:content="python:user.organisation.plain() or default">&nbsp;</td>
 <td tal:content="python:user.address.email() or default">&nbsp;</td>
 <td tal:content="python:user.phone.plain() or default">&nbsp;</td>
 <td tal:condition="context/is_edit_ok">
  <a tal:attributes="href string:user${user/id}?@action=retire&@template=index">
   retire</a>
 </td>
</tr>
</table>
</td>

</tal:block>

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