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
commit ab36664ad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 &= '"'