mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-02-27 03:12 am

[dw-nonfree] Redo menu items to be a separate file for site schemes to use

[commit: http://hg.dwscoalition.org/dw-nonfree/rev/c4a9c36a0a3a]

http://bugs.dwscoalition.org/show_bug.cgi?id=321

Update links in Tropospherical Red menu for identity accounts.

Patch by [personal profile] sophie.

--------------------------------------------------------------------------------
diff -r f079f1d6536c -r c4a9c36a0a3a cgi-bin/bml/scheme/tropo-red.look
--- a/cgi-bin/bml/scheme/tropo-red.look	Fri Feb 27 03:11:10 2009 +0000
+++ b/cgi-bin/bml/scheme/tropo-red.look	Fri Feb 27 03:12:28 2009 +0000
@@ -63,6 +63,7 @@ accountlinks<=
         my $userpic = $remote->userpic;
         my $inbox = $remote->notification_inbox;
         my $unread = $inbox->unread_count;
+        my $identity = $remote->is_identity;
         my $wh = "";
         if ( $userpic ) {
             if ( $userpic->width > $userpic->height ) {
@@ -87,13 +88,13 @@ accountlinks<=
         $ret .= " <input type='submit' value=\"$ML{'tropo.accountlinks.btn.logout'}\" />";
         $ret .= "</form>";
         $ret .= "<ul>";
-        $ret .= "<li><a href='$LJ::SITEROOT/update.bml'>$ML{'tropo.accountlinks.post'}</a>  &bull; </li>";
+        $ret .= "<li><a href='$LJ::SITEROOT/update.bml'>$ML{'tropo.accountlinks.post'}</a>  &bull; </li>" unless $identity;
         $ret .= "<li><a href='" . $remote->journal_base . "/read'>$ML{'tropo.accountlinks.readinglist'}</a> &bull; </li>";
         $ret .= "<li><a href='$LJ::SITEROOT/inbox/'>$ML{'tropo.accountlinks.inbox'}";
         $ret .= " ($unread)" if $unread;
         $ret .= "</a> &bull; </li>";
         $ret .= "<li><a href='$LJ::SITEROOT/manage/settings/'>$ML{'tropo.accountlinks.account'}</a></li> <br />";
-        $ret .= "<li><a href='$LJ::SITEROOT/manage/circle/invite.bml'>$ML{'tropo.accountlinks.invitefriend'}</a> &bull; </li>";
+        $ret .= "<li><a href='$LJ::SITEROOT/manage/circle/invite.bml'>$ML{'tropo.accountlinks.invitefriend'}</a> &bull; </li>" unless $identity;
         $ret .= "<li><a href='$LJ::SITEROOT/support/'>$ML{'tropo.accountlinks.help'}</a></li>";
         $ret .= "</ul>";
         $ret .= "</div>";
--------------------------------------------------------------------------------