philomena/lib/philomena_web/templates/activity/_channel_strip.html.slime

19 lines
795 B
Text
Raw Normal View History

2019-10-05 00:52:44 +02:00
.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
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
' OFF AIR