]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/_diary_comment.html.erb
Create a report_link helper, and use text instead of a flag icon
[rails.git] / app / views / diary_entry / _diary_comment.html.erb
index ae1386fb2a421f50956a5da97c6fa732aa6acc77..708bdd49d2024eb63e6b8aa7aa4b28c8eaca831b 100644 (file)
@@ -2,9 +2,7 @@
   <%= user_thumbnail diary_comment.user %>
   <p class="deemphasize comment-heading" id="comment<%= diary_comment.id %>"><%= raw(t('diary_entry.diary_comment.comment_from', :link_user => (link_to h(diary_comment.user.display_name), :controller => 'user', :action => 'view', :display_name => diary_comment.user.display_name), :comment_created_at => link_to(l(diary_comment.created_at, :format => :friendly), :anchor => "comment#{diary_comment.id}"))) %>
     <% if current_user and diary_comment.user.id != current_user.id %>
-      <%= link_to new_report_url(reportable_id: diary_comment.id, reportable_type: diary_comment.class.name), :title => t('diary_entry.diary_comment.report') do %>
-              &nbsp;&#9872;
-      <% end %>
+      | <%= report_link(t(".report"), diary_comment) %>
     <% end %>
   </p>