From cb56e4d98e221a2553aa00fbca2f3e0792cee94e Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 14 Aug 2008 16:02:10 +0000 Subject: reportedcontent list tweaks git-svn-id: https://code.elgg.org/elgg/trunk@1924 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/reportedcontent/listing.php | 23 ++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'mod') 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 "
"; - echo "

" . elgg_echo('reportedcontent:by') . ": " . $user . ", " . friendly_time($report->time_created) . "

"; - echo "

" . elgg_echo('reportedcontent:objecttitle') . ": " . $report->title . "

"; - echo "

" . elgg_echo('reportedcontent:objecturl') . ": address}\">" . $report->address . "

"; - echo "

" . elgg_echo('reportedcontent:reason') . ": " .$report->description . "

"; - echo "

[" . elgg_echo('reportedcontent:archive') . "] - [" . elgg_echo('reportedcontent:delete') . "]

"; - echo "
"; + //find out if the report is current or archive + if($report->state == 'archive') + $reportedcontent_background = "archive"; + else + $reportedcontent_background = "active"; + + echo "
"; + echo "

" . elgg_echo('reportedcontent:by') . ": " . $user . ", " . friendly_time($report->time_created) . "

"; + echo "

" . elgg_echo('reportedcontent:objecttitle') . ": " . $report->title . "

"; + echo "

[" . elgg_echo('reportedcontent:archive') . "] - [" . elgg_echo('reportedcontent:delete') . "]

"; + echo "

" . elgg_echo("more info") . "

"; + echo "
"; + echo "

" . elgg_echo('reportedcontent:objecturl') . ": address}\">" . $report->address . "

"; + echo "

" . elgg_echo('reportedcontent:reason') . ": " .$report->description . "

"; + echo "
"; } -- cgit v1.2.3