mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Use Karax html rendering instead of source filters (#2)
* Use Karax html rendering instead of source filters
This commit is contained in:
parent
fad2575d93
commit
ab36664ad2
21 changed files with 482 additions and 507 deletions
|
|
@ -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 &= '"'
|
||||
|
|
|
|||
Loading…
Reference in a new issue