]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.html.erb
Merge remote-tracking branch 'apmon/openstreetbugs2' into openstreetbugs
[rails.git] / app / views / site / index.html.erb
index 633a7ba3b0c9ee1edbdf7e2408c58af6ef03ea6e..27ecf1fa79d6bb7ab610fe5fe11af5b88f300c34 100644 (file)
@@ -25,7 +25,7 @@
 <div id="permalink">
   <a href="/" id="permalinkanchor"><%= t 'site.index.permalink' %></a><br/>
   <a href="/" id="shortlinkanchor"><%= t 'site.index.shortlink' %></a><br/>
-  <a href="javascript:void()" id="ReportBug">Report a problem</a>      
+  <a href="javascript:void();" id="ReportBug">Report a problem</a>     
 </div>
 
 <div id="attribution">
@@ -129,10 +129,9 @@ end
 
   OpenLayers.Lang.setCode("<%= I18n.locale.to_s %>");
 
-  function createBugCallBack() {
-       map.osbControl.deactivate();
-       document.getElementById("OpenLayers.Map_18_OpenLayers_Container").style.cursor = "default";
-  }
+  <% if @user %>
+    var loginName = "<%= @user.display_name %>"
+  <% end %>
 
   function mapInit(){
     map = createMap("map");