mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2026-03-02 02:41:34 +00:00
Private profile notice
This commit is contained in:
parent
9f5fa84f9a
commit
f5cf4b19f7
3 changed files with 54 additions and 20 deletions
|
|
@ -39,8 +39,20 @@ html
|
|||
a(rel="alternate" type="application/rss+xml" href=`/u/${user.data.username}/rss.xml`) RSS
|
||||
a(rel="noreferrer noopener" href=`https://www.instagram.com/${user.data.username}`) instagram.com
|
||||
|
||||
main#timeline.timeline
|
||||
each page, pageIndex in user.timeline.pages
|
||||
+timeline_page(page, pageIndex)
|
||||
- const hasPosts = !user.data.is_private && user.timeline.pages.length && user.timeline.pages[0].length
|
||||
main(class=hasPosts ? "" : "no-posts")#timeline.timeline
|
||||
if !user.data.is_private
|
||||
if hasPosts
|
||||
each page, pageIndex in user.timeline.pages
|
||||
+timeline_page(page, pageIndex)
|
||||
+next_page_button(user, url)
|
||||
|
||||
+next_page_button(user, url)
|
||||
else
|
||||
div
|
||||
div.page-number
|
||||
span.number No posts.
|
||||
|
||||
else
|
||||
div
|
||||
div.page-number
|
||||
span.number Profile is private.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue