aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/views
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-16 12:24:54 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-16 12:24:54 +0000
commit1e0a90d6488275b50dce0696c7761b0979a8bc69 (patch)
treeee039f4e1fa2a592af9aa84b1022d90af31bfe05 /mod/reportedcontent/views
parent97d852127c9bc6949ba10ca10caca6c057298193 (diff)
downloadelgg-1e0a90d6488275b50dce0696c7761b0979a8bc69.tar.gz
elgg-1e0a90d6488275b50dce0696c7761b0979a8bc69.tar.bz2
reported content updates
git-svn-id: https://code.elgg.org/elgg/trunk@1967 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/reportedcontent/views')
-rw-r--r--mod/reportedcontent/views/default/reportedcontent/css.php67
-rw-r--r--mod/reportedcontent/views/default/reportedcontent/listing.php8
2 files changed, 63 insertions, 12 deletions
diff --git a/mod/reportedcontent/views/default/reportedcontent/css.php b/mod/reportedcontent/views/default/reportedcontent/css.php
index c3cdbe098..c4cdd68cf 100644
--- a/mod/reportedcontent/views/default/reportedcontent/css.php
+++ b/mod/reportedcontent/views/default/reportedcontent/css.php
@@ -1,10 +1,61 @@
-.reported_content {
- background:#efefef;
- border:1px solid #ccc;
- padding:5px;
+/* ***************************************
+ ADMIN AREA - REPORTED CONTENT
+*************************************** */
+.reportedcontent_content {
+ padding:10px;
+ margin:0 0 10px 0;
+}
+.reportedcontent_content p.reportedcontent_detail,
+.reportedcontent_content p {
+ margin:0;
+}
+.active_report {
+ border:1px solid #D3322A;
+ background:#F7DAD8;
+}
+.archived_report {
+ border:1px solid #666666;
+ background:#dedede;
+}
+
+a.archive_report_button {
+ float:right;
+ font: 12px/100% Arial, Helvetica, sans-serif;
+ font-weight: bold;
+ color: #ffffff;
+ background:#4690d6;
+ border: 1px solid #4690d6;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ width: auto;
+ padding: 4px;
+ margin:15px 0 0 20px;
+ cursor: pointer;
+}
+a.archive_report_button:hover {
+ background: #0054a7;
+ text-decoration: none;
}
-span.reported_detail {
- width:200px;
- border-left:1px solid #ccc;
-} \ No newline at end of file
+a.delete_report_button {
+ float:right;
+ font: 12px/100% Arial, Helvetica, sans-serif;
+ font-weight: bold;
+ color: #ffffff;
+ background:#999999;
+ border: 1px solid #999999;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ width: auto;
+ padding: 4px;
+ margin:15px 0 0 20px;
+ cursor: pointer;
+}
+a.delete_report_button:hover {
+ background: #333333;
+ text-decoration:none;
+}
+
+a.manifest_details {
+ cursor:pointer;
+}
diff --git a/mod/reportedcontent/views/default/reportedcontent/listing.php b/mod/reportedcontent/views/default/reportedcontent/listing.php
index b56a12615..d8388e479 100644
--- a/mod/reportedcontent/views/default/reportedcontent/listing.php
+++ b/mod/reportedcontent/views/default/reportedcontent/listing.php
@@ -10,17 +10,17 @@
//find out if the report is current or archive
if($report->state == 'archived'){
- $reportedcontent_background = "archive";
+ $reportedcontent_background = "archived_report";
}else{
- $reportedcontent_background = "active";
+ $reportedcontent_background = "active_report";
}
echo "<div class=\"reportedcontent_content {$reportedcontent_background}\">";
+ echo "<p class=\"reportedcontent_detail\"><a class=\"archive_report_button\" href=\"" . $vars['url'] . "action/reportedcontent/archive?item=" . $report->guid . "\">" . elgg_echo('reportedcontent:archive') . "</a> <a class=\"delete_report_button\" href=\"" . $vars['url'] . "action/reportedcontent/delete?item=" . $report->guid . "\" onclick=\"return confirm('" . elgg_echo('reportedcontent:areyousure') . "')\">" . elgg_echo('reportedcontent:delete') . "</a></p>";
echo "<p class=\"reportedcontent_detail\"><b>" . elgg_echo('reportedcontent:by') . ": </b><a href=\"{$user_url}\">" . $user . "</a>, " . friendly_time($report->time_created) . "</p>";
echo "<p class=\"reportedcontent_detail\"><b>" . elgg_echo('reportedcontent:objecttitle') . ": </b>" . $report->title . "</p>";
- echo "<p class=\"reportedcontent_detail\">[<a href=\"" . $vars['url'] . "action/reportedcontent/archive?item=" . $report->guid . "\">" . elgg_echo('reportedcontent:archive') . "</a>] - [<a href=\"" . $vars['url'] . "action/reportedcontent/delete?item=" . $report->guid . "\" onclick=\"return confirm('" . elgg_echo('reportedcontent:areyousure') . "')\">" . elgg_echo('reportedcontent:delete') . "</a>]</p>";
- echo "<p><a class=\"manifest_details\">" . elgg_echo("more info") . "</a></p>";
+ echo "<p><a class=\"manifest_details\">" . elgg_echo("more info") . "</a></p>";
echo "<div class=\"manifest_file\">";
echo "<p class=\"reportedcontent_detail\"><b>" . elgg_echo('reportedcontent:objecturl') . ": </b><a href=\"{$report->address}\">" . elgg_echo('reportedcontent:visit') . "</a></p>";
echo "<p class=\"reportedcontent_detail\"><b>" . elgg_echo('reportedcontent:reason') . ": </b>" .$report->description . "</p>";