]> git.openstreetmap.org Git - rails.git/blob - app/views/issues/index.html.erb
Added report icon + changes to admin UI + changes to report form + few other minor...
[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><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>
23                                 <td></td>
24                         </tr>
25                 </tr>
26         </thead>
27         <tbody>
28                 <% @issues.each do |issue| %>
29                         <tr>
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>
36                         </tr>
37                 <% end %>
38         </tbody>
39 </table>
40
41