X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/abc5b2d7b4bf08b29074e7bb152d48b904989443..716262f211a8983a4272eabf3fdba9877b068b65:/app/views/site/_potlatch2.html.erb?ds=sidebyside diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb index 825654029..da68e0ba6 100644 --- a/app/views/site/_potlatch2.html.erb +++ b/app/views/site/_potlatch2.html.erb @@ -1,43 +1,64 @@
- <%= 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" %>