alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r18067: OPSC-251: separator extra

Committer: afedorov
OPSC-251: separator extra

U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2011-01-20 10:31:45 UTC (rev 18066)
+++ trunk/htdocs/userinfo.bml	2011-01-20 10:37:20 UTC (rev 18067)
@@ -1572,18 +1572,20 @@
         $apps .= '<ul class="b-app-user-list">';
         $apps .= join("", @userapps);
         $apps .= '</ul>';
-        $apps .= '<div class="hr"><hr /></div>';
-        $apps .= '<ul class="b-app-activity-list">';
-        foreach (@activities) {
-            $apps .= '<li>';
-            if ($_->{app_image}) {
-                $apps .= '<img src="'.$_->{app_image}.'" width="60" height="60" alt="' . $_->{app_name} . '" class="pic" /> ';
+        if (scalar @activities) {
+            $apps .= '<div class="hr"><hr /></div>';
+            $apps .= '<ul class="b-app-activity-list">';
+            foreach (@activities) {
+                $apps .= '<li>';
+                if ($_->{app_image}) {
+                    $apps .= '<img src="'.$_->{app_image}.'" width="60" height="60" alt="' . $_->{app_name} . '" class="pic" /> ';
+                }
+                $apps .= '<p class="date">'. $_->{date}.'</p><p><a href="'.$_->{app_href}.'">'.$_->{app_name}.'</a>: '.$_->{title};
+                $apps .= $_->{body} ? "<br/>$_->{body}" : '';
+                $apps .= '</p></li>';
             }
-            $apps .= '<p class="date">'. $_->{date}.'</p><p><a href="'.$_->{app_href}.'">'.$_->{app_name}.'</a>: '.$_->{title};
-            $apps .= $_->{body} ? "<br/>$_->{body}" : '';
-            $apps .= '</p></li>';
+            $apps .= '</ul>';
         }
-        $apps .= '</ul>';
         $apps .= '</div>';
         $apps .= '</div></div>';
 

Tags: bml, livejournal, red_alf
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