]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_key.rhtml
Split out sidebar code from the search code so it can be reused for the
[rails.git] / app / views / site / _key.rhtml
diff --git a/app/views/site/_key.rhtml b/app/views/site/_key.rhtml
new file mode 100644 (file)
index 0000000..2d8f1bc
--- /dev/null
@@ -0,0 +1,12 @@
+<% content_for :left_menu do %>
+<%= link_to_function "Map key", "showKey();" %>
+<% end %>
+
+<script type="text/javascript">
+<!--
+  function showKey() {
+    updateSidebar("Map key", "<p><img src='images/keymapnik11.png' /></p>");
+    openSidebar();
+  }
+// -->
+</script>