]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_sidebar.rhtml
Add RSS feed for global recent changes & changes within a bbox. Solves #1737
[rails.git] / app / views / site / _sidebar.rhtml
index d813635905971a9c86a69b8c2b69aed017bca886..dd15ef7ba64b2e00ac17de7da3066d3a11c38f0f 100644 (file)
@@ -1,8 +1,8 @@
 <div id="sidebar">
   <table class="sidebar_title" width="100%">
     <tr>
-      <td align="left" id="sidebar_title">Search Results</td>
-      <td align="right"><a href="javascript:closeSidebar()">Close</a></td>
+      <td align="left" id="sidebar_title"><% t 'site.sidebar.search_results' %></td>
+      <td align="right"><a href="javascript:closeSidebar()"><%= t 'site.sidebar.close' %></a></td>
     </tr>
   </table>
   <div id="sidebar_content">
@@ -14,6 +14,8 @@
   var onclose;
 
   function openSidebar(options) {
+    options = options || {};
+
     if (onclose) {
        onclose();
        onclose = null;