diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-02-25 00:25:29 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-02-25 00:25:29 +0000 |
commit | e9973f35a33f0ad72ff2fbd74250283d0e23e375 (patch) | |
tree | 8f3f4ef63ef92a1d8acf2f8499658623915f6486 /h-source/Application/Views | |
parent | d7cc67e72a3f53629104d811986acd688f104cda (diff) |
added list of actions carried out by administrators
Diffstat (limited to 'h-source/Application/Views')
-rw-r--r-- | h-source/Application/Views/Last/modactions.php (renamed from h-source/Application/Views/Moderators/index.php) | 8 | ||||
-rw-r--r-- | h-source/Application/Views/Meet/meet.php | 2 | ||||
-rw-r--r-- | h-source/Application/Views/My/panel.php | 14 |
3 files changed, 12 insertions, 12 deletions
diff --git a/h-source/Application/Views/Moderators/index.php b/h-source/Application/Views/Last/modactions.php index dabbf56..fe50223 100644 --- a/h-source/Application/Views/Moderators/index.php +++ b/h-source/Application/Views/Last/modactions.php @@ -27,13 +27,13 @@ </div> <div class="contrib_explain_box"> - List of actions carried out by moderators + <?php echo $viewTitle; ?> </div> <table class="listTable"> <tr class="listHead"> <td class="simpleText">ACTION ID</td> - <td class="simpleText">MODERATOR</td> + <td class="simpleText"><?php echo $user_status;?></td> <td class="simpleText">ACTION</td> <td class="simpleText">TYPE</td> <td class="simpleText">OBJECT ID</td> @@ -49,10 +49,10 @@ <span class='textItem'><?php echo $u->getUser($row['history']['created_by']);?></span> </td> <td class="simpleText"> - <span class='textItem'><?php echo $row['history']['action'];?></span> + <span class='textItem'><?php echo HistoryController::$actionTable[$row['history']['action']];?></span> </td> <td class="simpleText"> - <span class='textItem'><?php echo $row['history']['type'];?></span> + <span class='textItem'><?php echo HistoryController::$typeTable[$row['history']['type']];?></span> </td> <td class="simpleText"> <span class='textItem'><?php echo $row['history']['id'];?></span> diff --git a/h-source/Application/Views/Meet/meet.php b/h-source/Application/Views/Meet/meet.php index e52ef2a..f0e31b3 100644 --- a/h-source/Application/Views/Meet/meet.php +++ b/h-source/Application/Views/Meet/meet.php @@ -26,7 +26,7 @@ <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » <?php echo gtext("meet");?> <b><?php echo $meet_username;?></b> </div> - <?php if ($ismoderator) { ?> + <?php if ($isadmin) { ?> <div class="moderator_box"> <?php if ($isBlocked) { ?> This user has been blocked diff --git a/h-source/Application/Views/My/panel.php b/h-source/Application/Views/My/panel.php index 30e4d24..babf409 100644 --- a/h-source/Application/Views/My/panel.php +++ b/h-source/Application/Views/My/panel.php @@ -26,19 +26,19 @@ <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » <?php echo gtext("control panel");?> </div> - <?php if ($isBlocked) { ?> + <?php if ($userBlocked) { ?> <div class="moderator_box"> Your account has been blocked by a moderator of the website. You can neither insert/modify devices nor submit new issues or messages until some other moderator un-block your account. </div> <?php } ?> - <?php if ($ismoderator) { ?> - <div class="moderator_panel_link"> - <?php echo gtext("watch all the");?> <a href="<?php echo Url::getRoot('moderators/actions/'.$lang);?>"><?php echo gtext("actions carried out by moderators");?></a> - </div> - <?php } ?> - <ul class='panelApplicationList'> + <?php if ($isadmin) { ?> + <li><a href="<?php echo Url::getRoot('last/adminactions/'.$lang);?>"><?php echo gtext("Watch all the actions carried out by administrators");?></a></li> + <?php } ?> + <?php if ($ismoderator) { ?> + <li><a href="<?php echo Url::getRoot('last/modactions/'.$lang);?>"><?php echo gtext("Watch all the actions carried out by moderators");?></a></li> + <?php } ?> <li><a href="<?php echo Url::getRoot('meet/user/'.$lang.'/'.$username);?>"><?php echo gtext("Watch your public profile");?></a></li> <li><a href="<?php echo Url::getRoot('my/profile/'.$lang.'/'.$token);?>"><?php echo gtext("Edit your profile");?></a></li> <li><a href="<?php echo Url::getRoot('my/email/'.$lang.'/'.$token);?>"><?php echo gtext("Change your e-mail address");?></a></li> |