Move genTopButtons to threadlist module.
This commit is contained in:
parent
ca0de4d2ae
commit
2e95d078e1
2 changed files with 16 additions and 17 deletions
|
|
@ -33,23 +33,6 @@ proc genHeader(): VNode =
|
|||
italic(class="fas fa-sign-in-alt")
|
||||
text " Log in"
|
||||
|
||||
proc genTopButtons(): VNode =
|
||||
result = buildHtml():
|
||||
section(class="navbar container grid-xl", id="main-buttons"):
|
||||
section(class="navbar-section"):
|
||||
tdiv(class="dropdown"):
|
||||
a(href="#", class="btn dropdown-toggle"):
|
||||
text "Filter "
|
||||
italic(class="fas fa-caret-down")
|
||||
ul(class="menu"):
|
||||
li: text "community"
|
||||
li: text "dev"
|
||||
button(class="btn btn-primary"): text "Latest"
|
||||
button(class="btn btn-link"): text "Most Active"
|
||||
button(class="btn btn-link"): text "Categories"
|
||||
section(class="navbar-section")
|
||||
|
||||
|
||||
var state = newState()
|
||||
|
||||
proc onThreadList(httpStatus: int, response: kstring) =
|
||||
|
|
|
|||
|
|
@ -33,6 +33,22 @@ when defined(js):
|
|||
|
||||
import karaxutils
|
||||
|
||||
proc genTopButtons*(): VNode =
|
||||
result = buildHtml():
|
||||
section(class="navbar container grid-xl", id="main-buttons"):
|
||||
section(class="navbar-section"):
|
||||
tdiv(class="dropdown"):
|
||||
a(href="#", class="btn dropdown-toggle"):
|
||||
text "Filter "
|
||||
italic(class="fas fa-caret-down")
|
||||
ul(class="menu"):
|
||||
li: text "community"
|
||||
li: text "dev"
|
||||
button(class="btn btn-primary"): text "Latest"
|
||||
button(class="btn btn-link"): text "Most Active"
|
||||
button(class="btn btn-link"): text "Categories"
|
||||
section(class="navbar-section")
|
||||
|
||||
proc genUserAvatars(users: seq[User]): VNode =
|
||||
result = buildHtml(td):
|
||||
for user in users:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue