master
rob 2 years ago
parent fe892f20a2
commit 984f2c3b7f

@ -24,7 +24,7 @@ mixin renderPageSidebar ( )
//- Announcements //- Announcements
//- //-
if Array.isArray(announcements) && (announcements.length > 0) if Array.isArray(announcements) && (announcements.length > 0)
ul.uk-list.uk-margin ul.uk-list.uk-margin-medium
each announcement in announcements each announcement in announcements
li li
+renderAnnouncement(announcement) +renderAnnouncement(announcement)
@ -33,7 +33,7 @@ mixin renderPageSidebar ( )
//- Shing.tv Channel Integration //- Shing.tv Channel Integration
//- //-
if isLive if isLive
.uk-margin .uk-margin-medium
+renderSectionTitle('Live Now!', { +renderSectionTitle('Live Now!', {
label: 'Tune In', label: 'Tune In',
title: shingChannelStatus.name, title: shingChannelStatus.name,
@ -63,7 +63,7 @@ mixin renderPageSidebar ( )
//- Shing.tv Channel Feed //- Shing.tv Channel Feed
//- //-
if shingChannelFeed && Array.isArray(shingChannelFeed.items) && (shingChannelFeed.items.length > 0) if shingChannelFeed && Array.isArray(shingChannelFeed.items) && (shingChannelFeed.items.length > 0)
.uk-margin .uk-margin-medium
+renderSectionTitle(shingChannelFeed.title, { +renderSectionTitle(shingChannelFeed.title, {
label: 'Tune In', label: 'Tune In',
title: shingChannelFeed.title, title: shingChannelFeed.title,
@ -76,15 +76,19 @@ mixin renderPageSidebar ( )
.uk-card.uk-card-default.uk-card-small .uk-card.uk-card-default.uk-card-small
img(src= item.image.url, width="640", height="360", alt=`Thumbnail image for ${item.title}`).responsive img(src= item.image.url, width="640", height="360", alt=`Thumbnail image for ${item.title}`).responsive
.uk-card-body .uk-card-body
div(uk-grid).uk-grid-small
.uk-width-auto
img(src=`https://${dtp.services.venue.soapboxDomain}/channel/${site.shingChannelSlug}/app-icon?s=48`)
.uk-width-expand
.uk-text-bold.uk-text-truncate= item.title .uk-text-bold.uk-text-truncate= item.title
.uk-text-small= moment(item.date_modified).format("MMM DD YYYY hh:mm a") .uk-text-small= moment(item.date_modified).format("MMM DD YYYY hh:mm a")
//- .uk-text-small!= item.summary //- .uk-text-small!= item.summary
pre= JSON.stringify(item, null, 2)
//- //-
//- Gab TV channel integration //- Gab TV channel integration
//- //-
if gabTvChannel if gabTvChannel
.uk-margin .uk-margin-medium
+renderSectionTitle('Gab TV', { +renderSectionTitle('Gab TV', {
label: 'Visit Channel', label: 'Visit Channel',
title: gabTvChannel.title, title: gabTvChannel.title,
@ -99,6 +103,7 @@ mixin renderPageSidebar ( )
//- Newsroom Integration //- Newsroom Integration
//- //-
if newsfeed if newsfeed
.uk-margin-medium
+renderSectionTitle('Newsfeed', { +renderSectionTitle('Newsfeed', {
label: 'See All', label: 'See All',
title: 'Browse all news feeds', title: 'Browse all news feeds',
@ -114,7 +119,7 @@ mixin renderPageSidebar ( )
//- //-
//- Newsletter Signup //- Newsletter Signup
//- //-
div(uk-sticky={ offset: 60, bottom: '#dtp-content-grid' }, style="z-index: initial;").uk-margin div(uk-sticky={ offset: 60, bottom: '#dtp-content-grid' }, style="z-index: initial;").uk-margin-medium
+renderSectionTitle('Mailing List') +renderSectionTitle('Mailing List')
form(method="post", action="/newsletter", onsubmit="return dtp.app.submitForm(event, 'Subscribe to newsletter');").uk-form form(method="post", action="/newsletter", onsubmit="return dtp.app.submitForm(event, 'Subscribe to newsletter');").uk-form
.uk-card.uk-card-default.uk-card-small .uk-card.uk-card-default.uk-card-small

Loading…
Cancel
Save