mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 12:37:58 +01:00
19 lines
No EOL
795 B
Text
19 lines
No EOL
795 B
Text
.block__content.flex.alternating-color
|
|
.flex__grow
|
|
/ TODO
|
|
a href="/"
|
|
/- 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
|
|
=> @channel.viewers
|
|
= if @channel.viewers == 1, do: "viewer", else: "viewers"
|
|
- else
|
|
span.channel-strip__state.label.label--narrow.label--danger
|
|
' OFF AIR |