aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-12 23:35:26 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-12 23:35:26 +0000
commitf27e958b4eda78099e55558e45c61f17802d0bcc (patch)
treeb90ac610e4b1d4f149a2fb16aeea832c58be3d86 /mod/reportedcontent
parenta23b178eff2982b620e4de21eb609c89071b3ff7 (diff)
downloadelgg-f27e958b4eda78099e55558e45c61f17802d0bcc.tar.gz
elgg-f27e958b4eda78099e55558e45c61f17802d0bcc.tar.bz2
fixing some display issues with reported content - code use a little cleanup
git-svn-id: http://code.elgg.org/elgg/trunk@9195 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/reportedcontent')
-rw-r--r--mod/reportedcontent/languages/en.php4
-rw-r--r--mod/reportedcontent/views/default/object/reported_content.php46
-rw-r--r--mod/reportedcontent/views/default/reportedcontent/admin_css.php16
3 files changed, 41 insertions, 25 deletions
diff --git a/mod/reportedcontent/languages/en.php b/mod/reportedcontent/languages/en.php
index 407717082..c047644e3 100644
--- a/mod/reportedcontent/languages/en.php
+++ b/mod/reportedcontent/languages/en.php
@@ -23,8 +23,8 @@ $english = array(
'reportedcontent:archived' => 'The report has been archived',
'reportedcontent:visit' => 'Visit reported item',
'reportedcontent:by' => 'Report by',
- 'reportedcontent:objecttitle' => 'Object title',
- 'reportedcontent:objecturl' => 'Object url',
+ 'reportedcontent:objecttitle' => 'Page title',
+ 'reportedcontent:objecturl' => 'Page url',
'reportedcontent:reason' => 'Reason for report',
'reportedcontent:description' => 'Why are you reporting this?',
'reportedcontent:address' => 'Location of the item',
diff --git a/mod/reportedcontent/views/default/object/reported_content.php b/mod/reportedcontent/views/default/object/reported_content.php
index 044a40012..b8c443450 100644
--- a/mod/reportedcontent/views/default/object/reported_content.php
+++ b/mod/reportedcontent/views/default/object/reported_content.php
@@ -21,7 +21,8 @@ if ($report->state == 'archived') {
?>
<div class="reported-content <?php echo $reportedcontent_background; ?>">
- <div class="clearfix controls">
+ <div class="clearfix">
+ <div class="clearfix controls">
<?php
if ($report->state != 'archived') {
$params = array(
@@ -40,28 +41,29 @@ if ($report->state == 'archived') {
);
echo elgg_view('output/url', $params);
?>
+ </div>
+ <p>
+ <b><?php echo elgg_echo('reportedcontent:by'); ?>:</b>
+ <?php echo elgg_view('output/url', array(
+ 'href' => $reporter->getURL(),
+ 'text' => $reporter->name
+ ));
+ ?>,
+ <?php echo elgg_view_friendly_time($report->time_created); ?>
+ </p>
+ <p>
+ <b><?php echo elgg_echo('reportedcontent:objecttitle'); ?>:</b>
+ <?php echo $report->title; ?>
+ <br />
+ <?php echo elgg_view('output/url', array(
+ 'href' => "#report-$report->guid",
+ 'text' => elgg_echo('reportedcontent:moreinfo'),
+ 'class' => "elgg-toggler",
+ ));
+ ?>
+ </p>
</div>
- <p>
- <b><?php echo elgg_echo('reportedcontent:by'); ?>:</b>
- <?php echo elgg_view('output/url', array(
- 'href' => $reporter->getURL(),
- 'text' => $reporter->name
- ));
- ?>,
- <?php echo elgg_view_friendly_time($report->time_created); ?>
- </p>
- <p>
- <b><?php echo elgg_echo('reportedcontent:objecttitle'); ?>:</b>
- <?php echo $report->title; ?>
- <br />
- <?php echo elgg_view('output/url', array(
- 'href' => "#report-$report->guid",
- 'text' => elgg_echo('reportedcontent:moreinfo'),
- 'class' => "elgg-toggler",
- ));
- ?>
- </p>
- <div class="hidden" id="report-<?php echo $report->getGUID();?>">
+ <div class="report-details hidden" id="report-<?php echo $report->getGUID();?>">
<p>
<b><?php echo elgg_echo('reportedcontent:objecturl'); ?>:</b>
<?php echo elgg_view('output/url', array(
diff --git a/mod/reportedcontent/views/default/reportedcontent/admin_css.php b/mod/reportedcontent/views/default/reportedcontent/admin_css.php
index b1e96f56c..2eba964a1 100644
--- a/mod/reportedcontent/views/default/reportedcontent/admin_css.php
+++ b/mod/reportedcontent/views/default/reportedcontent/admin_css.php
@@ -28,5 +28,19 @@
}
.reported-content .controls {
float: right;
- margin: 14px 5px 0 0;
+ margin: 0 0 0 10px;
+}
+.report-details {
+ background-color: white;
+ padding: 5px;
+ margin-bottom: 5px;
+ max-width: 500px;
+
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
+}
+.elgg-widget-content .reported-content .elgg-button {
+ display: block;
+ margin: 5px;
}