1
0
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:
Cadence Ember
2020-04-20 19:51:53 +12:00
parent a45142a02d
commit 69585a18ec
3 changed files with 17 additions and 10 deletions

View File

@@ -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)