Use Karax html rendering instead of source filters (#2)

* Use Karax html rendering instead of source filters
This commit is contained in:
Zed
2019-07-11 00:42:31 +02:00
committed by GitHub
parent fad2575d93
commit ab36664ad2
21 changed files with 482 additions and 507 deletions

View File

@@ -81,12 +81,3 @@ proc cleanPos*(pos: string): string =
proc genPos*(pos: string): string =
posPrefix & pos & posSuffix
proc tabClass*(timeline: Timeline; tab: string): string =
result = '"' & "tab-item"
if timeline.query.isNone:
if tab == "tweets":
result &= " active"
elif $timeline.query.get().queryType == tab:
result &= " active"
result &= '"'