Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/themes/CleanFS/templates/details.tabs.history.callback.tpl
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-02-01 09:05:48 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-02-01 09:05:48 +0100
commit6854cb3f4d8219cf1829e32122eb2502a916eae9 (patch)
tree350feb504587d932e02837a1442b059759927646 /themes/CleanFS/templates/details.tabs.history.callback.tpl
initial checkin
Diffstat (limited to 'themes/CleanFS/templates/details.tabs.history.callback.tpl')
-rw-r--r--themes/CleanFS/templates/details.tabs.history.callback.tpl32
1 files changed, 32 insertions, 0 deletions
diff --git a/themes/CleanFS/templates/details.tabs.history.callback.tpl b/themes/CleanFS/templates/details.tabs.history.callback.tpl
new file mode 100644
index 0000000..07eefd5
--- /dev/null
+++ b/themes/CleanFS/templates/details.tabs.history.callback.tpl
@@ -0,0 +1,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; ?>