X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5454bf3ec93c65c991e0e17b15c0480a1587d9fb..20bd72d9e9a8efd50856d91cf48a57926b9a13f5:/app/views/site/_potlatch2.html.erb diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb index 4305e07b9..1c203b2fb 100644 --- a/app/views/site/_potlatch2.html.erb +++ b/app/views/site/_potlatch2.html.erb @@ -1,15 +1,18 @@
- <%= t 'site.edit.flash_player_required' %> +
<%= raw t 'site.edit.flash_player_required' %>
<%= javascript_include_tag 'swfobject.js' %> +<% if defined? POTLATCH2_KEY %> <% token = @user.access_token(POTLATCH2_KEY) %> +<% else%> + +<% end %> + +<% locale = Locale.list(Potlatch2::LOCALES.keys).preferred(preferred_languages).to_s %>