Mise à jour du profil de configuration par défaut qui ne fonctionnait plus depuis...
[Plinn.git] / skins / generic / last_member_logs.pt
1 <html metal:use-macro="here/main_template/macros/master"
2 xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
5 <title>Last member logs</title>
6 </head>
7 <body metal:fill-slot="main_no_tabs" tal:omit-tag=""
8 i18n:domain="plinn"
9 tal:define="psf python:['getMemberSortableFormat', 'last_login_time'] ;
10 rsorted_field request/form/sorted_field|nothing ;
11 sorted_field python: here.getOrSetSessionVar('sorted_field', rsorted_field, 'last_login_time');
12 sorted_field python: sorted_field in psf and sorted_field or here.getOrSetSessionVar('sorted_field', 'last_login_time');
13 rsorted_dir request/form/sorted_dir|nothing;
14 sorted_dir python: here.getOrSetSessionVar('sorted_dir', rsorted_dir, 'up');
15 arrow python:sorted_dir=='up' and 'arrowUp.gif' or 'arrowDown.gif';
16 alternateText python:sorted_dir == 'up' and 'ascending sort' or 'descending sort';
17 members python:here.sort_folder_contents(mtool.listMembers(), sorted_field, sorted_dir);
18 toggleDir python:lambda col, sorted_field, dir : (col == sorted_field) and (dir=='up' and 'down' or 'up') or dir">
19 <h1 i18n:translate="">Last member login times</h1>
20 <table cellspacing="0" class="listing">
21 <tr>
22 <th tal:define="col string:getMemberSortableFormat">
23 <a href="." tal:attributes="href python:'?sorted_field=%s&sorted_dir=%s' % (col, toggleDir(col, sorted_field, sorted_dir))" i18n:translate="">Name</a>
24 <img tal:condition="python:sorted_field == col" tal:attributes="src arrow ; alt alternateText" i18n:attributes="alt" />
25 </th>
26 <th tal:define="col string:last_login_time">
27 <a href="." tal:attributes="href python:'?sorted_field=%s&sorted_dir=%s' % (col, toggleDir(col, sorted_field, sorted_dir))" i18n:translate="">Last login time</a>
28 <img tal:condition="python:sorted_field == col" tal:attributes="src arrow ; alt alternateText" i18n:attributes="alt" />
29 </th>
30 </tr>
31 <tr tal:repeat="m members" tal:attributes="class python:repeat['m'].odd() and 'odd' or 'even'">
32 <td><a tal:content="m/getMemberFullName" tal:attributes="href string:mailto:${m/email}>">user fullname</a></td>
33 <td tal:content="python:m.last_login_time.strftime(locale_date_fmt)" tal:on-error="string:—"></td>
34 </tr>
35 </table>
36 </body>
37 </html>