]> git.openstreetmap.org Git - rails.git/commitdiff
Whitespace fixes for users erb files
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 6 Mar 2019 09:50:33 +0000 (10:50 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 26 Mar 2019 20:23:35 +0000 (20:23 +0000)
app/views/users/_contact.html.erb
app/views/users/_user.html.erb
app/views/users/account.html.erb
app/views/users/confirm.html.erb
app/views/users/index.html.erb
app/views/users/lost_password.html.erb
app/views/users/reset_password.html.erb
app/views/users/show.html.erb
app/views/users/terms.html.erb

index 5c3afaa89c89831fc3e85c5c1a8d3d1e6c4361d9..1eef86b87ee1bf35bd5d6b82ffb6e32d6889b3a5 100644 (file)
@@ -3,10 +3,10 @@
      :lon => contact.home_lon,
      :lat => contact.home_lat,
      :icon => image_path(type == "friend" ? "marker-blue.png" : "marker-green.png"),
      :lon => contact.home_lon,
      :lat => contact.home_lat,
      :icon => image_path(type == "friend" ? "marker-blue.png" : "marker-green.png"),
-     :description => render(:partial => "popup", :object => contact, :locals => {:type => type})
+     :description => render(:partial => "popup", :object => contact, :locals => { :type => type })
    }
 %>
    }
 %>
-<%= content_tag :div, :class => "contact-activity clearfix", :data => {:user => user_data} do %>
+<%= content_tag :div, :class => "contact-activity clearfix", :data => { :user => user_data } do %>
   <%= user_thumbnail contact %>
   <div class='activity-details'>
     <p class='deemphasize'>
   <%= user_thumbnail contact %>
   <div class='activity-details'>
     <p class='deemphasize'>
         <%= t('users.show.latest edit', :ago => t('users.show.ago', :time_in_words_ago => time_ago_in_words(changeset.created_at))) %>
         <% comment = changeset.tags['comment'].to_s != '' ? changeset.tags['comment'] : t('browse.no_comment') %>
         "<%= link_to(comment,
         <%= t('users.show.latest edit', :ago => t('users.show.ago', :time_in_words_ago => time_ago_in_words(changeset.created_at))) %>
         <% comment = changeset.tags['comment'].to_s != '' ? changeset.tags['comment'] : t('browse.no_comment') %>
         "<%= link_to(comment,
-                            {:controller => 'browse', :action => 'changeset', :id => changeset.id},
-                            {:title => t('changesets.changeset.view_changeset_details')})
-        %>"
+                     { :controller => 'browse', :action => 'changeset', :id => changeset.id },
+                     { :title => t('changesets.changeset.view_changeset_details') }) %>"
       <% else %>
       <% else %>
-       <%= t'changesets.changeset.no_edits' %>
+       <%= t 'changesets.changeset.no_edits' %>
       <% end %>
     </p>
 
       <% end %>
     </p>
 
index b9b7bc96345b259bece5f30784112788b11de970..ae8b96383fd16f08f96adf6e38b1addd9790adbf 100644 (file)
@@ -8,15 +8,13 @@
     <p>
       <% if user.creation_ip %>
         <%= raw t 'users.index.summary',
     <p>
       <% if user.creation_ip %>
         <%= raw t 'users.index.summary',
-            :name => link_to(h(user.display_name), user_path(user)),
-            :ip_address => link_to(user.creation_ip, :ip => user.creation_ip),
-            :date => l(user.creation_time, :format => :friendly)
-        %>
+                  :name => link_to(h(user.display_name), user_path(user)),
+                  :ip_address => link_to(user.creation_ip, :ip => user.creation_ip),
+                  :date => l(user.creation_time, :format => :friendly) %>
       <% else %>
         <%= raw t 'users.index.summary_no_ip',
       <% else %>
         <%= raw t 'users.index.summary_no_ip',
