[livejournal] r17087: LJSUP-6502 (Don't remove all links "Post...
Committer: ailyin
LJSUP-6502 (Don't remove all links "Post")U branches/facebook-integration2/cgi-bin/weblib.pl
Modified: branches/facebook-integration2/cgi-bin/weblib.pl
===================================================================
--- branches/facebook-integration2/cgi-bin/weblib.pl 2010-08-05 06:02:21 UTC (rev 17086)
+++ branches/facebook-integration2/cgi-bin/weblib.pl 2010-08-05 07:22:17 UTC (rev 17087)
@@ -1852,8 +1852,7 @@
# Build up some common links
my %links = (
'login' => "<a href='$LJ::SITEROOT/?returnto=$uri'>$BML::ML{'web.controlstrip.links.login'}</a>",
- 'post_journal' => "<a href='$LJ::SITEROOT/update.bml'>$BML::ML{'web.controlstrip.links.post2'}</a>",
- 'home' => "<a href='$LJ::SITEROOT/'>" . $BML::ML{'web.controlstrip.links.home'} . "</a>",
+ 'home' => "<a href='$LJ::SITEROOT/'>" . $BML::ML{'web.controlstrip.links.home'} . "</a> ",
'recent_comments' => "<a href='$LJ::SITEROOT/tools/recent_comments.bml'>$BML::ML{'web.controlstrip.links.recentcomments'}</a>",
'manage_friends' => "<a href='$LJ::SITEROOT/friends/'>$BML::ML{'web.controlstrip.links.managefriends'}</a>",
'manage_entries' => "<a href='$LJ::SITEROOT/editjournal.bml'>$BML::ML{'web.controlstrip.links.manageentries'}</a>",
@@ -1864,6 +1863,10 @@
'explore' => "<a href='$LJ::SITEROOT/explore/'>" . BML::ml('web.controlstrip.links.explore', { sitenameabbrev => $LJ::SITENAMEABBREV }) . "</a>",
);
+ if ($remote && $remote->is_person) {
+ $links{'post_journal'} = "<a href='$LJ::SITEROOT/update.bml'>$BML::ML{'web.controlstrip.links.post2'}</a> ";
+ }
+
if ($remote) {
$links{'view_friends_page'} = "<a href='" . $remote->journal_base . "/friends/'>$BML::ML{'web.controlstrip.links.viewfriendspage2'}</a>";
$links{'add_friend'} = "<a href='$LJ::SITEROOT/friends/add.bml?user=$journal->{user}'>$BML::ML{'web.controlstrip.links.addfriend'}</a>";
@@ -1943,7 +1946,7 @@
my $logout = "<input type='submit' value=\"$BML::ML{'web.controlstrip.btn.logout'}\" id='Logout' />";
$ret .= "$remote_display $logout";
$ret .= "</div></form>\n";
- $ret .= "$links{'home'} $links{'post_journal'} $links{'view_friends_page'}";
+ $ret .= "$links{'home'} $links{'post_journal'} $links{'view_friends_page'}";
$ret .= "</td>\n";
$ret .= "<td id='lj_controlstrip_actionlinks' nowrap='nowrap'>";
