1 <% content_for :heading do %>
2 <h1><%= t ".title", :status => @issue.status.humanize, :issue_id => @issue.id %></h1>
3 <p><%= @issue.reportable.model_name.human %> : <%= link_to reportable_title(@issue.reportable), reportable_url(@issue.reportable) %></p>
6 <%= @issue.assigned_role %>
7 <% if @issue.reports.count > 0 %>
8 | <%= t ".reports", :count => @issue.reports.count %>
10 | <%= t ".no_reports" %>
12 | <%= t ".report_created_at",
13 :datetime => l(@issue.created_at.to_datetime, :format => :friendly) %>
14 <% if @issue.resolved_at? %>
15 | <%= t ".last_resolved_at",
16 :datetime => l(@issue.resolved_at.to_datetime, :format => :friendly) %>
18 <% if @issue.user_updated %>
19 | <%= t ".last_updated_at",
20 :datetime => l(@issue.updated_at.to_datetime, :format => :friendly),
21 :displayname => @issue.user_updated.display_name %>
25 <nav class="secondary-actions">
27 <% if @issue.may_resolve? %>
28 <li><%= link_to t(".resolve"), resolve_issue_url(@issue), :method => :post %></li>
30 <% if @issue.may_ignore? %>
31 <li><%= link_to t(".ignore"), ignore_issue_url(@issue), :method => :post %></li>
33 <% if @issue.may_reopen? %>
34 <li><%= link_to t(".reopen"), reopen_issue_url(@issue), :method => :post %></li>
41 <div class="col-md-8">
42 <h3><%= t ".reports_of_this_issue" %></h3>
44 <% if @read_reports.present? %>
45 <div class="bg-light text-muted">
46 <h4><%= t ".read_reports" %></h4>
47 <%= render "reports", :reports => @read_reports %>
51 <% if @unread_reports.any? %>
53 <h4><%= t ".new_reports" %></h4>
54 <%= render "reports", :reports => @unread_reports %>
59 <% if @issue.reported_user %>
60 <div class="col-md-4">
61 <h3><%= t ".other_issues_against_this_user" %></h3>
62 <% if @related_issues.count > 1 %>
64 <% @related_issues.each do |issue| %>
65 <% if issue.id != @issue.id %>
66 <li><%= link_to reportable_title(issue.reportable), issue %></li>
71 <p><%= t ".no_other_issues" %></p>
77 <h3><%= t ".comments_on_this_issue" %></h3>
78 <%= render "comments", :comments => @comments %>