]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/id.html.erb
Update iD initialization for v2.18.1
[rails.git] / app / views / site / id.html.erb
index e4dbf2d5336d7ac80c87744890a4ab2866414fd2..0178c8f22f817b2d5c58a85e14cd56ce61e53c81 100644 (file)
@@ -6,15 +6,6 @@
   <!--[if !IE || gte IE 9]><!-->
   <%= javascript_include_tag "id" %>
   <!-- <![endif]-->
-  <style type='text/css'>
-    /* apply document-level styling */
-    html, body {
-      width: 100%;
-      height: 100%;
-      margin: 0;
-      padding: 0;
-    }
-  </style>
 </head>
 <body>
 <% data = {} -%>
@@ -26,8 +17,7 @@
 <% data[:consumer_secret] = token.client_application.secret -%>
 <% end %>
 <% data[:locale] = ID::LOCALES.preferred(preferred_languages).to_s -%>
-<% data[:locale_path] = asset_path("iD/locales/#{data[:locale]}.json") -%>
 <% data[:asset_map] = assets("iD").to_json -%>
-<%= content_tag :div, "", :id => "id-container", :data => data %>
+<%= tag.div "", :id => "id-container", :data => data %>
 </body>
 </html>