]> git.openstreetmap.org Git - rails.git/blob - app/views/issues/index.html.erb
Added Issue Type + Issue Reassigning + Last updated_by
[rails.git] / app / views / issues / index.html.erb
1 <p id= "notice"><%= notice %></p>
2
3 <% content_for :heading do %>
4         <h1>List of <%= @user_role %> issues:</h1>
5 <% end %>
6
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" %>
10 <% end %>
11 <br/>
12 <br/>
13
14 <table>
15         <thead>
16                 <tr>
17                         <tr>
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>
25                         </tr>
26                 </tr>
27         </thead>
28         <tbody>
29                 <% @issues.each do |issue| %>
30                         <tr>
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>
38                         </tr>
39                 <% end %>
40         </tbody>
41 </table>
42
43