mirror of
https://codeberg.org/tacerus/teddit.git
synced 2025-01-09 12:52:32 +01:00
fix an issue when sidebar data is missing
This commit is contained in:
parent
6b34c55109
commit
8336a3d424
@ -117,13 +117,14 @@ html
|
||||
label(for="nsfw") include NSFW results
|
||||
input(type="checkbox", name="nsfw", id="nsfw", checked="checked")
|
||||
input(type="submit", value="search")
|
||||
.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
|
||||
.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)
|
||||
|
Loading…
Reference in New Issue
Block a user