mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-12 02:56:29 +00:00
Add description and verified to video cards
This commit is contained in:
parent
aed31b2269
commit
b8a3ffb0c4
4 changed files with 7 additions and 2 deletions
|
@ -135,6 +135,9 @@ proc parseVideo(js: JsonNode): Video =
|
||||||
with title, js{"additional_media_info", "title"}:
|
with title, js{"additional_media_info", "title"}:
|
||||||
result.title = title.getStr
|
result.title = title.getStr
|
||||||
|
|
||||||
|
with description, js{"additional_media_info", "description"}:
|
||||||
|
result.description = description.getStr
|
||||||
|
|
||||||
for v in js{"video_info", "variants"}:
|
for v in js{"video_info", "variants"}:
|
||||||
result.variants.add VideoVariant(
|
result.variants.add VideoVariant(
|
||||||
videoType: parseEnum[VideoType](v{"content_type"}.getStr("summary")),
|
videoType: parseEnum[VideoType](v{"content_type"}.getStr("summary")),
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
@include ellipsis;
|
@include ellipsis;
|
||||||
white-space: unset;
|
white-space: unset;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 1.15em;
|
font-size: 1.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-description {
|
.card-description {
|
||||||
|
|
|
@ -43,7 +43,7 @@ proc renderHead*(prefs: Prefs; cfg: Config; titleText=""; desc=""; video="";
|
||||||
let opensearchUrl = getUrlPrefix(cfg) & "/opensearch"
|
let opensearchUrl = getUrlPrefix(cfg) & "/opensearch"
|
||||||
|
|
||||||
buildHtml(head):
|
buildHtml(head):
|
||||||
link(rel="stylesheet", type="text/css", href="/css/style.css?v=6")
|
link(rel="stylesheet", type="text/css", href="/css/style.css?v=7")
|
||||||
link(rel="stylesheet", type="text/css", href="/css/fontello.css?v=2")
|
link(rel="stylesheet", type="text/css", href="/css/fontello.css?v=2")
|
||||||
|
|
||||||
if theme.len > 0:
|
if theme.len > 0:
|
||||||
|
|
|
@ -202,6 +202,8 @@ proc renderAttribution(profile: Profile): VNode =
|
||||||
buildHtml(a(class="attribution", href=("/" & profile.username))):
|
buildHtml(a(class="attribution", href=("/" & profile.username))):
|
||||||
renderMiniAvatar(profile)
|
renderMiniAvatar(profile)
|
||||||
strong: text profile.fullname
|
strong: text profile.fullname
|
||||||
|
if profile.verified:
|
||||||
|
icon "ok", class="verified-icon", title="Verified account"
|
||||||
|
|
||||||
proc renderMediaTags(tags: seq[Profile]): VNode =
|
proc renderMediaTags(tags: seq[Profile]): VNode =
|
||||||
buildHtml(tdiv(class="media-tag-block")):
|
buildHtml(tdiv(class="media-tag-block")):
|
||||||
|
|
Loading…
Reference in a new issue