Display "No tweets found" when appropriate

This commit is contained in:
Zed 2019-06-24 08:44:37 +02:00
parent 1927858f95
commit e81865e144
1 changed files with 5 additions and 1 deletions

View File

@ -61,7 +61,7 @@
#if profile.protected:
<div class="timeline-protected">
<h2 class="timeline-protected-header">This account's Tweets are protected.</h2>
<p class="timeline-protected-explanation">Only confirmed followers have access to @${profile.username}'s Tweets.
<p class="timeline-protected-explanation">Only confirmed followers have access to @${profile.username}'s Tweets.</p>
</div>
#end if
#if not beginning:
@ -82,6 +82,10 @@
#let id = if retweet.len > 0: retweet else: tweets[^1].id
<a href="/${profile.username}?after=${$id}">Load older tweets</a>
</div>
#else:
<div class="timeline-protected">
<h2 class="timeline-protected-header" style="text-align: center;">No tweets found.</h2>
</div>
#end if
</div>
#end proc