mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-03-02 02:31:35 +00:00
fallback to number if text format is not available for counts
e.g. subscriber count, view count
This commit is contained in:
parent
b58f1515eb
commit
6186be0a13
4 changed files with 41 additions and 5 deletions
|
|
@ -22,7 +22,7 @@ block content
|
|||
img(src=thumbnail.url width=thumbnail.width height=thumbnail.height alt="").thumbnail-image
|
||||
.about
|
||||
.name= data.author
|
||||
.subscribers= data.second__subCountText || `${data.subCount} subscribers`
|
||||
.subscribers= data.second__subCountText
|
||||
+subscribe_button(data.authorId, subscribed, `/channel/${data.authorId}`).subscribe-button.base-border-look
|
||||
.description!= data.descriptionHtml
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue