aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/Page.pm10
-rw-r--r--web/css/core.css7
2 files changed, 12 insertions, 5 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm
index 63d0f977a..84e3bf211 100644
--- a/perllib/Page.pm
+++ b/perllib/Page.pm
@@ -6,7 +6,7 @@
# Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: Page.pm,v 1.223 2009-12-15 14:47:40 louise Exp $
+# $Id: Page.pm,v 1.224 2009-12-15 15:12:55 louise Exp $
#
package Page;
@@ -852,7 +852,7 @@ sub display_problem_updates($$) {
$out .= '<div id="updates">';
$out .= '<h2 class="problem-update-list-header">' . _('Updates') . '</h2>';
foreach my $row (@$updates) {
- $out .= "<div><span class=\"problem-update\"><p><a name=\"update_$row->{id}\"></a><em>";
+ $out .= "<div><div class=\"problem-update\"><p><a name=\"update_$row->{id}\"></a><em>";
if ($row->{name}) {
$out .= sprintf(_('Posted by %s at %s'), ent($row->{name}), prettify_epoch($q, $row->{created}));
} else {
@@ -871,8 +871,8 @@ sub display_problem_updates($$) {
$out .= $q->a({rel => 'nofollow', class => 'unsuitable-problem', href => $contact_url}, _('Offensive? Unsuitable? Tell us'));
$out .= '</p>';
}
- $out .= '</span>';
- $out .= '<span class="update-text">';
+ $out .= '</div>';
+ $out .= '<div class="update-text">';
my $text = $row->{text};
$text =~ s/\r//g;
foreach (split /\n{2,}/, $text) {
@@ -883,7 +883,7 @@ sub display_problem_updates($$) {
if ($display_photos && $row->{has_photo}) {
$out .= '<p><img alt="" height=100 src="/photo?tn=1;c=' . $row->{id} . '"></p>';
}
- $out .= '</span>';
+ $out .= '</div>';
$out .= '</div>';
}
$out .= '</div>';
diff --git a/web/css/core.css b/web/css/core.css
index ac85f9010..d269c8c6e 100644
--- a/web/css/core.css
+++ b/web/css/core.css
@@ -292,6 +292,13 @@ p#copyright {
margin: 0 0 0.25em;
border-bottom: dotted 1px #5e552b;
}
+
+#updates div .problem-update,
+#updates div .update-text {
+ padding: 0;
+ margin: 0;
+ border-bottom: 0;
+}
#updates p {
margin: 0;
}