X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/409576eea0542c650f3937624bb21a68ac58d6fd..97dba0fbbe63fcccd3d36c5b577a12dce7c47ca7:/app/views/site/_potlatch2.html.erb diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb index d2358f05e..c443a917a 100644 --- a/app/views/site/_potlatch2.html.erb +++ b/app/views/site/_potlatch2.html.erb @@ -1,48 +1,82 @@
- <%= 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 = request.compatible_language_from(Potlatch2::LOCALES.keys) || "en" %>