<%= notice %>

<% content_for :heading do %>

List of existing Issues:

<% end %> <%= form_tag(issues_path, :method => :get) do %> <%= text_field_tag :search_by_user, params[:search_by_user], placeholder: "Search by Reported User" %> <%= submit_tag "Search" %> <% end %>

<% @issues.each do |issue| %> <% end %>
# Issue Type Status Number of Reports Link to instance Reported User
Issue #<%= issue.id %> <%= issue.reportable_type %> <%= issue.status %> <%= issue.reports.count %> <%= reportable_url(issue.reportable) %> <%= link_to issue.user.display_name , :controller => :user, :action => :view,:display_name => issue.user.display_name %> <%= link_to "Show Issue", issue %>