Committer: gariev
OPSC-305: Create "My games" link in user menu for non-cyr usersU trunk/cgi-bin/LJ/S2/DayPage.pm U trunk/cgi-bin/LJ/S2/EntryPage.pm U trunk/cgi-bin/LJ/S2/FriendsPage.pm U trunk/cgi-bin/LJ/S2/MonthPage.pm U trunk/cgi-bin/LJ/S2/RecentPage.pm U trunk/cgi-bin/LJ/S2/ReplyPage.pm U trunk/cgi-bin/LJ/S2/TagsPage.pm U trunk/cgi-bin/LJ/S2/YearPage.pm U trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2/DayPage.pm =================================================================== --- trunk/cgi-bin/LJ/S2/DayPage.pm 2011-06-28 08:52:20 UTC (rev 19388) +++ trunk/cgi-bin/LJ/S2/DayPage.pm 2011-06-28 09:53:17 UTC (rev 19389) @@ -16,7 +16,6 @@ $p->{'view'} = "day"; $p->{'entries'} = []; $p->{'head_content'}->set_object_type( $p->{'_type'} ); - $p->{'view_my_games'} = $remote && $remote->equals($u) && !LJ::SUP->is_remote_sup() && LJ::UserApps->user_games_count($remote); my $user = $u->{'user'}; my $journalbase = LJ::journal_base($user, $opts->{'vhost'}); Modified: trunk/cgi-bin/LJ/S2/EntryPage.pm =================================================================== --- trunk/cgi-bin/LJ/S2/EntryPage.pm 2011-06-28 08:52:20 UTC (rev 19388) +++ trunk/cgi-bin/LJ/S2/EntryPage.pm 2011-06-28 09:53:17 UTC (rev 19389) @@ -19,7 +19,6 @@ $p->{'comments'} = []; $p->{'comment_pages'} = undef; - $p->{'view_my_games'} = $remote && $remote->equals($u) && !LJ::SUP->is_remote_sup() && LJ::UserApps->user_games_count($remote); $p->{head_content}->set_object_type( $p->{_type} ); # setup viewall options my ($viewall, $viewsome) = (0, 0); Modified: trunk/cgi-bin/LJ/S2/FriendsPage.pm =================================================================== --- trunk/cgi-bin/LJ/S2/FriendsPage.pm 2011-06-28 08:52:20 UTC (rev 19388) +++ trunk/cgi-bin/LJ/S2/FriendsPage.pm 2011-06-28 09:53:17 UTC (rev 19389) @@ -26,8 +26,6 @@ $p->{'filter_name'} = ""; $p->{'head_content'}->set_object_type( $p->{'_type'} ); - $p->{'view_my_games'} = $remote && $remote->equals($u) && !LJ::SUP->is_remote_sup() && LJ::UserApps->user_games_count($remote); - my $sth; my $user = $u->{'user'}; Modified: trunk/cgi-bin/LJ/S2/MonthPage.pm =================================================================== --- trunk/cgi-bin/LJ/S2/MonthPage.pm 2011-06-28 08:52:20 UTC (rev 19388) +++ trunk/cgi-bin/LJ/S2/MonthPage.pm 2011-06-28 09:53:17 UTC (rev 19389) @@ -19,8 +19,6 @@ $p->{'days'} = []; $p->{'head_content'}->set_object_type( $p->{'_type'} ); - $p->{'view_my_games'} = $remote && $remote->equals($u) && !LJ::SUP->is_remote_sup() && LJ::UserApps->user_games_count($remote); - my $ctx = $opts->{'ctx'}; my $dbcr = LJ::get_cluster_reader($u); Modified: trunk/cgi-bin/LJ/S2/RecentPage.pm =================================================================== --- trunk/cgi-bin/LJ/S2/RecentPage.pm 2011-06-28 08:52:20 UTC (rev 19388) +++ trunk/cgi-bin/LJ/S2/RecentPage.pm 2011-06-28 09:53:17 UTC (rev 19389) @@ -22,8 +22,6 @@ $p->{'entries'} = []; $p->{'head_content'}->set_object_type( $p->{'_type'} ); - $p->{'view_my_games'} = $remote && $remote->equals($u) && !LJ::SUP->is_remote_sup() && LJ::UserApps->user_games_count($remote); - my $user = $u->{'user'}; my $journalbase = LJ::journal_base($user, $opts->{'vhost'}); Modified: trunk/cgi-bin/LJ/S2/ReplyPage.pm =================================================================== --- trunk/cgi-bin/LJ/S2/ReplyPage.pm 2011-06-28 08:52:20 UTC (rev 19388) +++ trunk/cgi-bin/LJ/S2/ReplyPage.pm 2011-06-28 09:53:17 UTC (rev 19389) @@ -19,8 +19,6 @@ $p->{'view'} = "reply"; $p->{'head_content'}->set_object_type( $p->{'_type'} ); - $p->{'view_my_games'} = $remote && $remote->equals($u) && !LJ::SUP->is_remote_sup() && LJ::UserApps->user_games_count($remote); - my $get = $opts->{'getargs'}; my ($entry, $s2entry) = EntryPage_entry($u, $remote, $opts); Modified: trunk/cgi-bin/LJ/S2/TagsPage.pm =================================================================== --- trunk/cgi-bin/LJ/S2/TagsPage.pm 2011-06-28 08:52:20 UTC (rev 19388) +++ trunk/cgi-bin/LJ/S2/TagsPage.pm 2011-06-28 09:53:17 UTC (rev 19389) @@ -12,7 +12,6 @@ $p->{'view'} = "tags"; $p->{'tags'} = []; $p->{'head_content'}->set_object_type( $p->{'_type'} ); - $p->{'view_my_games'} = $remote && $remote->equals($u) && !LJ::SUP->is_remote_sup() && LJ::UserApps->user_games_count($remote); my $user = $u->{'user'}; my $journalbase = LJ::journal_base($user, $opts->{'vhost'}); Modified: trunk/cgi-bin/LJ/S2/YearPage.pm =================================================================== --- trunk/cgi-bin/LJ/S2/YearPage.pm 2011-06-28 08:52:20 UTC (rev 19388) +++ trunk/cgi-bin/LJ/S2/YearPage.pm 2011-06-28 09:53:17 UTC (rev 19389) @@ -15,7 +15,6 @@ $p->{'_type'} = "YearPage"; $p->{'view'} = "archive"; $p->{'head_content'}->set_object_type( $p->{'_type'} ); - $p->{'view_my_games'} = $remote && $remote->equals($u) && !LJ::SUP->is_remote_sup() && LJ::UserApps->user_games_count($remote); my $user = $u->{'user'}; my $get = $opts->{'getargs'}; Modified: trunk/cgi-bin/LJ/S2.pm =================================================================== --- trunk/cgi-bin/LJ/S2.pm 2011-06-28 08:52:20 UTC (rev 19388) +++ trunk/cgi-bin/LJ/S2.pm 2011-06-28 09:53:17 UTC (rev 19389) @@ -2054,6 +2054,7 @@ 'page_id' => 'journal-' . $u->username, }; + $p->{'view_my_games'} = $remote && $remote->equals($u) && LJ::UserApps->user_games_count($remote); my $show_control_strip = LJ::run_hook('show_control_strip', { user => $u->{user},