]> git.openstreetmap.org Git - rails.git/blob - app/views/issues/show.html.erb
Added authorization + issues dashboard
[rails.git] / app / views / issues / show.html.erb
1 <% content_for :heading do %>
2         <h2> Issue #<%= @issue.id %> <br/> <span class="count-number">Status: <strong><%= @issue. status %></strong></span></h2>
3         <p>Issue against: <%= reportable_url(@issue.reportable) %></p>
4         <p>Issue type: <%= @issue.reportable_type %></p>
5         <p class="deemphasize">
6                 <small>
7                         <%= @issue.reports.count %> reports | First reported: <%= l @issue.created_at.to_date, :format => :long %> | <%= "Last resolved at #{l(@issue.resolved_at.to_datetime, :format =>:long)}" if @issue.resolved? %>
8                 </small>
9         </p>
10         <p><%= link_to "Resolve", resolve_issue_url(@issue), :method => :post if @issue.may_resolve? %></p>
11         <p><%= link_to "Ignore", ignore_issue_url(@issue), :method => :post if @issue.may_ignore? %></p>
12         <p><%= link_to "Reopen", reopen_issue_url(@issue), :method => :post if @issue.may_reopen? %></p>
13 <% end %>
14
15 <h3>Reports under this issue:</h3>
16
17 <% if @read_reports.present? %>
18         <div class="read-reports">
19                 <h4>Read Reports:</h4>
20                 <%= render 'reports',reports: @read_reports %>
21         </div>
22 <% end %>       
23
24 <% if @unread_reports.any? %>
25         <div class="unread-reports">
26                 <h4>New Reports:</h4>
27                 <%= render 'reports',reports: @unread_reports %>
28         </div>
29 <% end %>