From d6b6baa4bcc1f2f6077b785ed90b4eb24e414451 Mon Sep 17 00:00:00 2001
From: Antonio Gallo <tonicucoz@gmail.com>
Date: Fri, 14 Oct 2011 22:06:22 +0000
Subject: moderators can see all the actions carried out by users - part 2

---
 h-source/Application/Views/Special/modactions.php | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'h-source/Application/Views/Special')

diff --git a/h-source/Application/Views/Special/modactions.php b/h-source/Application/Views/Special/modactions.php
index 36aee20..4539aee 100644
--- a/h-source/Application/Views/Special/modactions.php
+++ b/h-source/Application/Views/Special/modactions.php
@@ -38,7 +38,9 @@
 				<td class="simpleText">TYPE</td>
 				<td class="simpleText">OBJECT ID</td>
 				<td class="simpleText text_item_date">DATE</td>
+				<?php if (strcmp($this->action,'usersactions') !== 0) { ?>
 				<td class="simpleText">NOTE</td>
+				<?php } ?>
 			</tr>
 			<?php foreach ($table as $row) { ?>
 			<tr class="listRow">
@@ -46,12 +48,12 @@
 					<span class='textItem'><a href="<?php echo goToModeratedItem($row['history']);?>"><?php echo $row['history']['id_history'];?></a></span>
 				</td>
 				<td class="simpleText">
-					<span class='textItem'><?php echo $u->getUser($row['history']['created_by']);?></span>
+					<span class='textItem'><?php echo $u->getLinkToUserFromId($row['history']['created_by']);?></span>
 				</td>
 				<td class="simpleText">
 					<span class='textItem'><?php echo HistoryController::$actionTable[$row['history']['action']];?></span>
 				</td>
-				<td class="simpleText">
+				<td class="type_column">
 					<span class='textItem'><?php echo HistoryController::$typeTable[$row['history']['type']];?></span>
 				</td>
 				<td class="simpleText">
@@ -60,9 +62,11 @@
 				<td class="simpleText text_item_date">
 					<span class='textItem'><?php echo smartDate($row['history']['creation_date']);?></span>
 				</td>
+				<?php if (strcmp($this->action,'usersactions') !== 0) { ?>
 				<td class="simpleText">
 					<span class='textItem'><?php echo $row['history']['message'];?></span>
 				</td>
+				<?php } ?>
 			</tr>
 			<?php } ?>
 		</table>
-- 
cgit v1.2.3