1 <% content_for :heading do %>
2 <h2><%= t ".title", :status => @issue.status.humanize, :issue_id => @issue.id %></h2>
3 <p><%= @issue.reportable.model_name.human %> : <%= link_to reportable_title(@issue.reportable), reportable_url(@issue.reportable) %></p>
6 <%= @issue.assigned_role %>
7 | <%= t ".reports", :count => @issue.reports.count %>
8 | <%= t ".report_created_at", :datetime => l(@issue.created_at.to_datetime, :format => :friendly) %>
9 <%= " | #{t('.last_resolved_at', :datetime => l(@issue.resolved_at.to_datetime, :format => :friendly))}" if @issue.resolved_at? %>
10 <%= " | #{t('.last_updated_at', :datetime => l(@issue.updated_at.to_datetime, :format => :friendly), :displayname => @issue.user_updated.display_name)}" if @issue.user_updated %>
14 <%= link_to t(".resolve"), resolve_issue_url(@issue), :method => :post if @issue.may_resolve? %>
15 <% if @issue.may_ignore? %>
16 | <%= link_to t(".ignore"), ignore_issue_url(@issue), :method => :post %>
19 <p><%= link_to t(".reopen"), reopen_issue_url(@issue), :method => :post if @issue.may_reopen? %></p>
23 <div class="col-md-8">
24 <h3><%= t ".reports_of_this_issue" %></h3>
26 <% if @read_reports.present? %>
27 <div class="bg-light text-muted">
28 <h4><%= t ".read_reports" %></h4>
29 <%= render "reports", :reports => @read_reports %>
33 <% if @unread_reports.any? %>
35 <h4><%= t ".new_reports" %></h4>
36 <%= render "reports", :reports => @unread_reports %>
41 <% if @issue.reported_user %>
42 <div class="col-md-4">
43 <h3><%= t ".other_issues_against_this_user" %></h3>
44 <% if @related_issues.count > 1 %>
46 <% @related_issues.each do |issue| %>
47 <% if issue.id != @issue.id %>
48 <li><%= link_to reportable_title(issue.reportable), issue %></li>
53 <p><%= t ".no_other_issues" %></p>
59 <h3><%= t ".comments_on_this_issue" %></h3>
60 <%= render "comments", :comments => @comments %>