]> git.openstreetmap.org Git - rails.git/blob - app/views/site/id.html.erb
Update to iD v2.21.0
[rails.git] / app / views / site / id.html.erb
1 <!DOCTYPE html>
2 <html>
3 <head>
4   <meta charset='utf-8'>
5   <%= stylesheet_link_tag "id" %>
6   <!--[if !IE || gte IE 9]><!-->
7   <%= javascript_include_tag "id" %>
8   <!-- <![endif]-->
9 </head>
10 <body>
11 <% data = {}
12    if Settings.key?(:id_oauth_application)
13      token = current_user.oauth_token(Settings.id_oauth_application)
14      data[:token] = token.token
15    end
16    data[:locale] = ID::LOCALES.preferred(preferred_languages).to_s
17    data[:asset_map] = assets("iD").to_json %>
18 <%= tag.div "", :id => "id-container", :data => data %>
19 </body>
20 </html>