nitter/src/views/about.nim

26 lines
711 B
Nim
Raw Normal View History

2021-12-27 01:37:38 +00:00
# SPDX-License-Identifier: AGPL-3.0-only
import strformat
import karax/[karaxdsl, vdom], markdown
2019-09-22 23:42:00 +00:00
const
date = staticExec("git show -s --format=\"%cd\" --date=format:\"%Y.%m.%d\"")
hash = staticExec("git show -s --format=\"%h\"")
link = "https://github.com/zedeus/nitter/commit/" & hash
version = &"{date}-{hash}"
let
about = markdown(readFile("public/md/about.md"))
feature = markdown(readFile("public/md/feature.md"))
2019-09-09 02:41:20 +00:00
proc renderAbout*(): VNode =
2019-09-13 08:44:21 +00:00
buildHtml(tdiv(class="overlay-panel")):
2019-09-22 23:42:00 +00:00
verbatim about
h2: text "Instance info"
p:
text "Version "
a(href=link): text version
proc renderFeature*(): VNode =
buildHtml(tdiv(class="overlay-panel")):
verbatim feature