Максим Червонный (fiskus_boulder) wrote in changelog,
Максим Червонный
fiskus_boulder
changelog

[ljcom] r10153: OPSC-305: link My Games

Committer: mchervonniy
OPSC-305: link My Games
U   trunk/bin/upgrading/s2layers/component/layout.s2
Modified: trunk/bin/upgrading/s2layers/component/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/component/layout.s2	2011-03-02 10:51:24 UTC (rev 10152)
+++ trunk/bin/upgrading/s2layers/component/layout.s2	2011-03-02 11:23:01 UTC (rev 10153)
@@ -331,6 +331,7 @@
     property use text_showspam;
     property use text_hidespam;
     property use text_spam_comment;
+    property use text_view_games;
 }
 set free_text_text = "about this journal";
 set calendar_text = "calendar";
@@ -1947,6 +1948,10 @@
     $p->print_control_strip();
     if($*comp_state == "none" or $*comp_navbar == false or ($p.view == "friends" and $*comp_friends == false)) {
 
+var string games;
+if ($p.view_my_games) {
+    $games = "<span class=\"header-item\"><a href=\"$p.base_url/profile#apps\" class=\"headerLinks\">$*text_view_games</a></span>";
+}
 print safe """
 <div class="header">
     <span class="header-item"><a href="$p.base_url/" class="headerLinks">$*nav_entries_text</a></span>
@@ -1954,6 +1959,7 @@
     <span class="header-item"><a href="$p.base_url/calendar/" class="headerLinks">$*nav_calendar_text</a></span>
     <span class="header-item"><a href="$p.base_url/info" class="headerLinks">$*nav_info_text</a></span>
     $website
+    $games
 """;
 
             $p->lay_viewspec_nav();

Tags: fiskus_boulder, ljcom, s2
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