Whitespace fixes for notifier erb views
This commit is contained in:
parent
38cfc35eb2
commit
68a5aa5ed8
6 changed files with 29 additions and 31 deletions
|
@ -1,12 +1,12 @@
|
|||
<%= t'notifier.gpx_notification.your_gpx_file' %>
|
||||
<%= t 'notifier.gpx_notification.your_gpx_file' %>
|
||||
<strong><%= @trace_name %></strong>
|
||||
<%= t'notifier.gpx_notification.with_description' %>
|
||||
<%= t 'notifier.gpx_notification.with_description' %>
|
||||
<em><%= @trace_description %></em>
|
||||
<% if @trace_tags.length>0 %>
|
||||
<%= t'notifier.gpx_notification.and_the_tags' %>
|
||||
<%= t 'notifier.gpx_notification.and_the_tags' %>
|
||||
<em><% @trace_tags.each do |tag| %>
|
||||
<%= tag.tag.rstrip %>
|
||||
<% end %></em>
|
||||
<% else %>
|
||||
<%= t'notifier.gpx_notification.and_no_tags' %>
|
||||
<%= t 'notifier.gpx_notification.and_no_tags' %>
|
||||
<% end %>
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
<tr>
|
||||
<td style="width: 50px; min-width: 50px; vertical-align: top; padding: 15px">
|
||||
<%= link_to(
|
||||
image_tag(
|
||||
attachments["avatar.png"].url,
|
||||
alt: @author,
|
||||
title: @author,
|
||||
width: 50,
|
||||
height: 50,
|
||||
border: 0
|
||||
),
|
||||
user_url(@author),
|
||||
:target => "_blank"
|
||||
) %>
|
||||
image_tag(
|
||||
attachments["avatar.png"].url,
|
||||
alt: @author,
|
||||
title: @author,
|
||||
width: 50,
|
||||
height: 50,
|
||||
border: 0
|
||||
),
|
||||
user_url(@author),
|
||||
:target => "_blank"
|
||||
) %>
|
||||
</td>
|
||||
<td style="text-align: left; vertical-align: top; padding-right: 10px; width: 100%">
|
||||
<%= body %>
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
|
||||
<% content_for :footer do %>
|
||||
<p><%= raw t '.footer',
|
||||
:readurl => link_to(@readurl, @readurl) + tag(:br),
|
||||
:commenturl => link_to(@commenturl, @commenturl) + tag(:br),
|
||||
:replyurl => link_to(@replyurl, @replyurl)
|
||||
%></p>
|
||||
:readurl => link_to(@readurl, @readurl) + tag(:br),
|
||||
:commenturl => link_to(@commenturl, @commenturl) + tag(:br),
|
||||
:replyurl => link_to(@replyurl, @replyurl) %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<p><%= t'notifier.gpx_notification.greeting' %></p>
|
||||
<p><%= t 'notifier.gpx_notification.greeting' %></p>
|
||||
|
||||
<p>
|
||||
<%= render :partial => "gpx_description" %>
|
||||
<%= t'notifier.gpx_notification.failure.failed_to_import' %>
|
||||
<%= t 'notifier.gpx_notification.failure.failed_to_import' %>
|
||||
</p>
|
||||
|
||||
<blockquote>
|
||||
|
@ -10,7 +10,7 @@
|
|||
</blockquote>
|
||||
|
||||
<p>
|
||||
<%= t'notifier.gpx_notification.failure.more_info_1' %>
|
||||
<%= t'notifier.gpx_notification.failure.more_info_2' %>
|
||||
<%= t'notifier.gpx_notification.failure.import_failures_url' %>
|
||||
<%= t 'notifier.gpx_notification.failure.more_info_1' %>
|
||||
<%= t 'notifier.gpx_notification.failure.more_info_2' %>
|
||||
<%= t 'notifier.gpx_notification.failure.import_failures_url' %>
|
||||
</p>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<p><%= t'notifier.gpx_notification.greeting' %></p>
|
||||
<p><%= t 'notifier.gpx_notification.greeting' %></p>
|
||||
|
||||
<p>
|
||||
<%= render :partial => "gpx_description" %>
|
||||
<%= t'notifier.gpx_notification.success.loaded_successfully', :trace_points => @trace_points, :possible_points => @possible_points %>
|
||||
<%= t 'notifier.gpx_notification.success.loaded_successfully', :trace_points => @trace_points, :possible_points => @possible_points %>
|
||||
</p>
|
||||
|
|
|
@ -3,9 +3,8 @@
|
|||
</p>
|
||||
<p>
|
||||
<%= raw t '.header',
|
||||
:from_user => link_to_user(@from_user),
|
||||
:subject => content_tag("em", @title)
|
||||
%>
|
||||
:from_user => link_to_user(@from_user),
|
||||
:subject => content_tag("em", @title) %>
|
||||
</p>
|
||||
|
||||
<%= message_body do %>
|
||||
|
@ -16,7 +15,6 @@
|
|||
<p>
|
||||
<%= t '.footer_html',
|
||||
:readurl => link_to(@readurl, @readurl) + tag(:br),
|
||||
:replyurl => link_to(@replyurl, @replyurl)
|
||||
%>
|
||||
:replyurl => link_to(@replyurl, @replyurl) %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue