mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-31 19:36:44 +01:00
Add NSFW indicator to channel strip
This commit is contained in:
parent
ce0ae607dc
commit
6d8ed2d6d5
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,10 @@
|
|||
/ => 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.nsfw do
|
||||
span title="NSFW"
|
||||
' 🔞
|
||||
'
|
||||
= if @channel.is_live do
|
||||
span.channel-strip__state.label.label--narrow.label--success
|
||||
' LIVE NOW
|
||||
|
|
Loading…
Reference in a new issue