Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enh: Adding verticle timeline to session page #4921

Closed
wants to merge 13 commits into from
27 changes: 27 additions & 0 deletions app/styles/components/track-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,30 @@
position: absolute;
top: 0;
}

.history-tl-container {
display: block;
margin: auto;
position: relative;
width: 100%;
}

.history-tl-container ul.tl li {
border-left: 1px solid rgba(86, 86, 87, .15);
list-style: none;
margin: auto;
margin-left: 55px;
min-height: 50px;
padding: 0 0 10px 10px;
position: relative;
}

ul.tl li .timestamp {
color: #3b3939;
font-size: 13px;
left: -20%;
margin-top: 15%;
position: absolute;
text-align: right;
width: 100px;
}
15 changes: 13 additions & 2 deletions app/templates/public/sessions.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,23 @@
</InfinityLoader>
{{/if}}

<div class="mt-8">

<div class="history-tl-container">
<ul class="tl">
{{#each this.model.session as |session|}}
<Public::SessionItem @session={{session}} @timezone={{this.timezone}} />
<li>
<div class="timestamp">
{{general-date session.startsAt session.event.timezone 'HH:mm'}} -
{{general-date session.endsAt session.event.timezone 'HH:mm'}}
</div>
<div class="item-title">
<Public::SessionItem @session={{session}} @timezone={{this.timezone}} />
</div>
</li>
{{else}}
<div class="ui disabled header">{{t 'No Sessions exist for this time period'}}</div>
{{/each}}
</ul>
<InfinityLoader @infinityModel={{this.model.session}} @triggerOffset={{300}} @eventDebounce={{50}}>
<div class="center aligned five wide column">
<div class="ui loading very padded basic segment">
Expand Down