1
1
< template name ="ticketPanel ">
2
2
< div class ="ticketPanel ">
3
- < div class ="ui segment ">
4
- {{#if currentTicket}}
5
- {{#with currentTicket}}
6
- {{#if statusIs "OPEN"}}
7
- < div class ="title ">
8
- {{constant 'TICKET_PANEL_OPEN'}}
9
- </ div >
10
- < div class ="content ">
11
- {{constant 'TICKET_PANEL_OPEN_MESSAGE'}}
12
- </ div >
13
- {{/if}}
14
- {{#if statusIs "CLAIMED"}}
15
- < div class ="title ">
16
- {{constant 'TICKET_PANEL_CLAIMED'}}
17
- </ div >
18
- < div class ="content ">
19
- {{claimName}} has claimed your ticket.
20
- < br >
21
- They're on the way!
22
- </ div >
23
- {{/if}}
3
+ {{#if queueEnabled}}
4
+ < div class ="ui segment ">
5
+ {{#if currentTicket}}
6
+ {{#with currentTicket}}
7
+ {{#if statusIs "OPEN"}}
8
+ < div class ="title ">
9
+ {{constant 'TICKET_PANEL_OPEN'}}
10
+ </ div >
11
+ < div class ="content ">
12
+ {{constant 'TICKET_PANEL_OPEN_MESSAGE'}}
13
+ </ div >
14
+ {{/if}}
15
+ {{#if statusIs "CLAIMED"}}
16
+ < div class ="title ">
17
+ {{constant 'TICKET_PANEL_CLAIMED'}}
18
+ </ div >
19
+ < div class ="content ">
20
+ {{claimName}} has claimed your ticket.
21
+ < br >
22
+ They're on the way!
23
+ </ div >
24
+ {{/if}}
24
25
25
- < br >
26
+ < br >
26
27
27
- < button class ="fluid danger push button cancel ">
28
- {{constant 'TICKET_PANEL_CANCEL'}}
29
- </ button >
30
- {{/with}}
28
+ < button class ="fluid danger push button cancel ">
29
+ {{constant 'TICKET_PANEL_CANCEL'}}
30
+ </ button >
31
+ {{/with}}
31
32
32
- {{else}}
33
+ {{else}}
33
34
34
- < div class ="title ">
35
- Hey, I'm
36
- {{#if currentUser.profile.name}}
37
- {{currentUser.profile.name}}!
38
- {{else}}
39
- {{currentUser.services.github.username}}!
40
- {{/if}}
41
- </ div >
42
- < div class ="content ">
43
- {{constant 'TICKET_PANEL_TOPIC'}}
44
- < br >
45
- < input id ="topic "
46
- type ="text "
47
- name ="topic "
48
- class ="clean "
49
- placeholder ="{{constant 'TICKET_PANEL_TOPIC_PLACEHOLDER'}} ">
50
- < br >
51
- {{constant 'TICKET_PANEL_LOCATION'}}
35
+ < div class ="title ">
36
+ Hey, I'm
37
+ {{#if currentUser.profile.name}}
38
+ {{currentUser.profile.name}}!
39
+ {{else}}
40
+ {{currentUser.services.github.username}}!
41
+ {{/if}}
42
+ </ div >
43
+ < div class ="content ">
44
+ {{constant 'TICKET_PANEL_TOPIC'}}
45
+ < br >
46
+ < input id ="topic "
47
+ type ="text "
48
+ name ="topic "
49
+ class ="clean "
50
+ placeholder ="{{constant 'TICKET_PANEL_TOPIC_PLACEHOLDER'}} ">
51
+ < br >
52
+ {{constant 'TICKET_PANEL_LOCATION'}}
53
+ < br >
54
+ < input id ="location "
55
+ type ="text "
56
+ name ="location "
57
+ class ="clean "
58
+ placeholder ="{{constant 'TICKET_PANEL_LOCATION_PLACEHOLDER'}} ">
59
+ < br >
60
+ {{constant 'TICKET_PANEL_CONTACT'}}
61
+ < br >
62
+ < input id ="contact "
63
+ type ="text "
64
+ name ="contact "
65
+ class ="clean "
66
+ placeholder ="{{constant 'TICKET_PANEL_CONTACT_PLACEHOLDER'}} ">
67
+ </ div >
52
68
< br >
53
- < input id ="location "
54
- type ="text "
55
- name ="location "
56
- class ="clean "
57
- placeholder ="{{constant 'TICKET_PANEL_LOCATION_PLACEHOLDER'}} ">
58
- < br >
59
- {{constant 'TICKET_PANEL_CONTACT'}}
60
- < br >
61
- < input id ="contact "
62
- type ="text "
63
- name ="contact "
64
- class ="clean "
65
- placeholder ="{{constant 'TICKET_PANEL_CONTACT_PLACEHOLDER'}} ">
66
- </ div >
67
- < br >
68
- < button id ="submit " class ="primary push disabled fluid button ">
69
- {{constant 'TICKET_PANEL_HELP'}}
70
- </ button >
69
+ < button id ="submit " class ="primary push disabled fluid button ">
70
+ {{constant 'TICKET_PANEL_HELP'}}
71
+ </ button >
71
72
72
- {{/if}}
73
+ {{/if}}
73
74
74
- </ div >
75
+ </ div >
76
+ {{else}}
77
+ < div class ="ui segment ">
78
+ {{constant 'TICKET_PANEL_DISABLED_MSG'}}
79
+ </ div >
80
+ {{/if}}
75
81
</ div >
76
82
</ template >
0 commit comments