You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.0 KiB
24 lines
1.0 KiB
mixin renderVenueChannelListItem (channel, options)
|
|
- options = Object.assign({ baseUrl: '/venue' }, options);
|
|
div(uk-grid).uk-grid-small
|
|
.uk-width-auto
|
|
a(href= getUserProfileUrl(channel.owner), uk-tooltip=`Visit ${channel.owner.displayName || channel.owner.username}'s profile`)
|
|
+renderProfileIcon(channel.owner)
|
|
|
|
.uk-width-expand
|
|
.uk-margin-small
|
|
.uk-text-bold
|
|
a(href=`${options.baseUrl}/${channel.slug}`, uk-tooltip=`Visit ${channel.name}`)= channel.name || 'STATUS UPDATE PENDING...'
|
|
|
|
.uk-text-small.uk-text-meta
|
|
div(uk-grid).uk-grid-small.uk-grid-divider
|
|
.uk-width-expand.uk-text-truncate
|
|
+renderUserLink(channel.owner)
|
|
.uk-width-auto
|
|
if channel.currentStatus && channel.currentStatus.success
|
|
if channel.currentStatus.status === 'live'
|
|
span.uk-text-success LIVE
|
|
else
|
|
span= moment(channel.currentStatus.lastLive).fromNow()
|
|
else
|
|
span --- |