summaryrefslogtreecommitdiff
path: root/themes/CleanFS/templates/details.tabs.history.callback.tpl
blob: 07eefd53ab2af5f218e890d334322f3ff2d6e98f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php if ($details && count($histories)): ?>
<table class="userlist history">
  <tr>
    <th><?php echo Filters::noXSS(L('previousvalue')); ?></th>
    <th><?php echo Filters::noXSS(L('newvalue')); ?></th>
  </tr>
  <tr>
    <td><?php echo $details_previous; ?></td>
    <td><?php echo $details_new; ?></td>
  </tr>
</table>
<?php else: ?>
<table class="userlist history">
  <tr>
    <th><?php echo Filters::noXSS(L('eventdate')); ?></th>
    <th><?php echo Filters::noXSS(L('user')); ?></th>
    <th><?php echo Filters::noXSS(L('event')); ?></th>
  </tr>

  <?php foreach($histories as $history): ?>
  <tr>
    <td><?php echo Filters::noXSS(formatDate($history['event_date'], false)); ?></td>
    <?php if($fs->prefs['enable_avatars'] == 1) { ?>
    <td><?php echo tpl_userlinkavatar($history['user_id'], $fs->prefs['max_avatar_size'] / 2, 'left', '0px 5px 0px 0px'); ?> <?php echo tpl_userlink($history['user_id']); ?></td>
    <?php } else { ?>
    <td><?php echo tpl_userlink($history['user_id']); ?></td>
    <?php } ?>
    <td><?php echo event_description($history); ?></td>
  </tr>
  <?php endforeach; ?>
</table>
<?php endif; ?>