1 <% content_for :heading do %>
4 <%= @issue.reportable.model_name.human %> :
5 <%= link_to reportable_title(@issue.reportable), reportable_url(@issue.reportable) %> :
6 <%= reportable_dates(@issue.reportable) %>
8 <p class="text-body-secondary">
10 <%= @issue.assigned_role %>
11 <% if @issue.reports.count > 0 %>
12 | <%= t ".reports", :count => @issue.reports.count %>
14 | <%= t ".no_reports" %>
16 | <%= t ".report_created_at_html",
17 :datetime => tag.time(l(@issue.created_at.to_datetime, :format => :friendly),
18 :datetime => @issue.created_at.xmlschema) %>
19 <% if @issue.resolved_at? %>
20 | <%= t ".last_resolved_at_html",
21 :datetime => tag.time(l(@issue.resolved_at.to_datetime, :format => :friendly),
22 :datetime => @issue.resolved_at.xmlschema) %>
24 <% if @issue.user_updated %>
25 | <%= t ".last_updated_at_html",
26 :datetime => tag.time(l(@issue.updated_at.to_datetime, :format => :friendly),
27 :datetime => @issue.updated_at.xmlschema),
28 :displayname => link_to(@issue.user_updated.display_name, @issue.user_updated) %>
32 <nav class="secondary-actions">
34 <% if @issue.may_resolve? %>
35 <li><%= link_to t(".resolve"), resolve_issue_url(@issue), :method => :post %></li>
37 <% if @issue.may_ignore? %>
38 <li><%= link_to t(".ignore"), ignore_issue_url(@issue), :method => :post %></li>
40 <% if @issue.may_reopen? %>
41 <li><%= link_to t(".reopen"), reopen_issue_url(@issue), :method => :post %></li>
48 <div class="col-md-8">
49 <h3><%= t ".reports_of_this_issue" %></h3>
51 <% if @read_reports.present? %>
52 <div class="bg-body-tertiary text-body-secondary">
53 <h4><%= t ".read_reports" %></h4>
54 <%= render "reports", :reports => @read_reports %>
58 <% if @unread_reports.any? %>
60 <h4><%= t ".new_reports" %></h4>
61 <%= render "reports", :reports => @unread_reports %>
66 <% if @issue.reported_user %>
67 <div class="col-md-4">
68 <h3><%= t ".other_issues_against_this_user" %></h3>
69 <% if @related_issues.count > 1 %>
71 <% @related_issues.each do |issue| %>
72 <% if issue.id != @issue.id %>
73 <li><%= link_to reportable_title(issue.reportable), issue %></li>
78 <p><%= t ".no_other_issues" %></p>
84 <h3><%= t ".comments_on_this_issue" %></h3>
85 <%= render "comments", :comments => @comments %>