Create a report_link helper, and use text instead of a flag icon
[rails.git] / app / views / user / view.html.erb
index be2e90b8a537f35d8ed0817e03752760df86a20f..b81d980a529e5172a36e7baf8a92ab72dc4d58a7 100644 (file)
 
           <% if current_user and @this_user.id != current_user.id %>
             <li>
-              <%= link_to new_report_url(reportable_id: @this_user.id, reportable_type: @this_user.class.name), :title => t('user.view.report') do %>
-                &nbsp;&#9872;
-              <% end %>
+              <%= report_link(t(".report"), @this_user) %>
             </li>
           <% end %>
         </ul>