]> git.openstreetmap.org Git - rails.git/blob - app/views/notifier/changeset_comment_notification.html.erb
Simplified the partial layout
[rails.git] / app / views / notifier / changeset_comment_notification.html.erb
1 <p style="margin: 0">
2   <%= t'notifier.changeset_comment_notification.hi', :to_user => @to_user %>
3 </p>
4
5 <p>
6   <% if @owner %>
7     <%= raw t "notifier.changeset_comment_notification.commented.your_changeset", :commenter => link_to_user(@commenter), :time => @time %>
8   <% else %>
9     <%= raw t "notifier.changeset_comment_notification.commented.commented_changeset", :commenter => link_to_user(@commenter), :time => @time, :changeset_author => @changeset_author %>
10   <% end %>
11   <% if @changeset_comment %>
12     <%= raw t "notifier.changeset_comment_notification.commented.partial_changeset_with_comment", :changeset_comment => content_tag("em", @changeset_comment) %>
13   <% else %>
14     <%= t "notifier.changeset_comment_notification.commented.partial_changeset_without_comment" %>
15   <% end %>
16 </p>
17
18 <%= render "notifier/user_message_table", :captured => capture { %>
19   <%= @comment.to_html %>
20 <% } %>
21
22 <p>
23   <%= raw t 'notifier.changeset_comment_notification.details', :url => content_tag("nobr", link_to(@changeset_url, @changeset_url)) %>
24 </p>
25
26 <% content_for :footer do %>
27   <p>
28     <%= raw t 'notifier.changeset_comment_notification.unsubscribe', :url => content_tag("nobr", link_to(@changeset_url, @changeset_url, :style => "color: #222")) %>
29   </p>
30 <% end %>