mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2026-03-02 02:41:34 +00:00
Show followers not available message instead of 0
This commit is contained in:
parent
a45142a02d
commit
69585a18ec
3 changed files with 17 additions and 10 deletions
|
|
@ -1,4 +1,4 @@
|
|||
//- Needs user, url, constants, website_origin, display_feed_validation_buttons
|
||||
//- Needs user, followerCountsAvailable, url, constants, website_origin, display_feed_validation_buttons
|
||||
|
||||
include includes/timeline_page.pug
|
||||
include includes/next_page_button.pug
|
||||
|
|
@ -50,10 +50,13 @@ html
|
|||
a(href=user.data.external_url)= user.data.external_url
|
||||
if user.posts != undefined
|
||||
div.profile-counter #[span(data-numberformat=user.posts).count #{numberFormat(user.posts)}] posts
|
||||
if user.following != undefined
|
||||
div.profile-counter #[span(data-numberformat=user.following).count #{numberFormat(user.following)}] following
|
||||
if user.followedBy != undefined
|
||||
div.profile-counter #[span(data-numberformat=user.followedBy).count #{numberFormat(user.followedBy)}] followed by
|
||||
if followerCountsAvailable
|
||||
if user.following != undefined
|
||||
div.profile-counter #[span(data-numberformat=user.following).count #{numberFormat(user.following)}] following
|
||||
if user.followedBy != undefined
|
||||
div.profile-counter #[span(data-numberformat=user.followedBy).count #{numberFormat(user.followedBy)}] followed by
|
||||
else
|
||||
div.profile-counter.not-available Followers not available.
|
||||
div.links
|
||||
if constants.settings.rss_enabled
|
||||
+feed_link("RSS", "rss", user.data.username, "application/rss+xml", display_feed_validation_buttons)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue