File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 11import Controller from '@ember/controller' ;
2+ import moment from 'moment' ;
23import { computed } from '@ember/object' ;
34
45export default Controller . extend ( {
@@ -7,6 +8,9 @@ export default Controller.extend({
78 return this . get ( 'session.currentRouteName' ) !== 'public.index' ;
89 }
910 } ) ,
11+ displayEndDate : computed ( 'model.startsAtDate' , 'model.endsAtDate' , function ( ) {
12+ return ! moment ( this . model . startsAtDate ) . isSame ( this . model . endsAtDate , 'minute' ) ;
13+ } ) ,
1014 actions : {
1115 toggleMenu ( ) {
1216 this . toggleProperty ( 'isMenuOpen' ) ;
Original file line number Diff line number Diff line change 7373 margin : 0 ;
7474 }
7575
76+ .event.time.ends {
77+ font-size : 1.25rem ;
78+ margin : 0 ;
79+ }
80+
81+
7682 .event.location {
7783 font-size : 1.5rem ;
7884 margin : 0 ;
9197 font-size : 1.25rem ;
9298 }
9399
100+ .event.time.ends {
101+ font-size : 1.15rem ;
102+ }
103+
94104 .event.location {
95105 font-size : 1.25rem ;
96106 }
Original file line number Diff line number Diff line change 1212 <div class =" one wide column" ></div >
1313 <div class =" fifteen wide column" >
1414 <h4 class =" event time" >{{ header-date model.startsAt model.timezone }} </h4 >
15+ {{ #if displayEndDate }}
16+ <h5 class =" event time ends" >{{ t ' To' }} {{ header-date model.endsAt model.timezone }} </h5 >
17+ {{ /if }}
1518 <h1 class =" event name" >{{ model.name }} </h1 >
1619 <h4 class =" event location" ><i class =" marker icon" ></i >{{ model.locationName }} </h4 >
1720 </div >
You can’t perform that action at this time.
0 commit comments