2019-10-05 00:52:44 +02:00
|
|
|
.block__content.flex.alternating-color
|
|
|
|
.flex__grow
|
|
|
|
/ TODO
|
2024-06-06 22:28:35 +02:00
|
|
|
a href=~p"/channels/#{@channel}"
|
2019-10-05 00:52:44 +02:00
|
|
|
/- if channel.channel_image.present?
|
|
|
|
/ => image_tag channel.uploaded_channel_image.url, width: 32, height: 32, alt: "#{channel.title}'s logo'", class: 'channel-strip__image'
|
|
|
|
/- else
|
|
|
|
/ => image_tag 'no_avatar_original.svg', width: 32, height: 32, alt: "#{channel.title}'s logo'", class: 'channel-strip__image'
|
|
|
|
= @channel.title || @channel.short_name
|
|
|
|
.flex__fixed.flex__right
|
|
|
|
= if @channel.is_live do
|
|
|
|
span.channel-strip__state.label.label--narrow.label--success
|
|
|
|
' LIVE NOW
|
|
|
|
br
|
2019-10-05 00:57:42 +02:00
|
|
|
=> @channel.viewers
|
2019-10-05 00:52:44 +02:00
|
|
|
= if @channel.viewers == 1, do: "viewer", else: "viewers"
|
|
|
|
- else
|
|
|
|
span.channel-strip__state.label.label--narrow.label--danger
|
2019-12-14 18:50:30 +01:00
|
|
|
' OFF AIR
|