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 style="text-align:center"><b> # </b> </td>
19 <td style="text-align:center"><b>Issue Type </b></td>
20 <td style="text-align:center"><b> Status </b></td>
21 <td style="text-align:center"><b> Number of Reports</b></td>
22 <td style="text-align:center"><b> Link to instance </b></td>
23 <td style="text-align:center"><b> Reported User </b></td>
24 <td style="text-align:center"></td>
29 <% @issues.each do |issue| %>
31 <td style="text-align:center">Issue #<%= issue.id %> </td>
32 <td style="text-align:center"> <%= issue.reportable_type %></td>
33 <td style="text-align:center"><span class="count-number"> <strong><%= issue.status %></strong></span> </td>
34 <td style="text-align:center"><%= issue.reports.count %></td>
35 <td style="text-align:center"> <%= reportable_url(issue.reportable) %></td>
36 <td style="text-align:center"><%= link_to issue.user.display_name , :controller => :user, :action => :view,:display_name => issue.user.display_name %></td>
37 <td style="text-align:center"><%= link_to "Show Issue", issue %></td>