From be55e9428629a17b28e1c03b60640db2b556d49d Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 15 Aug 2008 12:32:29 +0000 Subject: reported content updated git-svn-id: https://code.elgg.org/elgg/trunk@1934 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/reportedcontent/css.php | 10 ++++++++++ .../views/default/reportedcontent/listing.php | 17 ++++++++++------- 2 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 mod/reportedcontent/views/default/reportedcontent/css.php (limited to 'mod/reportedcontent/views') diff --git a/mod/reportedcontent/views/default/reportedcontent/css.php b/mod/reportedcontent/views/default/reportedcontent/css.php new file mode 100644 index 000000000..c3cdbe098 --- /dev/null +++ b/mod/reportedcontent/views/default/reportedcontent/css.php @@ -0,0 +1,10 @@ +.reported_content { + background:#efefef; + border:1px solid #ccc; + padding:5px; +} + +span.reported_detail { + width:200px; + border-left:1px solid #ccc; +} \ No newline at end of file diff --git a/mod/reportedcontent/views/default/reportedcontent/listing.php b/mod/reportedcontent/views/default/reportedcontent/listing.php index 8a0342ed2..b56a12615 100644 --- a/mod/reportedcontent/views/default/reportedcontent/listing.php +++ b/mod/reportedcontent/views/default/reportedcontent/listing.php @@ -7,18 +7,21 @@ //get the user making the report $user = get_user($report->owner_guid)->name; $user_url = get_user($report->owner_guid)->getURL(); + //find out if the report is current or archive - if($report->state == 'archive') - $reportedcontent_background = "archive"; - else - $reportedcontent_background = "active"; + if($report->state == 'archived'){ + $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:archive') . "] - [" . elgg_echo('reportedcontent:delete') . "]

"; + echo "

" . elgg_echo("more info") . "

"; + echo "
"; echo "

" . elgg_echo('reportedcontent:objecturl') . ": address}\">" . elgg_echo('reportedcontent:visit') . "

"; echo "

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

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