summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/_ticket_data.html.haml
blob: fd5d3bfb234f33984895203d2142a27c9c91b4be (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
26
27
28
29
30
31
32
33
34
35
.spam12
  %b
    Created by:
  - if creator = User.find(@ticket.created_by)
    - if !creator.is_admin?
      = link_to creator.login, edit_user_path(creator)
    - else
      = creator.login
  - else
    Unauthenticated ticket creator
  - if @ticket.regarding_user
    %b
      Regarding user:
    - if regarding_user = User.find_by_login(@ticket.regarding_user)
      = link_to @ticket.regarding_user, edit_user_path(regarding_user)
    - else
      = @ticket.regarding_user + '(no such user)'
  - 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'