From 38cfc35eb200e396015e18fbdfcaaaa97abcd571 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 6 Mar 2019 10:29:20 +0100 Subject: [PATCH] Whitespace fixes for site erb files --- app/views/site/copyright.html.erb | 22 +++++++++++----------- app/views/site/edit.html.erb | 2 +- app/views/site/export.html.erb | 2 +- app/views/site/offline.html.erb | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/views/site/copyright.html.erb b/app/views/site/copyright.html.erb index de4ff3cab..2dcccab18 100644 --- a/app/views/site/copyright.html.erb +++ b/app/views/site/copyright.html.erb @@ -7,13 +7,13 @@

<%= t '.native.title' %>

<%= raw t '.native.text', - :native_link => link_to(t('.native.native_link'), - :controller => 'site', - :action => 'copyright', - :copyright_locale => nil), - :mapping_link => link_to(t('.native.mapping_link'), - :controller => 'site', - :action => 'index') %> + :native_link => link_to(t('.native.native_link'), + :controller => 'site', + :action => 'copyright', + :copyright_locale => nil), + :mapping_link => link_to(t('.native.mapping_link'), + :controller => 'site', + :action => 'index') %>

<% end %>
@@ -25,10 +25,10 @@

<%= t '.foreign.title' %>

<%= raw t '.foreign.text', - :english_original_link => link_to(t('.foreign.english_link'), - :controller => 'site', - :action => 'copyright', - :copyright_locale => 'en') %> + :english_original_link => link_to(t('.foreign.english_link'), + :controller => 'site', + :action => 'copyright', + :copyright_locale => 'en') %>

<% end %>
diff --git a/app/views/site/edit.html.erb b/app/views/site/edit.html.erb index d89af0596..5451e1b5a 100644 --- a/app/views/site/edit.html.erb +++ b/app/views/site/edit.html.erb @@ -5,7 +5,7 @@

<%= t 'layouts.osm_read_only' %>

<% elsif !current_user.data_public? %>

<%= t '.not_public' %>

-

<%= raw t '.not_public_description', :user_page => (link_to t('.user_page_link'), {:controller => 'user', :action => 'account', :display_name => current_user.display_name, :anchor => 'public'}) %>

+

<%= raw t '.not_public_description', :user_page => (link_to t('.user_page_link'), { :controller => 'user', :action => 'account', :display_name => current_user.display_name, :anchor => 'public' }) %>

<%= raw t 'site.edit.anon_edits', :link => link_to(t('.anon_edits_link_text'), t('.anon_edits_link')) %>

<% else %> <%= render :partial => preferred_editor %> diff --git a/app/views/site/export.html.erb b/app/views/site/export.html.erb index f11ad8d79..84e3b1736 100644 --- a/app/views/site/export.html.erb +++ b/app/views/site/export.html.erb @@ -5,7 +5,7 @@ <%= t '.title' %> -<%= form_tag({:controller => "export", :action => "finish"}, :class => "export_form") do %> +<%= form_tag({ :controller => "export", :action => "finish" }, :class => "export_form") do %> <%= hidden_field_tag 'format', 'osm' %>
diff --git a/app/views/site/offline.html.erb b/app/views/site/offline.html.erb index d306c2af9..bfe0bcb9f 100644 --- a/app/views/site/offline.html.erb +++ b/app/views/site/offline.html.erb @@ -4,4 +4,4 @@ <% else %>

<%= t 'layouts.osm_read_only' %>

-<% end %> +<% end %> -- 2.43.2