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