fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-08-13 01:11 am

[dw-free] Styles: Add links to Your Layers

[commit: http://hg.dwscoalition.org/dw-free/rev/b11d3ffd6642]

http://bugs.dwscoalition.org/show_bug.cgi?id=2895

Add link.

Patch by [personal profile] ninetydegrees.

Files modified:
  • htdocs/customize/advanced/layers.bml
  • htdocs/customize/advanced/layers.bml.text
--------------------------------------------------------------------------------
diff -r 823740a6a3b7 -r b11d3ffd6642 htdocs/customize/advanced/layers.bml
--- a/htdocs/customize/advanced/layers.bml	Fri Aug 13 08:42:36 2010 +0800
+++ b/htdocs/customize/advanced/layers.bml	Fri Aug 13 09:10:51 2010 +0800
@@ -87,6 +87,9 @@ _c?>
     $body .= BML::ml("Backlink", {
         'link' => "$LJ::SITEROOT/customize/advanced/",
         'text' => $ML{'.back2'},
+    }) . "\n";
+    $body .= BML::ml("Actionlink", {
+        'link' => "<a href='$LJ::SITEROOT/customize/advanced/layerbrowse'>$ML{'.nav.publiclayers'}</a>",
     }) . "\n";
     my $styles_arg = $noactions ? "?user=" . $u->user : "?authas=" . $u->user;
     $body .= BML::ml("Actionlink", {
diff -r 823740a6a3b7 -r b11d3ffd6642 htdocs/customize/advanced/layers.bml.text
--- a/htdocs/customize/advanced/layers.bml.text	Fri Aug 13 08:42:36 2010 +0800
+++ b/htdocs/customize/advanced/layers.bml.text	Fri Aug 13 09:10:51 2010 +0800
@@ -73,6 +73,8 @@
 
 .error.youcantuseadvanced=Your account type does not allow advanced customization.
 
+.nav.publiclayers=Public Layers
+
 .nav.yourstyles=Your Styles
 
 .title=Your Layers
--------------------------------------------------------------------------------