holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r23193: LJSUP-12738: Some improvements for the e...

Committer: akanashin
LJSUP-12738: Some improvements for the editor of layers
U   trunk/cgi-bin/LJ/Widget/LayerEditor.pm
U   trunk/templates/Widgets/layereditor.tmpl
Modified: trunk/cgi-bin/LJ/Widget/LayerEditor.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/LayerEditor.pm	2012-10-24 13:01:41 UTC (rev 23192)
+++ trunk/cgi-bin/LJ/Widget/LayerEditor.pm	2012-10-24 13:57:07 UTC (rev 23193)
@@ -149,6 +149,7 @@
     $params->{form_auth} = LJ::form_auth();
 
     $params->{ljuser} = $u->ljuser_display();
+    $params->{username} = $u->user();
 
     return 1;
 }

Modified: trunk/templates/Widgets/layereditor.tmpl
===================================================================
--- trunk/templates/Widgets/layereditor.tmpl	2012-10-24 13:01:41 UTC (rev 23192)
+++ trunk/templates/Widgets/layereditor.tmpl	2012-10-24 13:57:07 UTC (rev 23193)
@@ -6,9 +6,9 @@
         <TMPL_VAR ljuser>
         <h1><TMPL_VAR title></h1>
         <div class="tools">
-            <a href="/customize/options.bml">Options</a>
-            <a href="/customize/advanced/layers.bml">Your Layers</a>
-            <a href="/customize/advanced/layerbrowse.bml">Public Layers</a>
+            <a href="/customize/options.bml?authas=<TMPL_VAR username>">Options</a>
+            <a href="/customize/advanced/layers.bml?authas=<TMPL_VAR username>">Your Layers</a>
+            <a href="/customize/advanced/layerbrowse.bml?authas=<TMPL_VAR username>">Public Layers</a>
             <a href="<TMPL_VAR s2doc>" target="_blank">Documentation</a>
         </div>
         <input type="submit" value="Save & Compile" class="compilelink" />

Tags: akanashin, holyandrew, livejournal, pm, tmpl
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