<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "DTD/xhtml1-strict.dtd">
<?xml-stylesheet  href="erp5.css" rel="stylesheet" type="text/css"?>

<span tal:replace="nothing">
<!--
Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
                   Sebastien Robin     <seb@nexedi.com>

This program is Free Software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-->
</span>

<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
    xml:lang="en"
    xmlns:tal="http://xml.zope.org/namespaces/tal"
    xmlns:metal="http://xml.zope.org/namespaces/metal"
    metal:use-macro="here/view_master/macros/master">

  <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title tal:content="template/title_or_id">The title</title>
      <link href="erp5.css" rel="stylesheet" type="text/css"/>
  </head>

  <body><div metal:fill-slot="main">
          <div class="Main">

<br>
<table>
  <span tal:repeat="workflow_id python:here.getWorkflowIds()">
  <span tal:define="global list_history_item python:here.portal_workflow.getInfoFor(ob=here, name='history', wf_id=workflow_id)"
        tal:on-error="nothing"/>


  <span tal:condition="python: here.portal_workflow.getInfoFor(ob=here, name='history', wf_id=workflow_id) is not () and here.portal_workflow.getInfoFor(ob=here, name='history', wf_id=workflow_id) is not None"
      tal:on-error="nothing">
  <tr>
  <td>
  <b tal:content="workflow_id"/><br/>
  </td>
  </tr>

  <tr><td>
  <table border="1">

  <tr align=center>
    <span tal:repeat="history_element_title python:list_history_item[-1].keys()"
          tal:on-error="nothing">
    <span tal:condition="python: history_element_title<>'history'">
    <td>
      <b><span tal:content="python: history_element_title"/></b>
    </td>
    </span>
    </span>
  </tr>

  <tr tal:repeat="history_item list_history_item"
        tal:on-error="nothing">
    <span tal:repeat="history_element_title python:list_history_item[-1].keys()">
    <span tal:condition="python: history_element_title<>'history'">
    <td>
      <span tal:content="python: history_item.get(history_element_title)"/>
    </td>
    </span>
    </span>
  </tr>

  </table>
  </td></tr>
  </span>
  </span>
</table>

          </div>
      </div>
  </body>
</html>
