]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/view.html.erb
Create a report_link helper, and use text instead of a flag icon
[rails.git] / app / views / user / view.html.erb
index 15c60beeb3ace5c7eadae4d99adb9047a3f40319..b81d980a529e5172a36e7baf8a92ab72dc4d58a7 100644 (file)
             </li>
           <% end %>
 
+          <% if current_user and @this_user.id != current_user.id %>
+            <li>
+              <%= report_link(t(".report"), @this_user) %>
+            </li>
+          <% end %>
         </ul>
 
       <% end %>
       </p>
     </div>
 
-    <% if current_user and @this_user.id != current_user.id %>
-      <div class="report-button">
-         <%= 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 %>
-      </div>
-    <% end %>
-
     <div class="user-description richtext"><%= @this_user.description.to_html %></div>
 
   </div>