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

20 lines
836 B
Text
Raw Normal View History

2019-10-05 00:52:44 +02:00
.block__content.flex.alternating-color
.flex__grow
/ TODO
2020-03-26 18:47:18 +01:00
a href=Routes.channel_path(@conn, :show, @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