Whitespace fixes for diary_entry erb files
This commit is contained in:
parent
3c410bcd7e
commit
0625c1effb
5 changed files with 6 additions and 7 deletions
|
@ -9,7 +9,7 @@
|
||||||
<div class="richtext"><%= diary_comment.body.to_html %></div>
|
<div class="richtext"><%= diary_comment.body.to_html %></div>
|
||||||
<% if current_user && current_user.administrator? %>
|
<% if current_user && current_user.administrator? %>
|
||||||
<span>
|
<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>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,6 +19,6 @@
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class='secondary-actions clearfix'>
|
<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>
|
<%= link_to t('.newer_comments'), { :page => @comment_pages.current.previous } if @comment_pages.current.previous %></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class='location'>
|
<fieldset class='location'>
|
||||||
<label class="standard-label"><%= t '.location' -%></label>
|
<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-row clearfix'>
|
||||||
<div class='form-column'>
|
<div class='form-column'>
|
||||||
<label class="secondary standard-label"><%= t '.latitude' -%></label>
|
<label class="secondary standard-label"><%= t '.latitude' -%></label>
|
||||||
|
|
|
@ -13,13 +13,13 @@
|
||||||
<% if @user %>
|
<% if @user %>
|
||||||
<% if @user == current_user %>
|
<% if @user == current_user %>
|
||||||
<div>
|
<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>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% if current_user %>
|
<% if current_user %>
|
||||||
<div>
|
<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>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
<% if @entries.size < @page_size -%>
|
<% if @entries.size < @page_size -%>
|
||||||
<%= t('.older_entries') %>
|
<%= t('.older_entries') %>
|
||||||
<% else -%>
|
<% else -%>
|
||||||
<%= link_to t('.older_entries'), @params.merge(:page => @page + 1 ) %>
|
<%= link_to t('.older_entries'), @params.merge(:page => @page + 1) %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
|
|
|
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
<%= render :partial => 'diary_comment', :collection => @entry.visible_comments %>
|
<%= render :partial => 'diary_comment', :collection => @entry.visible_comments %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<% if current_user %>
|
<% if current_user %>
|
||||||
<h3 id="newcomment"><%= t '.leave_a_comment' %></h3>
|
<h3 id="newcomment"><%= t '.leave_a_comment' %></h3>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue