check if subscribers exist

This commit is contained in:
teddit 2020-11-29 22:33:35 +01:00
parent 5e33387e5b
commit c9e1ae94b7
1 changed files with 11 additions and 10 deletions

View File

@ -118,13 +118,14 @@ html
input(type="checkbox", name="nsfw", id="nsfw", checked="checked")
input(type="submit", value="search")
if sidebar_data
.content
p subscribers: #{sidebar_data.subscribers.toLocaleString()}
p users here right now: #{sidebar_data.active_user_count.toLocaleString()}
br
.heading
p.title #{sidebar_data.title}
.short-description
!= unescape(sidebar_data.public_description_html)
.description
!= unescape(sidebar_data.description_html)
if sidebar_data.subscribers
.content
p subscribers: #{sidebar_data.subscribers.toLocaleString()}
p users here right now: #{sidebar_data.active_user_count.toLocaleString()}
br
.heading
p.title #{sidebar_data.title}
.short-description
!= unescape(sidebar_data.public_description_html)
.description
!= unescape(sidebar_data.description_html)