|
@@ -53,6 +53,7 @@
|
|
|
#end proc
|
|
#end proc
|
|
|
#
|
|
#
|
|
|
#proc renderTimeline*(timeline: Timeline; profile: Profile; beginning: bool): string =
|
|
#proc renderTimeline*(timeline: Timeline; profile: Profile; beginning: bool): string =
|
|
|
|
|
+#var retweets: Tweets
|
|
|
<div id="tweets">
|
|
<div id="tweets">
|
|
|
#if profile.protected:
|
|
#if profile.protected:
|
|
|
<div class="timeline-protected">
|
|
<div class="timeline-protected">
|
|
@@ -60,18 +61,20 @@
|
|
|
<p class="timeline-protected-explanation">Only confirmed followers have access to @${profile.username}'s Tweets.</p>
|
|
<p class="timeline-protected-explanation">Only confirmed followers have access to @${profile.username}'s Tweets.</p>
|
|
|
</div>
|
|
</div>
|
|
|
#end if
|
|
#end if
|
|
|
|
|
+ #
|
|
|
#if not beginning:
|
|
#if not beginning:
|
|
|
<div class="show-more status-el">
|
|
<div class="show-more status-el">
|
|
|
<a href="/${profile.username}">Load newest tweets</a>
|
|
<a href="/${profile.username}">Load newest tweets</a>
|
|
|
</div>
|
|
</div>
|
|
|
#end if
|
|
#end if
|
|
|
- #var retweets: Tweets
|
|
|
|
|
|
|
+ #
|
|
|
#for tweet in timeline.tweets:
|
|
#for tweet in timeline.tweets:
|
|
|
- #if tweet in retweets: continue
|
|
|
|
|
- #elif tweet.retweetBy.isSome: retweets.add tweet
|
|
|
|
|
- #end if
|
|
|
|
|
- ${renderTweet(tweet, "timeline-tweet")}
|
|
|
|
|
|
|
+ #if tweet in retweets: continue
|
|
|
|
|
+ #elif tweet.retweetBy.isSome: retweets.add tweet
|
|
|
|
|
+ #end if
|
|
|
|
|
+ ${renderTweet(tweet, "timeline-tweet")}
|
|
|
#end for
|
|
#end for
|
|
|
|
|
+ #
|
|
|
#if timeline.hasMore:
|
|
#if timeline.hasMore:
|
|
|
<div class="show-more">
|
|
<div class="show-more">
|
|
|
<a href="/${profile.username}?after=${timeline.minId}">Load older tweets</a>
|
|
<a href="/${profile.username}?after=${timeline.minId}">Load older tweets</a>
|
|
@@ -81,6 +84,7 @@
|
|
|
<h2 class="timeline-end" style="text-align: center;">No more tweets.</h2>
|
|
<h2 class="timeline-end" style="text-align: center;">No more tweets.</h2>
|
|
|
</div>
|
|
</div>
|
|
|
#end if
|
|
#end if
|
|
|
|
|
+ #
|
|
|
#if timeline.tweets.len == 0:
|
|
#if timeline.tweets.len == 0:
|
|
|
<div class="timeline-protected">
|
|
<div class="timeline-protected">
|
|
|
<h2 class="timeline-protected-header" style="text-align: center;">No tweets found.</h2>
|
|
<h2 class="timeline-protected-header" style="text-align: center;">No tweets found.</h2>
|