From 7d5c4370ef18072c936cde31b095f207056bc06b Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Thu, 21 Oct 2010 17:11:25 +0000 Subject: no public notice is left where a message is deleted by a moderator --- .../Application/Controllers/GenericController.php | 2 +- .../Application/Controllers/IssuesController.php | 2 +- h-source/Application/Models/IssuesModel.php | 1 + h-source/Application/Views/Issues/view.php | 43 +++++++++++----------- h-source/Application/Views/talk.php | 12 +++--- h-source/Public/Css/website.css | 8 ++-- 6 files changed, 35 insertions(+), 33 deletions(-) (limited to 'h-source') diff --git a/h-source/Application/Controllers/GenericController.php b/h-source/Application/Controllers/GenericController.php index a08956e..1b9e64a 100644 --- a/h-source/Application/Controllers/GenericController.php +++ b/h-source/Application/Controllers/GenericController.php @@ -361,7 +361,7 @@ class GenericController extends BaseController if (count($data['table']) > 0) { - $data['talk_number'] = $this->m['TalkModel']->select('count(*) as numb,id_hard')->where(array('id_hard'=>$clean['id_hard']))->rowNumber(); + $data['talk_number'] = $this->m['TalkModel']->select('count(*) as numb,id_hard')->where(array('id_hard'=>$clean['id_hard'],'deleted'=>'no'))->rowNumber(); $data['ne_name'] = $data['table'][0]['hardware']['model']; $data['name'] = encodeUrl($data['ne_name']); diff --git a/h-source/Application/Controllers/IssuesController.php b/h-source/Application/Controllers/IssuesController.php index 02f6499..80a9486 100644 --- a/h-source/Application/Controllers/IssuesController.php +++ b/h-source/Application/Controllers/IssuesController.php @@ -90,7 +90,7 @@ class IssuesController extends BaseController //load the Pages helper $this->helper('Pages',$this->controller.'/viewall/'.$this->lang,'page'); //get the number of records - $this->m['IssuesModel']->from('issues left join messages')->using('id_issue')->aWhere(array('deleted'=>'no'))->groupBy('issues.id_issue'); + $this->m['IssuesModel']->from('issues left join messages')->using('id_issue')->aWhere(array('deleted'=>'no','-deleted'=>'no'))->groupBy('issues.id_issue'); $recordNumber = $this->m['IssuesModel']->rowNumber(); $page = $this->viewArgs['page']; diff --git a/h-source/Application/Models/IssuesModel.php b/h-source/Application/Models/IssuesModel.php index 8ca8a52..115c0f3 100644 --- a/h-source/Application/Models/IssuesModel.php +++ b/h-source/Application/Models/IssuesModel.php @@ -30,6 +30,7 @@ class IssuesModel extends Model_Tree { 'priority' => 'issues', 'status' => 'issues', 'topic' => 'issues', + '-deleted' => 'messages', ); $this->_popupItemNames = array( diff --git a/h-source/Application/Views/Issues/view.php b/h-source/Application/Views/Issues/view.php index 20d0403..ef5e39c 100644 --- a/h-source/Application/Views/Issues/view.php +++ b/h-source/Application/Views/Issues/view.php @@ -129,33 +129,32 @@ -
- - - ">make visible + +
+ - -
-
message
+ ">make visible - ">view details - -
-
-
- submitted by getUser($row['messages']['created_by']));?>, -
-
- + +
+
message
+ + ">view details + +
+
+
+ submitted by getUser($row['messages']['created_by']));?>, +
+
+ +
+
-
-
- - -
- +
+ diff --git a/h-source/Application/Views/talk.php b/h-source/Application/Views/talk.php index 6ae3bca..d0872f4 100644 --- a/h-source/Application/Views/talk.php +++ b/h-source/Application/Views/talk.php @@ -66,10 +66,11 @@
- -
+ + +
this message has been deleted - + ">make visible @@ -91,9 +92,10 @@
- +
- + + diff --git a/h-source/Public/Css/website.css b/h-source/Public/Css/website.css index aacedba..75509e3 100755 --- a/h-source/Public/Css/website.css +++ b/h-source/Public/Css/website.css @@ -17,7 +17,7 @@ img border:0px; } -.message_view_description li, .issues_view_description li +.message_view_description li, .issues_view_description li, .talk_message_item_content li, .message_view_description_hidden li { margin-left:1em; } @@ -786,7 +786,7 @@ ins padding:3px 0px; margin-top:10px; /* background:#E6E6FA; */ - width:400px; + width:450px; } .formEntry { @@ -794,7 +794,7 @@ ins } .formEntry input,.formEntry textarea { - width:400px; + width:450px; padding:3px; border: 1px solid #CECECE; } @@ -805,7 +805,7 @@ ins .formClass { margin:10px; margin-right:-40px; - width:400px; + width:450px; } .inputEntry { -- cgit v1.2.3