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

[livejournal] r18436: OPSC-305: link My Games

Committer: mchervonniy
OPSC-305: link My Games
U   trunk/bin/upgrading/s2layers/classic/layout.s2
Modified: trunk/bin/upgrading/s2layers/classic/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/classic/layout.s2	2011-03-02 10:16:52 UTC (rev 18435)
+++ trunk/bin/upgrading/s2layers/classic/layout.s2	2011-03-02 10:50:49 UTC (rev 18436)
@@ -231,6 +231,7 @@
   }
   property use text_showspam;
   property use text_hidespam;
+  property use text_view_games;
 }
 set text_left_comments = "(";
 set text_btwn_comments = " | ";
@@ -507,10 +508,15 @@
      "<div></div><table id=\"whole\" cellpadding=\"0\" cellspacing=\"0\">";
  }
 """<tr><td>""";
+    var string games;
+    if ($.view_my_games) {
+        $games = "[<a href=\"$.journal.website_url/profile#apps\" class=\"nav\">$*text_view_games</a>]";
+    }
+ 
 print safe """<table class="main" width="100%"><tr><td>
     $userpic
     <span class="page_title">$title</span>
-    <p class="view_links">$links</p>
+    <p class="view_links">$links$games</p>
 """;
 if (size $.linklist > 0 and $*linklist_support) {
 $this->print_linklist();

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