-            :name => link_to(h(user.display_name), user_path(user)),
-            :date => l(user.creation_time, :format => :friendly)
-        %>
+                  :name => link_to(h(user.display_name), user_path(user)),
+                  :date => l(user.creation_time, :format => :friendly) %>
       <% end %>
     </p>
     <div class="richtext"><%= user.description.to_html %></div>
       <% end %>
     </p>
     <div class="richtext"><%= user.description.to_html %></div>
index 233f2629fa96f1ca84174e4c873d8b17c36e376f..d2db19ea6fcdf4c72d97652644f14e75e1b85290 100644 (file)
   <fieldset>
     <div class="form-row">
         <label class="standard-label"><%= t 'users.new.password' %></label>
   <fieldset>
     <div class="form-row">
         <label class="standard-label"><%= t 'users.new.password' %></label>
-      <%= f.password_field :pass_crypt, {:value => '', :autocomplete => :off} %>
+      <%= f.password_field :pass_crypt, { :value => '', :autocomplete => :off } %>
     </div>
 
     <div class="form-row">
       <label class="standard-label"><%= t 'users.new.confirm password' %></label>
     </div>
 
     <div class="form-row">
       <label class="standard-label"><%= t 'users.new.confirm password' %></label>
-      <%= f.password_field :pass_crypt_confirmation, {:value => '', :autocomplete => :off} %>
+      <%= f.password_field :pass_crypt_confirmation, { :value => '', :autocomplete => :off } %>
     </div>
   </fieldset>
 
     </div>
   </fieldset>
 
   <fieldset class="form-divider">
     <div class='form-row location clearfix'>
     <label class="standard-label"><%= t '.home location' %></label>
   <fieldset class="form-divider">
     <div class='form-row location clearfix'>
     <label class="standard-label"><%= t '.home location' %></label>
-    <div id="homerow" <% unless current_user.home_lat and current_user.home_lon %>class="nohome"<%end%> >
+    <div id="homerow" <% unless current_user.home_lat and current_user.home_lon %>class="nohome"<% end %> >
       <p class="message form-help deemphasize"><%= t '.no home location' %></p>
         <div class='form-column'>
           <label class="standard-label secondary"><%= t '.latitude' %></label>
       <p class="message form-help deemphasize"><%= t '.no home location' %></p>
         <div class='form-column'>
           <label class="standard-label secondary"><%= t '.latitude' %></label>
index 7b8d78d3f49c58eb078a88a10ab3d5513a18be9f..167801cbbb84519fce0077d4df54203e11a88109 100644 (file)
@@ -26,5 +26,5 @@
   </h1>
 
   <p class='deemphasize'><%= t ".reconfirm_html",
   </h1>
 
   <p class='deemphasize'><%= t ".reconfirm_html",
-                               :reconfirm => url_for(:action => 'confirm_resend')%></p>
+                               :reconfirm => url_for(:action => 'confirm_resend') %></p>
 <% end %>
 <% end %>
index 960cf112854219d138c9f6db1b9df9159a71c8b4..deb0eab4c315bef77f2d94ab37ccbb89331a823d 100644 (file)
       <tr>
         <td colspan="2">
           <%= t '.showing',
       <tr>
         <td colspan="2">
           <%= t '.showing',
-              :page => @user_pages.current_page.number,
-              :first_item => @user_pages.current_page.first_item,
-              :last_item => @user_pages.current_page.last_item,
-              :items => @user_pages.item_count,
-              :count => @user_pages.current_page.last_item - @user_pages.current_page.first_item + 1
-          %>
+                :page => @user_pages.current_page.number,
+                :first_item => @user_pages.current_page.first_item,
+                :last_item => @user_pages.current_page.last_item,
+                :items => @user_pages.item_count,
+                :count => @user_pages.current_page.last_item - @user_pages.current_page.first_item + 1 %>
           <% if @user_pages.page_count > 1 %>
           | <%= raw pagination_links_each(@user_pages, {}) { |n| link_to n, @params.merge(:page => n) } %>
           <% end %>
           <% if @user_pages.page_count > 1 %>
           | <%= raw pagination_links_each(@user_pages, {}) { |n| link_to n, @params.merge(:page => n) } %>
           <% end %>
