]> git.openstreetmap.org Git - rails.git/blob - app/views/issues/index.html.erb
Added IssueComments + ForeignKeys + Indexes
[rails.git] / app / views / issues / index.html.erb
1 <p id= "notice"><%= notice %></p>
2
3 <% content_for :heading do %>
4         <h1>List of existing Issues:</h1>
5 <% end %>
6
7 <table>
8         <thead>
9                 <tr>
10                         <tr>
11                                 <td style="text-align:center"><b> # </b> </td>
12                                 <td style="text-align:center"><b>Issue Type </b></td>
13                                 <td style="text-align:center"><b> Status </b></td>
14                                 <td style="text-align:center"><b> Number of Reports</b></td>
15                                 <td style="text-align:center"><b> Link to instance </b></td>
16                                 <td style="text-align:center"><b> Reported User </b></td>
17                                 <td style="text-align:center"></td>
18                         </tr>
19                 </tr>
20         </thead>
21         <tbody>
22                 <% @issues.each do |issue| %>
23                         <tr>
24                                 <td style="text-align:center">Issue #<%= issue.id %> </td>
25                                 <td style="text-align:center"> <%= issue.reportable_type %></td>
26                                 <td style="text-align:center"><span class="count-number"> <strong><%= issue.status %></strong></span> </td>
27                                 <td style="text-align:center"><%= issue.reports.count %></td>
28                                 <td style="text-align:center"> <%= reportable_url(issue.reportable) %></td>
29                                 <td style="text-align:center"><%= link_to issue.user.display_name , :controller => :user, :action => :view,:display_name => issue.user.display_name %></td>
30                                 <td style="text-align:center"><%= link_to "Show Issue", issue %></td>
31                         </tr>
32                 <% end %>
33         </tbody>
34 </table>
35
36