File tree 1 file changed +16
-2
lines changed
app/templates/components/orders
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
<div class =" ui segments" >
2
- {{ #if (eq session.currentRouteName ' orders.view' )}}
2
+ {{ #if (and ( eq session.currentRouteName ' orders.view' ) ( not-eq data.status ' cancelled ' ) )}}
3
3
<div class =" ui {{ order-color data.status }} inverted segment center aligned" >
4
4
<div class =" ui inverted mini statistic horizontal" >
5
5
<div class =" value" >
38
38
<div class =" ui secondary segment" >
39
39
<h3 class =" weight-400" >{{ t ' Order Summary' }} </h3 >
40
40
</div >
41
- {{ #if (or (eq session.currentRouteName ' orders.new' ) (eq session.currentRouteName ' orders.view' ) (eq session.currentRouteName ' orders.pending' ))}}
41
+ {{ #if (and ( or (eq session.currentRouteName ' orders.new' ) (eq session.currentRouteName ' orders.view' ) (eq session.currentRouteName ' orders.pending' )) ( not-eq data.status ' cancelled ' ))}}
42
42
<table class =" ui very basic tablet stackable table order-summary center aligned" >
43
43
<thead >
44
44
<tr >
158
158
</div >
159
159
</div >
160
160
{{ /if }}
161
+ {{ #if (and (eq session.currentRouteName ' orders.view' ) (eq data.status ' cancelled' ))}}
162
+ <div class =" ui {{ order-color data.status }} inverted segment" >
163
+ <div class =" ui inverted mini statistic horizontal" >
164
+ <div class =" value" >
165
+ {{ t ' Cancelled' }}
166
+ </div >
167
+ <div class =" label" >
168
+ {{ t ' Your order has been cancelled due to some unavoidable circumstances.' }}
169
+ <br >
170
+ {{ t ' Please contact the event organizer for further details.' }}
171
+ </div >
172
+ </div >
173
+ </div >
174
+ {{ /if }}
You can’t perform that action at this time.
0 commit comments