]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/changeset.html.erb
Set the reported_user in a callback
[rails.git] / app / views / browse / changeset.html.erb
index 86b17aba1800e075ac303ce01046bfc181ac7b57..46d68c5d2d663ff896d8eb72fee59dc294818df0 100644 (file)
@@ -2,27 +2,22 @@
 
 <h2>
   <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
+  <%= t('browse.changeset.title', :id => @changeset.id) %>
   <% if @user and @user.id != @changeset.user.id %>
-    <div class="report-button">
-      <%= link_to new_issue_url(reportable_id: @changeset.id, reportable_type: @changeset.class.name, reported_user_id: @changeset.user.id), :title => t('browse.changeset.report') do %>
-        <%= image_tag('notice.png', size: '10x10') %>
-      <% end %>
-    </div>
+    <%= link_to new_issue_url(reportable_id: @changeset.id, reportable_type: @changeset.class.name, referer: request.fullpath), :title => t('browse.changeset.report') do %>
+        &nbsp;&#9872;
+    <% end %>
   <% end %>
-  <%= t('browse.changeset.title', :id => @changeset.id) %>
 </h2>
 
-
-
 <div class="browse-section">
   <h4><%= linkify(h(@changeset.tags['comment'].to_s.presence || t('browse.no_comment'))) %></h4>
   <div class="details"><%= changeset_details(@changeset) %></div>
 
-
   <%= render :partial => "tag_details", :object => @changeset.tags.except('comment') %>
 
   <h4 class="comments-header"><%= t('browse.changeset.discussion') %></h4>
-  
+
   <div class="buttons clearfix subscribe-buttons">
     <form action="#" class="hide_unless_logged_in">
       <% if @user and @changeset.subscribers.exists?(@user.id) %>