Максим Червонный (fiskus_boulder) wrote in changelog,
Максим Червонный
fiskus_boulder
changelog

[livejournal] r20035: LJSUP-9517: UL.b-editentries have shown ...

Committer: mchervonniy
LJSUP-9517: UL.b-editentries have shown only if it exists
U   trunk/htdocs/editjournal.bml
Modified: trunk/htdocs/editjournal.bml
===================================================================
--- trunk/htdocs/editjournal.bml	2011-09-14 03:40:06 UTC (rev 20034)
+++ trunk/htdocs/editjournal.bml	2011-09-14 03:57:14 UTC (rev 20035)
@@ -100,7 +100,7 @@
         }
         $ret .= "</div>";
 
-        $ret .= "<ul class='b-editentries'>";
+        $ret .= "<ul class='b-editentries'>" if @res;
         foreach my $e_raw (@res) {
             my $entry = LJ::Entry->new_from_item_hash (LJ::load_user($usejournal) || $remote, $e_raw); 
 
@@ -164,7 +164,7 @@
             my $ad = LJ::get_ads({ location => 'bml.editjournal', ljadwrapper => 1 });
             $ret .= "<td valign='top'>$ad</td>" if $ad;
         }
-        $ret .= "</ul>";
+        $ret .= "</ul>" if @res;
 
         if ($opts{'prev'} || $opts{'next'}) {
         $ret .= "<p class='i-qotd-nav'>";

Tags: bml, fiskus_boulder, livejournal
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments