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">
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? %>
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>
15 <h3>Reports under this issue:</h3>
17 <% if @read_reports.present? %>
18 <div class="read-reports">
19 <h4>Read Reports:</h4>
20 <%= render 'reports',reports: @read_reports %>
24 <% if @unread_reports.any? %>
25 <div class="unread-reports">
27 <%= render 'reports',reports: @unread_reports %>