index 6f50526d9119b8825965b24c43d96c63e23daed0..d57f03ed9f88806d4b9eab82484722573c1a0963 100644 (file)
@@ -7,7 +7,7 @@
 <%= form_tag :action => 'lost_password' do %>
   <div class="standard-form">
     <label class="standard-label"><%= t '.email address' %></label>
 <%= form_tag :action => 'lost_password' do %>
   <div class="standard-form">
     <label class="standard-label"><%= t '.email address' %></label>
-    <%= text_field('user', 'email', { :tabindex => 1) %>
+    <%= text_field('user', 'email', { :tabindex => 1 }) %>
     <%= submit_tag t('.new password button'), :tabindex => 2 %>
   </div>
 <% end %>
     <%= submit_tag t('.new password button'), :tabindex => 2 %>
   </div>
 <% end %>
index 51983b94abb42a108df9721cafc522a7747c69d3..4138bf90d909eedae9aec024f6ce8da2a31dfbd8 100644 (file)
@@ -9,11 +9,11 @@
   <div class="standard-form">
     <fieldset>
       <label class="standard-label"><%= t '.password' %></label>
   <div class="standard-form">
     <fieldset>
       <label class="standard-label"><%= t '.password' %></label>
-      <%= password_field(:user, :pass_crypt, {:value => '', :tabindex => 4}) %>
+      <%= password_field(:user, :pass_crypt, { :value => '', :tabindex => 4 }) %>
     </fieldset>
     <fieldset>
       <label class="standard-label"><%= t '.confirm password' %></label>
     </fieldset>
     <fieldset>
       <label class="standard-label"><%= t '.confirm password' %></label>
-      <%= password_field(:user, :pass_crypt_confirmation, {:value => '', :tabindex => 5}) %>
+      <%= password_field(:user, :pass_crypt_confirmation, { :value => '', :tabindex => 5 }) %>
     </fieldset>
     <%= submit_tag t('.reset'), :tabindex => 6 %>
   </div>
     </fieldset>
     <%= submit_tag t('.reset'), :tabindex => 6 %>
   </div>
index f62550928ff73b457f2de4ca3f93e14a8739baef..4f08b63513b550e123ed39e65bfff8307e9364f4 100644 (file)
@@ -11,7 +11,7 @@
             <span class='count-number'><%= number_with_delimiter(current_user.changesets.size) %></span>
           </li>
           <li>
             <span class='count-number'><%= number_with_delimiter(current_user.changesets.size) %></span>
           </li>
           <li>
-            <%= link_to t('.my notes'), :controller => 'notes', :action=> 'mine' %>
+            <%= link_to t('.my notes'), :controller => 'notes', :action => 'mine' %>
           </li>
           <li>
             <%= link_to t('.my traces'), :controller => 'traces', :action => 'mine' %>
           </li>
           <li>
             <%= link_to t('.my traces'), :controller => 'traces', :action => 'mine' %>
@@ -22,7 +22,7 @@
             <span class='count-number'><%= number_with_delimiter(current_user.diary_entries.size) %></span>
           </li>
           <li>
             <span class='count-number'><%= number_with_delimiter(current_user.diary_entries.size) %></span>
           </li>
           <li>
-            <%= link_to t('.my comments' ), :controller => 'diary_entries', :action => 'comments', :display_name => current_user.display_name %>
+            <%= link_to t('.my comments'), :controller => 'diary_entries', :action => 'comments', :display_name => current_user.display_name %>
           </li>
           <li>
             <%= link_to t('.my settings'), :controller => 'users', :action => 'account', :display_name => current_user.display_name %>
           </li>
           <li>
             <%= link_to t('.my settings'), :controller => 'users', :action => 'account', :display_name => current_user.display_name %>
@@ -53,7 +53,7 @@
             <span class='count-number'><%= number_with_delimiter(@user.changesets.size) %></span>
           </li>
           <li>
             <span class='count-number'><%= number_with_delimiter(@user.changesets.size) %></span>
           </li>
           <li>
-            <%= link_to t('.notes'), :controller => 'notes', :action=> 'mine' %>
+            <%= link_to t('.notes'), :controller => 'notes', :action => 'mine' %>
           </li>
           <li>
             <%= link_to t('.traces'), :controller => 'traces', :action => 'index', :display_name => @user.display_name %>
           </li>
           <li>
             <%= link_to t('.traces'), :controller => 'traces', :action => 'index', :display_name => @user.display_name %>
           :lon => current_user.home_lon,
           :lat => current_user.home_lat,
           :icon => image_path("marker-red.png"),
           :lon => current_user.home_lon,
           :lat => current_user.home_lat,
           :icon => image_path("marker-red.png"),
-          :description => render(:partial => "popup", :object => current_user, :locals => {:type => "your location"})
+          :description => render(:partial => "popup", :object => current_user, :locals => { :type => "your location" })
         }
       %>
         }
       %>
