]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_sidebar.html.erb
Remove deprecated assert_blank and assert_present from tests
[rails.git] / app / views / site / _sidebar.html.erb
index 481f897957f91d4607279487b962fe37c971781a..cc3cf48150e228d24a70270802297aa8ae6f0e0e 100644 (file)
@@ -1,54 +1,9 @@
 <div id="sidebar">
-  <table class="sidebar_title" width="100%">
-    <tr>
-      <td id="sidebar_title"><% t 'site.sidebar.search_results' %></td>
-      <td id="sidebar_close"><a class="sidebar_close" href="#"><%= t 'site.sidebar.close' %></a></td>
-    </tr>
-  </table>
+  <div class="sidebar_heading">
+    <h4 id="sidebar_title"><% t 'site.sidebar.search_results' %></h4>
+    <a class="sidebar_close" href="#"><%= t 'site.sidebar.close' %></a>
+  </div>
   <div id="sidebar_content">
+    <%= render :template => 'export/start' if params[:export] %>
   </div>
 </div>
-
-<script type="text/javascript">
-<!--
-  var onclose;
-
-  function openSidebar(options) {
-    options = options || {};
-
-    if (onclose) {
-       onclose();
-       onclose = null;
-    }
-
-    if (options.title) { $("#sidebar_title").html(options.title); }
-
-    if (options.width) { $("#sidebar").width(options.width); }
-    else { $("#sidebar").width("30%"); }
-
-    $("#sidebar").css("display", "block");
-
-    <%= onopen %>
-
-    onclose = options.onclose;
-  }
-
-  $(".sidebar_close").click(function (e) {
-    $("#sidebar").css("display", "none");
-
-    <%= onclose %>
-
-    if (onclose) {
-       onclose();
-       onclose = null;
-    }
-
-    e.preventDefault();
-  });
-
-  function updateSidebar(title, content) {
-    $("#sidebar_title").html(title);
-    $("#sidebar_content").html(content);
-  }
-// -->
-</script>