def index
@issue = Issue.visible_to(current_user).find(params[:issue_id])
+
+ user_ids = @issue.reports.order(:created_at => :desc).pluck(:user_id).uniq
+ @unique_reporters = {
+ @issue.id => {
+ :count => user_ids.size,
+ :users => User.in_order_of(:id, user_ids)
+ }
+ }
rescue ActiveRecord::RecordNotFound
redirect_to :controller => "/errors", :action => "not_found"
end
+<% content_for :heading do %>
+ <h1><%= t ".title", :issue_id => @issue.id %></h1>
+<% end %>
+
+<%= render :partial => "reporters", :locals => { :issue => @issue } %>
diary_comment: "%{entry_title}, comment #%{comment_id}"
note: "Note #%{note_id}"
reporters:
+ index:
+ title: "Issue #%{issue_id} Reporters"
reporters:
more_reporters: "and %{count} more"
issue_comments: