From d6b6baa4bcc1f2f6077b785ed90b4eb24e414451 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Fri, 14 Oct 2011 22:06:22 +0000 Subject: moderators can see all the actions carried out by users - part 2 --- .../Application/Controllers/SpecialController.php | 11 --------- h-source/Application/Include/languages.php | 1 + h-source/Application/Include/myFunctions.php | 28 ++++++++++++++++++++++ h-source/Application/Views/My/panel.php | 1 + h-source/Application/Views/Special/modactions.php | 8 +++++-- h-source/Public/Css/main.css | 19 +++++++++------ 6 files changed, 48 insertions(+), 20 deletions(-) (limited to 'h-source') diff --git a/h-source/Application/Controllers/SpecialController.php b/h-source/Application/Controllers/SpecialController.php index eb80582..9298ad3 100644 --- a/h-source/Application/Controllers/SpecialController.php +++ b/h-source/Application/Controllers/SpecialController.php @@ -40,17 +40,6 @@ class SpecialController extends BaseController { switch ($action) { -// case 'modifications': -// $data['title'] = 'last modifications - '.Website::$generalName; -// -// $whereClauseArray = array( -// 'gr' => 'registered', -// 'type' => 'hardware', -// ); -// -// $viewFile = 'modifications'; -// -// break; case 'modactions': $data['title'] = 'last moderations - '.Website::$generalName; $data['viewTitle'] = 'List of actions carried out by moderators'; diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php index ac75241..a4c4254 100644 --- a/h-source/Application/Include/languages.php +++ b/h-source/Application/Include/languages.php @@ -312,6 +312,7 @@ class Lang /*0264*/"This issue is closed" => "Questa questione è stata chiusa", /*0265*/"This issue is opened" => "Questa questione è aperta", /*0266*/"does it adopt any techniques to track users?" => "adotta qualche tecnica per tracciare gli utenti?", + /*0267*/"Actions carried out by users" => "Azioni compiute dagli utenti" ), 'es' => array ( diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php index 7ac5705..44b926b 100644 --- a/h-source/Application/Include/myFunctions.php +++ b/h-source/Application/Include/myFunctions.php @@ -561,6 +561,34 @@ function goToModeratedItem( $row = array() ) $hardInfo = getHardwareInfoFromId($row['id']); $url = $hardInfo['controller'].'/view/'.Lang::$current.'/'.$row['id'].'/'.encodeUrl($hardInfo['model']); break; + case 'message_ins': + $url = 'issues/view/'.Lang::$current.'/'.getIssueNumberFromMessageId($row['id']).'#message-'.$row['id']; + break; + case 'wiki_talk_ins': + $url = 'wiki/talk/'.Lang::$current.'/'.getWikiPageInfoFromTalkId($row['id']).'#wiki-talk-'.$row['id']; + break; + case 'issue_ins': + $url = 'issues/view/'.Lang::$current.'/'.$row['id']; + break; + case 'talk_ins': + $hardInfo = getHardwareInfoFromTalkId($row['id']); + if (isset($hardInfo)) + { + $controller = Hardware::$typeToController[$hardInfo['type']]; + $url = $controller.'/talk/'.Lang::$current.'/'.$hardInfo['id_hard'].'#talk-'.$row['id']; + } + else + { + $url = 'last/modactions/'.Lang::$current; + } + break; + case 'hardware': + $hardInfo = getHardwareInfoFromId($row['id']); + $url = $hardInfo['controller'].'/view/'.Lang::$current.'/'.$row['id'].'/'.encodeUrl($hardInfo['model']); + break; + case 'wiki': + $url = 'wiki/page/'.Lang::$current.'/'.encodeUrl(getWikiNameFromId($row['id'])); + break; } return 'http://'.DOMAIN_NAME.'/'.$url; } diff --git a/h-source/Application/Views/My/panel.php b/h-source/Application/Views/My/panel.php index 0116134..67fbe1d 100644 --- a/h-source/Application/Views/My/panel.php +++ b/h-source/Application/Views/My/panel.php @@ -48,6 +48,7 @@
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 @@ TYPE OBJECT ID DATE + action,'usersactions') !== 0) { ?> NOTE + @@ -46,12 +48,12 @@ - getUser($row['history']['created_by']);?> + getLinkToUserFromId($row['history']['created_by']);?> - + @@ -60,9 +62,11 @@ + action,'usersactions') !== 0) { ?> + diff --git a/h-source/Public/Css/main.css b/h-source/Public/Css/main.css index 97c7da7..cc1dd3e 100644 --- a/h-source/Public/Css/main.css +++ b/h-source/Public/Css/main.css @@ -1591,23 +1591,28 @@ ins .listTable { margin:20px 5px; + width:100%; } /*MODERATORS' PAGE*/ -tr.listRow td{ - font: normal 14px/1 sans-serif,arial; - padding:10px 5px; +tr.listRow td +{ + font: normal 13px/1 sans-serif,arial; + padding:5px 5px; +} +tr.listRow td.type_column +{ + width:15%; } - tr.listHead { - font: bold 14px/1 sans-serif,arial; + font: bold 13px/1 sans-serif,arial; } tr.listHead td { padding:8px 4px; background:#ADD8E6; - border-top:1px solid #4169E1; - border-bottom:1px solid #4169E1; +/* border-top:1px solid #4169E1; */ +/* border-bottom:1px solid #4169E1; */ } .recordsBox { -- cgit v1.2.3