1 <p id= "notice"><%= notice %></p>
3 <% content_for :heading do %>
4 <h1>List of <%= @user_role %> issues:</h1>
7 <%= form_tag(issues_path, :method => :get) do %>
8 <%= text_field_tag :search_by_user, params[:search_by_user], placeholder: "Search by Reported User" %>
9 <%= submit_tag "Search" %>
18 <td><b> Status </b></td>
19 <td><b> Number of Reports</b></td>
20 <td><b> Last updated at</b></td>
21 <td><b> Link to instance </b></td>
22 <td><b> Reported User </b></td>
28 <% @issues.each do |issue| %>
30 <td><span class="count-number"> <strong><%= issue.status %></strong></span> </td>
31 <td><%= issue.reports.count %></td>
32 <td><%= issue.updated_at.strftime('%H:%M, %m/%d/%y') %></td>
33 <td> <%= reportable_url(issue.reportable) %></td>
34 <td><%= link_to issue.user.display_name , :controller => :user, :action => :view,:display_name => issue.user.display_name %></td>
35 <td><b><%= link_to "Show Reports", issue %></b></td>