File tree Expand file tree Collapse file tree 5 files changed +85
-0
lines changed Expand file tree Collapse file tree 5 files changed +85
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ export default class SessionsRoute extends Route {
10
10
} ,
11
11
sort : {
12
12
refreshModel : true
13
+ } ,
14
+ track : {
15
+ refreshModel : true
16
+ } ,
17
+ room : {
18
+ refreshModel : true
13
19
}
14
20
} ;
15
21
@@ -66,6 +72,30 @@ export default class SessionsRoute extends Route {
66
72
} ) ;
67
73
}
68
74
75
+ if ( params . track ) {
76
+ filterOptions . push ( {
77
+ name : 'track' ,
78
+ op : 'has' ,
79
+ val : {
80
+ name : 'name' ,
81
+ op : 'eq' ,
82
+ val : params . track
83
+ }
84
+ } ) ;
85
+ }
86
+
87
+ if ( params . room ) {
88
+ filterOptions . push ( {
89
+ name : 'microlocation' ,
90
+ op : 'has' ,
91
+ val : {
92
+ name : 'name' ,
93
+ op : 'eq' ,
94
+ val : params . room
95
+ }
96
+ } ) ;
97
+ }
98
+
69
99
return {
70
100
event : eventDetails ,
71
101
session : await this . infinity . model ( 'session' , {
Original file line number Diff line number Diff line change 8
8
@import ' scheduler' ;
9
9
@import ' infinity-loader' ;
10
10
@import ' track-item' ;
11
+ @import ' extras' ;
Original file line number Diff line number Diff line change
1
+ a .link-item {
2
+ color : #333 ;
3
+ display : table ;
4
+
5
+ & .active {
6
+ background-color : rgba (0 , 0 , 0 , .05 );
7
+ }
8
+
9
+ & :hover {
10
+ background-color : rgba (0 , 0 , 0 , .025 );
11
+ }
12
+ }
Original file line number Diff line number Diff line change 45
45
padding : 0 !important ;
46
46
}
47
47
48
+ .p-1 {
49
+ padding : .25rem !important ;
50
+ }
51
+
48
52
.p-4 {
49
53
padding : 1rem !important ;
50
54
}
73
77
margin-bottom : .5rem !important ;
74
78
}
75
79
80
+ .mb-1 {
81
+ margin-bottom : .25rem !important ;
82
+ }
83
+
76
84
.ml-auto {
77
85
margin-left : auto !important ;
78
86
}
Original file line number Diff line number Diff line change 43
43
</div >
44
44
<div class =" three wide column" >
45
45
{{ #if (not-eq this.session.currentRouteName ' public.cfs.new-speaker' )}}
46
+ {{ #if (eq this.session.currentRouteName ' public.sessions' )}}
47
+ <div class =" ui basic segment" >
48
+ <h4 >
49
+ {{ t ' Tracks' }}
50
+ <LinkTo @route =" public.sessions" @models ={{ array this.model.id }} @query ={{ hash track =null }} data-tooltip =" {{ t ' Clear Track Filter' }} " >
51
+ <i class =" minus circle icon" style ={{ css color =' #f00' }} ></i >
52
+ </LinkTo >
53
+ </h4 >
54
+ {{ #each this.model.tracks as |track |}}
55
+ <LinkTo
56
+ class =" p-1 mb-1 rounded-default link-item {{ if (eq this.params.track track.name ) ' active' }} "
57
+ @route =" public.sessions"
58
+ @models ={{ array this.model.id }}
59
+ @query ={{ hash track =track.name }} >
60
+ <i class =" circle icon" style ={{ css color =track.color }} ></i > {{ track.name }}
61
+ </LinkTo >
62
+ {{ /each }}
63
+ <h4 >
64
+ {{ t ' Rooms' }}
65
+ <LinkTo @route =" public.sessions" @models ={{ array this.model.id }} @query ={{ hash room =null }} data-tooltip =" {{ t ' Clear Room Filter' }} " >
66
+ <i class =" minus circle icon" style ={{ css color =' #f00' }} ></i >
67
+ </LinkTo >
68
+ </h4 >
69
+ {{ #each this.model.microlocations as |room |}}
70
+ <LinkTo
71
+ class =" p-1 mb-1 rounded-default link-item {{ if (eq this.params.room room.name ) ' active' }} "
72
+ @route =" public.sessions"
73
+ @models ={{ array this.model.id }}
74
+ @query ={{ hash room =room.name }} >
75
+ <i class =" circle icon" ></i > {{ room.name }}
76
+ </LinkTo >
77
+ {{ /each }}
78
+ </div >
79
+ {{ /if }}
46
80
<Public::SocialLinks @externalUrl ={{ this.model.externalEventUrl }} @socialLinks ={{ this.model.socialLinks }} />
47
81
{{ /if }}
48
82
</div >
You can’t perform that action at this time.
0 commit comments