]> git.openstreetmap.org Git - rails.git/commitdiff
Whitespace fixes for diary_entry erb files
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 6 Mar 2019 10:02:54 +0000 (11:02 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 26 Mar 2019 20:23:35 +0000 (20:23 +0000)
app/views/diary_entries/_diary_comment.html.erb
app/views/diary_entries/comments.html.erb
app/views/diary_entries/edit.html.erb
app/views/diary_entries/index.html.erb
app/views/diary_entries/show.html.erb

index 4ac9a0f967f1950dbe6e86f98b8a9d2c1f7e5a42..2bc892a86beafdabccd4af248da83e18409183c4 100644 (file)
@@ -9,7 +9,7 @@
   <div class="richtext"><%= diary_comment.body.to_html %></div>
   <% if current_user && current_user.administrator? %>
     <span>
-      <%= link_to t('.hide_link'), hide_diary_comment_path(:display_name => diary_comment.diary_entry.user.display_name, :id => diary_comment.diary_entry.id, :comment => diary_comment.id), :method => :post, :data=> { :confirm => t('.confirm') } %>
+      <%= link_to t('.hide_link'), hide_diary_comment_path(:display_name => diary_comment.diary_entry.user.display_name, :id => diary_comment.diary_entry.id, :comment => diary_comment.id), :method => :post, :data => { :confirm => t('.confirm') } %>
     </span>
   <% end %>
 </div>
index 3960df3023758bb5f91cf5dfd1cdf7f429c0a205..31ee778a45170e7d73c94c363904ea09ae9a1575 100644 (file)
@@ -19,6 +19,6 @@
 </table>
 
 <div class='secondary-actions clearfix'>
-  <span><%= link_to t('.older_comments') , { :page => @comment_pages.current.next} if @comment_pages.current.next %>
+  <span><%= link_to t('.older_comments'), { :page => @comment_pages.current.next } if @comment_pages.current.next %>
   <%= link_to t('.newer_comments'), { :page => @comment_pages.current.previous } if @comment_pages.current.previous %></span>
 </div>
index b46dadf1cfd3dde7f8df3ec0bda403ba3b9c3edb..881a6ac84935ccd8ef0d5e71e09965f242a340e5 100644 (file)
@@ -26,7 +26,7 @@
     </fieldset>
     <fieldset class='location'>
       <label class="standard-label"><%= t '.location' -%></label>
-      <%= content_tag "div", "", :id => "map", :data => {:lat => @lat, :lon => @lon, :zoom => @zoom} %>
+      <%= content_tag "div", "", :id => "map", :data => { :lat => @lat, :lon => @lon, :zoom => @zoom } %>
       <div class='form-row clearfix'>
         <div class='form-column'>
           <label class="secondary standard-label"><%= t '.latitude' -%></label>
index 63a805b3c5be2679740e5a5b74f81142946584de..1f7a35ae3513e74796cde135125a7578de083aa1 100644 (file)
       <% if @user %>
         <% if @user == current_user %>
           <div>
-            <li><%= link_to image_tag("new.png", :class => "small_icon", :border=>0) + t('.new'), diary_new_path, {:title => t('.new_title')} %></li>
+            <li><%= link_to image_tag("new.png", :class => "small_icon", :border => 0) + t('.new'), diary_new_path, { :title => t('.new_title') } %></li>
           </div>
         <% end %>
       <% else %>
         <% if current_user %>
           <div>
-            <li><%= link_to image_tag("new.png", :class => "small_icon", :border=>0) + t('.new'), diary_new_path, {:title => t('.new_title')} %></li>
+            <li><%= link_to image_tag("new.png", :class => "small_icon", :border => 0) + t('.new'), diary_new_path, { :title => t('.new_title') } %></li>
           </div>
         <% end %>
       <% end %>
@@ -42,7 +42,7 @@
     <% if @entries.size < @page_size -%>
       <%= t('.older_entries') %>
     <% else -%>
-      <%= link_to t('.older_entries'), @params.merge(:page => @page + 1 ) %>
+      <%= link_to t('.older_entries'), @params.merge(:page => @page + 1) %>
     <% end -%>
 
     |
index 02bebc5bc0d9f277106cbebb54551cf81daecd3c..91a4c61f5d524f6f6ed4e7cbbdcae4feed25ad5f 100644 (file)
@@ -13,7 +13,6 @@
 <%= render :partial => 'diary_comment', :collection => @entry.visible_comments %>
 </div>
 
-
 <div>
   <% if current_user %>
     <h3 id="newcomment"><%= t '.leave_a_comment' %></h3>