.issues = render partial: 'account/submenu' .cabinet_subnav .cabinet_subnav_active span = @group.title ul - TicketsPageType.enabled.each do |page_type| li class="#{'active' if @group.try(:id) == page_type.id}" = link_to_unless_current_span page_type.title, account_tickets_path(page_type: page_type.slug) li.add_issues = link_to new_account_ticket_path span = t(:add_issue, scope: [:account, :new_ticket, :text]) .content .content_title h2 #{t(:id, scope: [:account, :new_ticket, :text])} ##{@ticket.id} .issues_chat.issues_chat_disabled - if @ticket.trash? .issues_chat_disabled_overlay .issues_chat_title class="#{@ticket.order_id.present? ? 'issues_chat_title_with_id' : ''}" .issues_chat_title_item span #{t(:status, scope: [:account, :new_ticket, :text])}: p = @ticket.state_title .issues_chat_title_item span #{t(:updated, scope: [:account, :new_ticket, :text])}: p = l @ticket.parsed_updated_at, format: TranslationCms.default_datetime_format - unless @ticket.order_id.blank? .issues_chat_title_item span Project ID: p = @ticket.order_id .issues_chat_title_item - if @ticket.from_customer? strong = t(:self, scope: [:account, :tickets]) b = @ticket.department_title - else strong = @ticket.department_title b = t(:uself, scope: [:account, :tickets]) - unless @form.blank? || @ticket.trash? = render partial: 'note_form', locals: { form: @form } .issues_chat_content - if @ticket.closed? && !@ticket.trash? .issues_chat_disabled_overlay - unless @notes.blank? = render partial: 'note', collection: @notes, locals: { tiket: @ticket } = render partial: 'note', object: @ticket, locals: { tiket: @ticket } = content_for :javascript coffee: document.addEventListener 'DOMContentLoaded', -> $('.issues_chat_message .button.button_discard') .off('click.discard_changes') .on 'click.discard_changes', (e)-> e?.preventDefault() $('.issues_chat_message textarea').val('') $('.issues_chat_message .uploader_files_list .ticket_file_item').hide() $('.issues_chat_message .uploader_files_list .delete_file').each (id, item)-> $(item).trigger('click')