63 lines
1.3 KiB
Plaintext
63 lines
1.3 KiB
Plaintext
p#notice = notice
|
|
|
|
p
|
|
strong
|
|
| Id: #
|
|
= @ticket.id
|
|
p
|
|
strong Réponse à:
|
|
= link_to @ticket.head.title, @ticket.head
|
|
|
|
p
|
|
strong State:
|
|
- if @ticket.head.state == Ticket::CLOSE
|
|
td.bg-danger = @ticket.head.state
|
|
- else
|
|
td.bg-success = @ticket.head.state
|
|
|
|
p
|
|
strong Creator:
|
|
= link_to_creator @ticket
|
|
p
|
|
strong Title:
|
|
= @ticket.title
|
|
p
|
|
strong Description:
|
|
= @ticket.description
|
|
p
|
|
strong State:
|
|
= @ticket.state
|
|
|
|
table.table.table-condensed.table-striped
|
|
thead
|
|
tr
|
|
th Creator
|
|
th Title
|
|
th Description
|
|
th Last update
|
|
th
|
|
th
|
|
th
|
|
|
|
tbody
|
|
- @ticket.tickets.each do |ticket|
|
|
tr
|
|
td = link_to_creator(ticket)
|
|
td = link_to ticket.title, ticket
|
|
td = ticket.description
|
|
- if ticket.state == Ticket::CLOSE
|
|
td.bg-danger = ticket.state
|
|
- else
|
|
td.bg-success = ticket.state
|
|
td = ticket.updated_at.to_s(:long)
|
|
td = link_to 'Show', ticket
|
|
td = link_to 'Edit', edit_ticket_path(ticket)
|
|
td = link_to 'Destroy', ticket, data: {:confirm => 'Are you sure?'}, :method => :delete
|
|
|
|
br
|
|
|
|
|
|
= link_to 'Respond', ticket_respond_path(@ticket), class: 'btn btn-sm btn-default'
|
|
= link_to 'Edit', edit_ticket_path(@ticket), class: 'btn btn-sm btn-default'
|
|
= link_to 'Back', tickets_path, class: 'btn btn-sm btn-default'
|