X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0a52a4eb0776874607a321c05c65c656abb85b7e..344c5534ee328243ce8f5787e0ef6c3dcbf87b15:/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 5b0724763..4559282ca 100644 --- a/app/views/site/_potlatch2.html.erb +++ b/app/views/site/_potlatch2.html.erb @@ -1,43 +1,91 @@
- <%= 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" %>