Skip to content

Commit 91fb290

Browse files
author
DIVYAM TAYAL
authored
feat: Schedule: Show date and time in left column (#5772)
1 parent 53ce749 commit 91fb290

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

app/styles/partials/utils.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@
6161
padding-top: 0 !important;
6262
}
6363

64+
.pt-4 {
65+
padding-top: 1rem !important;
66+
}
67+
6468
.mt-4 {
6569
margin-top: 1rem !important;
6670
}

app/templates/public/sessions.hbs

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,32 @@
4646
{{/if}}
4747

4848
<div class="mt-8">
49-
{{#each this.model.session as |session|}}
50-
<Public::SessionItem @session={{session}} @event={{this.model.event}} @timezone={{this.timezone}} />
49+
{{#if this.model.session}}
50+
<table class="ui very basic table">
51+
<thead class="full-width">
52+
<tr>
53+
<th class="two wide" style="border: none;"></th>
54+
<th style="border: none;"></th>
55+
</tr>
56+
</thead>
57+
<tbody>
58+
{{#each this.model.session as |session|}}
59+
<tr>
60+
<td class="top aligned {{unless this.device.isMobile 'centered text'}}" style="border-top: none;">
61+
<h4 class="ui header {{unless this.device.isMobile 'pt-4'}}" style="color: rgba(0, 0, 0, 0.7);">
62+
{{general-date session.startsAt this.timezone 'h:mm A (z)'}}
63+
</h4>
64+
</td>
65+
<td style="border-top: none; border-left: 1px solid lightgrey">
66+
<Public::SessionItem @session={{session}} @event={{this.model.event}} @timezone={{this.timezone}} />
67+
</td>
68+
</tr>
69+
{{/each}}
70+
</tbody>
71+
</table>
5172
{{else}}
5273
<div class="ui disabled header">{{t 'No Sessions exist for this time period'}}</div>
53-
{{/each}}
74+
{{/if}}
5475
<InfinityLoader @infinityModel={{this.model.session}} @triggerOffset={{300}} @eventDebounce={{50}}>
5576
<div class="center aligned five wide column">
5677
<div class="ui loading very padded basic segment">

0 commit comments

Comments
 (0)