-      <%= content_tag "div", "", :id => "map", :class => "content_map", :data => {:user => user_data} %>
+      <%= content_tag "div", "", :id => "map", :class => "content_map", :data => { :user => user_data } %>
     <% end %>
 
     <% friends = @user.friends.collect { |f| f.befriendee } %>
     <% end %>
 
     <% friends = @user.friends.collect { |f| f.befriendee } %>
         <li><%= link_to t('.friends_diaries'), friend_diaries_path %></li>
       </ul>
       <div id="friends-container">
         <li><%= link_to t('.friends_diaries'), friend_diaries_path %></li>
       </ul>
       <div id="friends-container">
-        <%= render :partial => "contact", :collection => friends, :locals => {:type => "friend"} %>
+        <%= render :partial => "contact", :collection => friends, :locals => { :type => "friend" } %>
       </div>
     <% end %>
   </div>
       </div>
     <% end %>
   </div>
         <li><%= link_to t('.nearby_diaries'), nearby_diaries_path %></li>
       </ul>
       <div id="nearbyusers">
         <li><%= link_to t('.nearby_diaries'), nearby_diaries_path %></li>
       </ul>
       <div id="nearbyusers">
-        <%= render :partial => "contact", :collection => nearby, :locals => {:type => "nearby mapper"} %>
+        <%= render :partial => "contact", :collection => nearby, :locals => { :type => "nearby mapper" } %>
       </div>
     <% end %>
   </div>
       </div>
     <% end %>
   </div>
index a836c859020a3d3526d538d60718ba4d4b58735a..acd617653df630fd4c620a1316195216affdd71d 100644 (file)
@@ -7,7 +7,7 @@
   <div class='header-illustration new-user-terms'></div>
 <% end %>
 
   <div class='header-illustration new-user-terms'></div>
 <% end %>
 
-<%= form_tag({:action => "save"}, { :class => " inner22 standard-form fillL" }) do %>
+<%= form_tag({ :action => "save" }, { :class => " inner22 standard-form fillL" }) do %>
   <!-- legale is <%= @legale %> -->
   <div class='form-row horizontal-list'>
     <label class="standard-label">
   <!-- legale is <%= @legale %> -->
   <div class='form-row horizontal-list'>
     <label class="standard-label">
@@ -33,7 +33,7 @@
       <%= check_box('user', 'consider_pd') %>
       <%= t '.consider_pd' %>
     </label>
       <%= check_box('user', 'consider_pd') %>
       <%= t '.consider_pd' %>
     </label>
-    <span class="minorNote">(<%= link_to(t('.consider_pd_why'), t('.consider_pd_why_url'), :target => :new)%>)</span>
+    <span class="minorNote">(<%= link_to(t('.consider_pd_why'), t('.consider_pd_why_url'), :target => :new) %>)</span>
 
     <%= hidden_field_tag('referer', h(params[:referer])) unless params[:referer].nil? %>
 
 
     <%= hidden_field_tag('referer', h(params[:referer])) unless params[:referer].nil? %>