mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-15 02:45:09 +00:00
Show followers not available message instead of 0
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user