mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-12 11:06:30 +00:00
stylistic changes
This commit is contained in:
parent
ac0edc0a41
commit
d29186bf8f
2 changed files with 3 additions and 5 deletions
|
@ -4,9 +4,7 @@ import jester, karax/vdom
|
||||||
import ".."/[types, api], ../views/[embed, tweet, general]
|
import ".."/[types, api], ../views/[embed, tweet, general]
|
||||||
import router_utils
|
import router_utils
|
||||||
|
|
||||||
export api, embed, vdom
|
export api, embed, vdom, tweet, general, router_utils
|
||||||
export tweet, general
|
|
||||||
export router_utils
|
|
||||||
|
|
||||||
proc createEmbedRouter*(cfg: Config) =
|
proc createEmbedRouter*(cfg: Config) =
|
||||||
router embed:
|
router embed:
|
||||||
|
@ -26,7 +24,7 @@ proc createEmbedRouter*(cfg: Config) =
|
||||||
if convo == nil or convo.tweet == nil:
|
if convo == nil or convo.tweet == nil:
|
||||||
resp Http404
|
resp Http404
|
||||||
|
|
||||||
resp $renderEmbeddedTweet(convo.tweet, cfg, request, prefs, path)
|
resp $renderTweetEmbed(convo.tweet, prefs, path, cfg, request)
|
||||||
|
|
||||||
get "/embed/Tweet.html":
|
get "/embed/Tweet.html":
|
||||||
let id = @"id"
|
let id = @"id"
|
||||||
|
|
|
@ -356,7 +356,7 @@ proc renderTweet*(tweet: Tweet; prefs: Prefs; path: string; class=""; index=0;
|
||||||
a(class="show-thread", href=("/i/status/" & $tweet.threadId)):
|
a(class="show-thread", href=("/i/status/" & $tweet.threadId)):
|
||||||
text "Show this thread"
|
text "Show this thread"
|
||||||
|
|
||||||
proc renderEmbeddedTweet*(tweet: Tweet; cfg: Config; req: Request; prefs: Prefs; path: string): VNode =
|
proc renderTweetEmbed*(tweet: Tweet; prefs: Prefs; path: string; cfg: Config; req: Request): VNode =
|
||||||
buildHtml(tdiv(class="tweet-embed")):
|
buildHtml(tdiv(class="tweet-embed")):
|
||||||
renderHead(prefs, cfg, req)
|
renderHead(prefs, cfg, req)
|
||||||
renderTweet(tweet, prefs, path, mainTweet=true)
|
renderTweet(tweet, prefs, path, mainTweet=true)
|
||||||
|
|
Loading…
Reference in a new issue