1 <% content_for :heading do %>
2 <h2> <%= @issue.status.humanize %> Issue #<%= @issue.id %> <br/></h2>
3 <p><%= report_type(@issue.reportable_type) %> : <%= reportable_url(@issue.reportable) %></p>
4 <p class="deemphasize">
6 <%= @issue.reports.count %> reports | First reported: <%= l @issue.created_at.to_datetime, :format => :friendly %> <%= "| Last resolved at #{l(@issue.resolved_at.to_datetime, :format =>:friendly)}" if @issue.resolved_at? %> <%= "| Last updated at #{l(@issue.updated_at.to_datetime, :format => :friendly)} by #{@updated_by_admin.display_name}" if @updated_by_admin %>
10 <%= link_to t('issues.resolve'), resolve_issue_url(@issue), :method => :post if @issue.may_resolve? %>
11 <% if @issue.may_ignore? %>
12 | <%= link_to t('issues.ignore'), ignore_issue_url(@issue), :method => :post %>
15 <p><%= link_to t('issues.reopen'), reopen_issue_url(@issue), :method => :post if @issue.may_reopen? %></p>
18 <div class="report-related-block">
20 <div class="report-block">
21 <h3>Reports under this issue:</h3>
23 <% if @read_reports.present? %>
24 <div class="read-reports">
25 <h4>Read Reports:</h4>
27 <%= render 'reports',reports: @read_reports %>
31 <% if @unread_reports.any? %>
32 <div class="unread-reports">
35 <%= render 'reports',reports: @unread_reports %>
41 <div class="related-block">
42 <h3> Other issues against this user: </h3>
43 <div class="unread-reports">
44 <% if @related_issues.count > 1 %>
45 <% @related_issues.each do |issue| %>
46 <% if issue.id != @issue.id %>
47 <%= reports_url(issue) %> <br/>
51 <p>No other reports against this user!</p>
57 <h3>Comments on this issue:</h3>
58 <div class="unread-reports">
59 <%= render 'comments', comments: @comments %>