Proper display and error message when LatestInbox contains no items.
Patch by afuna.
diffs (33 lines):
diff -r 1ff00b9015f7 -r 06d811e6af71 bin/upgrading/en.dat
--- a/bin/upgrading/en.dat Sun Jul 26 19:38:27 2009 +0000
+++ b/bin/upgrading/en.dat Sun Jul 26 20:14:33 2009 +0000
@@ -4311,6 +4311,8 @@ widget.journaltitles.title=1. Edit Title
widget.journaltitles.title_nonum=Edit Titles
+widget.latestinbox.empty=No items in your Inbox.
+
widget.latestinbox.links.compose=Create New Message
widget.latestinbox.links.inbox=View More Messages
diff -r 1ff00b9015f7 -r 06d811e6af71 cgi-bin/DW/Widget/LatestInbox.pm
--- a/cgi-bin/DW/Widget/LatestInbox.pm Sun Jul 26 19:38:27 2009 +0000
+++ b/cgi-bin/DW/Widget/LatestInbox.pm Sun Jul 26 20:14:33 2009 +0000
@@ -52,7 +52,6 @@ sub render_body {
my @inbox_items = reverse $inbox->all_items;
if ( @inbox_items ) {
- # TODO: summary mode?
foreach my $item ( splice( @inbox_items, 0, $limit ) ) {
$ret .= "<div class='item'>";
$ret .= "<div class='title'>" . $item->title . "</div>";
@@ -63,8 +62,7 @@ sub render_body {
$ret .= "</div>";
}
} else {
- # TODO: test this
- $ret .= $class->ml( 'widget.latestinbox.empty' );
+ $ret .= "<div class='item'>" . $class->ml(
'widget.latestinbox.empty' ) . "</div>";
}
}
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog