% content_for :sidebar do %>
<%= label_tag l(:field_status) %>: <%= @issue.status.name %>
<% if !@issue.disabled_core_fields.include?('assigned_to_id') && @issue.assigned_to.present? %><%= label_tag l(:field_assigned_to) %>: <%= (@issue.assigned_to ? @issue.assigned_to.name : "-") %>
<% end %> <% if RedmineHelpdesk.public_spent_time? && @total_spent_hours.to_i > 0 %><%= label_tag l(:label_spent_time) %>: <%= l_hours(@total_spent_hours) %>
<% end %> <% if RedmineHelpdesk.public_spent_time? && !@issue.estimated_hours.blank? %><%= label_tag l(:field_estimated_hours) %>: <%= l_hours(@issue.estimated_hours) %>
<% end %> <% if @issue.attachments.any? %><%= link_to "##{previous_ticket.id} - #{previous_ticket.subject} (#{previous_ticket.status.name})", public_ticket_path(previous_ticket.helpdesk_ticket, :hash => previous_ticket.helpdesk_ticket.token), :class => "#{previous_ticket.css_classes}#{' selected' if previous_ticket.id == @issue.id}"%>
<% end %> <% end %> <% end %>