diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-15 12:32:29 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-15 12:32:29 +0000 |
commit | be55e9428629a17b28e1c03b60640db2b556d49d (patch) | |
tree | c291650887c93236d7275eb04c3eef2c5cfcffa2 /mod/reportedcontent/views/default | |
parent | a25b09af5f68978f2616f71d1ab821c5abafdc8a (diff) | |
download | elgg-be55e9428629a17b28e1c03b60640db2b556d49d.tar.gz elgg-be55e9428629a17b28e1c03b60640db2b556d49d.tar.bz2 |
reported content updated
git-svn-id: https://code.elgg.org/elgg/trunk@1934 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/reportedcontent/views/default')
-rw-r--r-- | mod/reportedcontent/views/default/reportedcontent/css.php | 10 | ||||
-rw-r--r-- | mod/reportedcontent/views/default/reportedcontent/listing.php | 17 |
2 files changed, 20 insertions, 7 deletions
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 "<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=\"manifest_details\">" . elgg_echo("more info") . "</a></p>";
- echo "<div class=\"manifest_file\">";
+ 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 "<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>";
echo "</div></div>";
|