0d7e245f092a6e6f0bc288319dcfba7e8921586a
[Plinn.git] / skins / generic / wf_macros.pt
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3 <html xmlns="http://www.w3.org/1999/xhtml">
4
5 <head>
6 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
7 <title></title>
8 </head>
9
10 <body i18n:domain="plinn">
11
12 <div metal:define-macro="default_workflow"
13 tal:define="review_history python: wtool.getInfoFor(here, 'review_history', default=None)" >
14 <table cellspacing="0" class="listing" tal:condition="review_history">
15 <tr>
16 <th i18n:translate="">Date</th>
17 <th i18n:translate="">Actor</th>
18 <th i18n:translate="">Action</th>
19 <th i18n:translate="">Comments</th>
20 <th i18n:translate="">Email sent to</th>
21 </tr>
22 <div tal:repeat="item python:review_history[::-1]" tal:omit-tag="">
23 <tr tal:define="oddrow repeat/item/odd" tal:attributes="class python:test(oddrow, 'even', 'odd')"
24 tal:condition="item/action">
25 <td tal:content="python:item['time'].strftime(locale_date_fmt)">time</td>
26 <td tal:content="python:mtool.getMemberFullNameById(item['actor'], nameBefore=0)">actor</td>
27 <td tal:content="python:item['action'].capitalize()" i18n:translate=""></td>
28 <td tal:define="comments item/comments"><span tal:replace="comments" /><em tal:condition="not:comments" i18n:translate="">(no comments)</em></td>
29 <td tal:define="email_sent python:item.get('email_sent', [])">
30 <span tal:repeat="e email_sent">
31 <span tal:content="python:mtool.getMemberFullNameById(e, nameBefore=0)">recipient</span><br />
32 </span>
33 <em tal:condition="not:email_sent" i18n:translate="">(no email sent)</em>
34 </td>
35 </tr>
36 </div>
37 </table>
38 <em i18n:translate="" i18n:domain="cmf_default" tal:condition="not:review_history">This item has not had any status changes.</em>
39 </div>
40
41 </body>
42
43 </html>