Committer: wisest-owl
LJSUP-14695: Add a placeholder to 'purchased' category in livejournal.com/customize when the category is emptyU trunk/bin/upgrading/en.dat U trunk/cgi-bin/LJ/Widget/ThemeChooser.pm
Modified: trunk/bin/upgrading/en.dat =================================================================== --- trunk/bin/upgrading/en.dat 2013-01-15 09:02:03 UTC (rev 23543) +++ trunk/bin/upgrading/en.dat 2013-01-15 11:17:19 UTC (rev 23544) @@ -10251,6 +10251,8 @@ widget.themechooser.layout_filter.label|staleness=1 widget.themechooser.layout_filter.label=Only show themes in: +widget.themechooser.no_paurchased_themes=You have not purchased themes + widget.themechooser.page|staleness=1 widget.themechooser.page=Page: Modified: trunk/cgi-bin/LJ/Widget/ThemeChooser.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/ThemeChooser.pm 2013-01-15 09:02:03 UTC (rev 23543) +++ trunk/cgi-bin/LJ/Widget/ThemeChooser.pm 2013-01-15 11:17:19 UTC (rev 23544) @@ -130,6 +130,10 @@ $ret .= "<div class='themes-area'>"; my @purchased = LJ::S2Theme->load_purchased ($u); + @themes_this_page = grep { $_ } @themes_this_page; + if (!@themes_this_page && $cat eq 'purchased') { + $ret .= LJ::Lang::ml('widget.themechooser.no_paurchased_themes'); + } foreach my $theme (@themes_this_page) { next unless defined $theme;