Skip to content

Commit 228e4e2

Browse files
author
daretobedifferent18
committed
Done Changes
1 parent 160225f commit 228e4e2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

app/components/public/session-item.hbs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{{#if @session.slidesUrl}}
99
<button class="ui basic {{text-color @session.track.color 'basic' 'inverted'}} button" style={{css color=(text-color @session.track.color 'grey' 'lightgrey')}} {{action this.goToSlides}}>
1010
<i class="icon {{if this.slidesUploaded 'download' 'linkify'}}"></i>
11-
{{t (if this.slidesUploaded 'Download Slides' 'Link to Slides')}}
11+
{{if this.slidesUploaded (t 'Download Slides') (t 'Link to Slides')}}
1212
</button>
1313
{{/if}}
1414
{{#if @session.microlocation.hasVideoStream}}
@@ -33,7 +33,7 @@
3333
<div class="left floated twelve wide column">
3434
{{#if @session.startsAt}}
3535
<div class=""><i class="icon map marker alternate"></i>{{@session.microlocation.name}}</div>
36-
<div class="small text"><i class="wait icon"></i>{{general-date @session.startsAt tz=@timezone}} - {{general-date @session.endsAt tz=@timezone}}</div>
36+
<div class="small text"><i class="wait icon"></i>{{general-date @session.startsAt 'D MMM, YYYY h:mm A (z)' tz=@timezone}}</div>
3737
{{/if}}
3838
</div>
3939
{{else}}
@@ -46,7 +46,7 @@
4646
</div>
4747
<div class="left floated nine wide column">
4848
{{#each @session.speakers as |speaker|}}
49-
{{speaker.name}} {{#if (or speaker.position speaker.positionOrganisation)}}({{speaker.positionOrganisation}}){{/if}}
49+
{{speaker.name}} {{#if speaker.positionOrganisation}}({{speaker.positionOrganisation}}){{/if}}
5050
<br>
5151
{{/each}}
5252
</div>
@@ -67,9 +67,13 @@
6767
{{sanitize @session.shortAbstract}}
6868
</div>
6969
</div>
70-
{{#if (and @expanded @session.videoUrl)}}
70+
{{#if (and @expanded (or @session.slidesUrl @session.videoUrl))}}
7171
<div class="row p-4">
7272
<div class="column" style={{css display='flex' align-items='center' flex-direction='column'}}>
73+
{{#if (or this.pdfLink this.pptLink)}}
74+
<iframe title="session-slides" class="slide-iframe mb-2" width="100%" frameborder="0" src="https://docs.google.com/gview?url={{ @session.slidesUrl }}&embedded=true"></iframe>
75+
{{/if}}
76+
7377
{{#if this.youtubeLink}}
7478
<iframe title="youtube-session-video" class="video-iframe" width="100%" src="https://www.youtube.com/embed/{{ this.youtubeLink }}" frameborder="0" allowfullscreen></iframe>
7579
{{else if @session.videoUrl}}

0 commit comments

Comments
 (0)