summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/_ticket_data.html.haml
blob: 3d301be1ca3970c8e22b2e6a9ce27d5d4dea9332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.spam12
  %b
    Created by:
  - if User.find(@ticket.created_by)
    = User.find(@ticket.created_by).login
  - else
    Unauthenticated ticket creator
  - if @ticket.email
    %b
      email:
    = @ticket.email
  %b
    Created at:
  = @ticket.created_at.to_s(:short)
  %b
    Updated at:
  = @ticket.updated_at.to_s(:short)
  %b
    = "Status:"
  - if @ticket.is_open
    = 'open'
    = button_to 'Close', {:post => {:is_open => false}}, :method => :put, :class => 'btn btn-small'
  - else
    = 'closed'
    = button_to 'Open', {:post => {:is_open => true}}, :method => :put, :class => 'btn btn-small'