alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r17436: OPSC-154: Wrong link "Change" from Appli...

Committer: afedorov
OPSC-154: Wrong link "Change" from Application chapter on profile page

U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2010-09-23 07:16:10 UTC (rev 17435)
+++ trunk/htdocs/userinfo.bml	2010-09-23 07:40:14 UTC (rev 17436)
@@ -1587,7 +1587,9 @@
         $apps .= '</div></div>';
 
         $body .= "<div class='ljclear'></div>";
-        $body .= "<div class='section'><img src='$LJ::IMGPREFIX/application.gif' alt='' /> $ML{'.apps.header'} <span class='section_link'>[<a href='$LJ::SITEROOT/manage/settings/?cat=userapps'>$ML{'.section.edit'}</a>]</span> <span class='section_link'>[<a href='$LJ::SITEROOT/apps/info.bml?user=".$u->username."'>$ML{'.section.view_all'}</a>]</span></div>";
+        $body .= "<div class='section'><img src='$LJ::IMGPREFIX/application.gif' alt='' /> $ML{'.apps.header'} ";
+        $body .= "<span class='section_link'>[<a href='$LJ::SITEROOT/manage/settings/?cat=userapps'>$ML{'.section.edit'}</a>]</span> " if $remote && $remote->can_manage($u); 
+        $body .= "<span class='section_link'>[<a href='$LJ::SITEROOT/apps/info.bml?user=".$u->username."'>$ML{'.section.view_all'}</a>]</span></div>";
         $body .= $apps;
     }
     

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