Add multi-user timeline support

This commit is contained in:
Zed
2019-08-06 17:41:06 +02:00
parent 4660d23667
commit eeead99e32
8 changed files with 80 additions and 35 deletions

View File

@@ -64,4 +64,9 @@ proc renderProfile*(profile: Profile; timeline: Timeline;
renderPhotoRail(profile.username, photoRail)
tdiv(class="timeline-tab"):
renderTimeline(timeline, profile)
renderTimeline(timeline, profile.username, profile.protected)
proc renderMulti*(timeline: Timeline; usernames: string): VNode =
buildHtml(tdiv(class="multi-timeline")):
tdiv(class="timeline-tab"):
renderTimeline(timeline, usernames, false, multi=true)