* finish task #3608.

This commit is contained in:
wangyidong
2018-01-24 16:11:11 +08:00
parent a2c4e7f594
commit f6be2bb180
3 changed files with 30 additions and 31 deletions
+7 -4
View File
@@ -1,12 +1,15 @@
<table class='table table-condensed table-hover table-striped table-borderless table-fixed'>
<ul class="timeline timeline-tag-left">
<?php
$i = 0;
foreach($actions as $action)
{
$user = isset($users[$action->actor]) ? $users[$action->actor] : $action->actor;
if($action->action == 'login' or $action->action == 'logout' or empty($action->objectLink)) $action->objectName = $action->objectLabel = '';
echo "<tr><td class='nobr' width='100%'>";
$class = $i % 3 == 0 ? "class='active'" : '';
echo "<li $class><div>";
printf($lang->block->dynamicInfo, $action->date, $user, $action->actionLabel, $action->objectLabel, $action->objectLink, $action->objectName);
echo "</td></tr>";
echo "</div></li>";
$i++;
}
?>
</table>
</ul>