]> git.openstreetmap.org Git - rails.git/blob - app/views/site/id.html.erb
Merge remote-tracking branch 'upstream/pull/1576'
[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 defined? ID_KEY %>
13 <% token = current_user.access_token(ID_KEY) %>
14 <% data[:token] = token.token -%>
15 <% data[:token_secret] = token.secret -%>
16 <% data[:consumer_key] = token.client_application.key -%>
17 <% data[:consumer_secret] = token.client_application.secret -%>
18 <% end %>
19 <% data[:locale] = ID::LOCALES.preferred(preferred_languages).to_s -%>
20 <% data[:locale_path] = asset_path("iD/locales/#{data[:locale]}.json") -%>
21 <% data[:asset_map] = assets("iD").to_json -%>
22 <%= content_tag :div, "", :id => "id-container", :data => data %>
23 </body>
24 </html>