aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-16 12:34:41 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-16 12:34:41 +0000
commit32dda3fd2c134b7125e3dbb8764d2f73fc2549c9 (patch)
treeb5ae9c6a6e52d3cc4fad9196674b02a9cf9034fb /mod
parent554e8f7fedab096467b2d08e8a6f67910267c69d (diff)
downloadelgg-32dda3fd2c134b7125e3dbb8764d2f73fc2549c9.tar.gz
elgg-32dda3fd2c134b7125e3dbb8764d2f73fc2549c9.tar.bz2
reported content tweak
git-svn-id: https://code.elgg.org/elgg/trunk@1969 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/reportedcontent/views/default/reportedcontent/listing.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/reportedcontent/views/default/reportedcontent/listing.php b/mod/reportedcontent/views/default/reportedcontent/listing.php
index d8388e479..ac0ad1587 100644
--- a/mod/reportedcontent/views/default/reportedcontent/listing.php
+++ b/mod/reportedcontent/views/default/reportedcontent/listing.php
@@ -17,7 +17,10 @@
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\">";
+ if($report->state != 'archived')
+ echo "<a class=\"archive_report_button\" href=\"" . $vars['url'] . "action/reportedcontent/archive?item=" . $report->guid . "\">" . elgg_echo('reportedcontent:archive') . "</a>";
+ echo "<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><a class=\"manifest_details\">" . elgg_echo("more info") . "</a></p>";
@@ -25,6 +28,7 @@
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>";
+
}