File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 14
14
<h1 >{ _ " Events" } <span class =" badge badge-secondary badge-pill" >{ $total |number_format} </span ></h1 >
15
15
</header >
16
16
17
- { $starUrl = explode(' *' , $.server.REQUEST_URI)}
18
- { $currentGroup = $starUrl [1]}
19
-
20
17
<div class =" row" >
21
18
<div class =" col-sm-4 col-md-3" >
22
19
<div class =" list-group" >
23
- <a class =" list-group-item list-group-item-action { tif $currentGroup == ' past' ? active} " href =" /events/*past" >Past Events</a >
24
- <a class =" list-group-item list-group-item-action { tif $currentGroup == ' upcoming' || $currentGroup == ' ' ? active} " href =" /events/*upcoming" >Upcoming Events</a >
25
- <a class =" list-group-item list-group-item-action { tif $currentGroup == ' all' ? active} " href =" /events/*all" >All Events</a >
20
+ { $requestPath = Site::$requestPath }
21
+ { $currentGroup = $requestPath [1]}
22
+ <a class =" list-group-item list-group-item-action { tif $currentGroup == ' *past' ? active} " href =" /events/*past" >Past Events</a >
23
+ <a class =" list-group-item list-group-item-action { tif $currentGroup == ' *upcoming' || ! $currentGroup ? active} " href =" /events/*upcoming" >Upcoming Events</a >
24
+ <a class =" list-group-item list-group-item-action { tif $currentGroup == ' *all' ? active} " href =" /events/*all" >All Events</a >
26
25
</div >
27
26
</div >
28
27
<div class =" col-sm-8 col-md-9" >
You can’t perform that action at this time.
0 commit comments