]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notifier/changeset_comment_notification.html.erb
Remove HTML markup from locale file
[rails.git] / app / views / notifier / changeset_comment_notification.html.erb
index d7bedad6375a8f76919c95b8c2ae8dc72ae55c2a..6bb1b68115e5f146c344d32619c9b654585a0dd3 100644 (file)
                     <td style="text-align: left; padding: 15px 15px 5px 15px">
                       <p style="margin: 0">
                         <% if @owner %>
-                          <%= t "notifier.changeset_comment_notification.commented.your_changeset_html", :commenter => @commenter, :commenter_url => @commenter_url, :time => @time %>
+                          <%= raw t "notifier.changeset_comment_notification.commented.your_changeset", :commenter => link_to_user(@commenter), :time => @time %>
                         <% else %>
-                          <%= t "notifier.changeset_comment_notification.commented.commented_changeset_html", :commenter => @commenter, :commenter_url => @commenter_url, :time => @time, :changeset_author => @changeset_author %>
+                          <%= raw t "notifier.changeset_comment_notification.commented.commented_changeset", :commenter => link_to_user(@commenter), :time => @time, :changeset_author => @changeset_author %>
                         <% end %>
                         <% if @changeset_comment %>
-                          <%= t "notifier.changeset_comment_notification.commented.partial_changeset_with_comment_html", :changeset_comment => @changeset_comment %>
+                          <%= raw t "notifier.changeset_comment_notification.commented.partial_changeset_with_comment", :changeset_comment => content_tag("em", @changeset_comment) %>
                         <% else %>
                           <%= t "notifier.changeset_comment_notification.commented.partial_changeset_without_comment" %>
                         <% end %>
@@ -48,7 +48,7 @@
                         </tr>
                       </table>
                       <p>
-                        <%= raw t 'notifier.changeset_comment_notification.details_html', :url => link_to(@changeset_url, @changeset_url) %>
+                        <%= raw t 'notifier.changeset_comment_notification.details', :url => content_tag("nobr", link_to(@changeset_url, @changeset_url)) %>
                       </p>
                     </td>
                   </tr>
       <tr>
         <td style="text-align: center; font-size: 11px">
           <p>
-            To unsubscribe from updates to this changeset, visit
-            <nobr><a style="color: #222" href="<%= @changeset_url %>"><%= @changeset_url %></a></nobr>
-            and click 'Unsubscribe'
+            <%= raw t 'notifier.changeset_comment_notification.unsubscribe', :url => content_tag("nobr", link_to(@changeset_url, @changeset_url, :style => "color: #222")) %>
           </p>
           <p style="margin-bottom: 10px">
-            <a href="https://www.openstreetmap.org/" target="_blank" style="color: #222">OpenStreetMap.org</a>
+            <a href="<%= @root_url %>" target="_blank" style="color: #222">OpenStreetMap</a>
           </p>
         </td>
       </tr>