aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/views/default/reportedcontent/listing.php
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-14 16:02:10 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-14 16:02:10 +0000
commitcb56e4d98e221a2553aa00fbca2f3e0792cee94e (patch)
tree0e9298d1486299ca2fb56192166e6e9fc1b891f4 /mod/reportedcontent/views/default/reportedcontent/listing.php
parentdfe63b48a4473f2f3d72e10a446fc3c0f3312a34 (diff)
downloadelgg-cb56e4d98e221a2553aa00fbca2f3e0792cee94e.tar.gz
elgg-cb56e4d98e221a2553aa00fbca2f3e0792cee94e.tar.bz2
reportedcontent list tweaks
git-svn-id: https://code.elgg.org/elgg/trunk@1924 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/reportedcontent/views/default/reportedcontent/listing.php')
-rw-r--r--mod/reportedcontent/views/default/reportedcontent/listing.php23
1 files changed, 15 insertions, 8 deletions
diff --git a/mod/reportedcontent/views/default/reportedcontent/listing.php b/mod/reportedcontent/views/default/reportedcontent/listing.php
index e39d0ddbb..18e1f2611 100644
--- a/mod/reportedcontent/views/default/reportedcontent/listing.php
+++ b/mod/reportedcontent/views/default/reportedcontent/listing.php
@@ -7,14 +7,21 @@
//get the user making the report
$user = get_user($report->owner_guid)->name;
$user_url = get_user($report->owner_guid)->getURL();
-
- echo "<div class=\"reported_content\">";
- echo "<p class=\"reported_detail\"><b>" . elgg_echo('reportedcontent:by') . ": </b><a href=\"{$user_url}\">" . $user . "</a>, " . friendly_time($report->time_created) . "</p>";
- echo "<p class=\"reported_detail\"><b>" . elgg_echo('reportedcontent:objecttitle') . ": </b>" . $report->title . "</p>";
- echo "<p class=\"reported_detail\"><b>" . elgg_echo('reportedcontent:objecturl') . ": </b><a href=\"{$report->address}\">" . $report->address . "</a></p>";
- echo "<p class=\"reported_detail\"><b>" . elgg_echo('reportedcontent:reason') . ": </b>" .$report->description . "</p>";
- echo "<p class=\"reported_detail\">[<a href=\"\">" . elgg_echo('reportedcontent:archive') . "</a>] - [<a href=\"\">" . elgg_echo('reportedcontent:delete') . "</a>]</p>";
- echo "</div>";
+ //find out if the report is current or archive
+ if($report->state == 'archive')
+ $reportedcontent_background = "archive";
+ else
+ $reportedcontent_background = "active";
+
+ echo "<div class=\"reportedcontent_content {$reportedcontent_background}\">";
+ 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=\"\">" . elgg_echo('reportedcontent:archive') . "</a>] - [<a href=\"\">" . elgg_echo('reportedcontent:delete') . "</a>]</p>";
+ echo "<p><a class=\"reportedcontent_details\">" . elgg_echo("more info") . "</a></p>";
+ echo "<div class=\"reportedcontent_details\" style=\"display:none;\">";
+ echo "<p class=\"reportedcontent_detail\"><b>" . elgg_echo('reportedcontent:objecturl') . ": </b><a href=\"{$report->address}\">" . $report->address . "</a></p>";
+ echo "<p class=\"reportedcontent_detail\"><b>" . elgg_echo('reportedcontent:reason') . ": </b>" .$report->description . "</p>";
+ echo "</div></div>";
}