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

19 lines
818 B
Text

.block__content.flex.alternating-color
.flex__grow
/ TODO
a href=~p"/channels/#{@channel}"
/- 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