mirror of
https://github.com/daylinmorgan/nimpkgs.git
synced 2025-01-22 06:07:33 -06:00
fix(#3): add last commit time to card
This commit is contained in:
parent
520b3b0461
commit
f8b3c959bd
1 changed files with 12 additions and 9 deletions
|
@ -42,7 +42,11 @@ proc card*(pkg: NimPackage): VNode =
|
||||||
h2(class = (textStyle & "font-black md:text-2xl text-lg font-casual").kstring):
|
h2(class = (textStyle & "font-black md:text-2xl text-lg font-casual").kstring):
|
||||||
text pkg.name
|
text pkg.name
|
||||||
if not pkg.isAlias:
|
if not pkg.isAlias:
|
||||||
|
tdiv(class="flex flex-col md:items-end items-start"):
|
||||||
pkg.projectUrl
|
pkg.projectUrl
|
||||||
|
if not pkg.deleted:
|
||||||
|
span(class="md:text-sm text-xs text-nowrap text-ctp-subtextzero"):
|
||||||
|
text "last commit: " & pkg.lastCommitTime.format("MMM d, YYYY")
|
||||||
if pkg.isAlias:
|
if pkg.isAlias:
|
||||||
tdiv:
|
tdiv:
|
||||||
text "alias for: "
|
text "alias for: "
|
||||||
|
@ -50,9 +54,8 @@ proc card*(pkg: NimPackage): VNode =
|
||||||
class = "link"):
|
class = "link"):
|
||||||
text pkg.alias
|
text pkg.alias
|
||||||
else:
|
else:
|
||||||
span(class = "md:text-xl my-2"): text pkg.description
|
span(class = "md:text-xl my-2 "): text pkg.description
|
||||||
tdiv(class = "flex flex-col text-xs md:text-lg overflow-x-auto"):
|
tdiv(class = "flex flex-wrap text-xs md:text-md overflow-x-auto"):
|
||||||
tdiv(class = "flex flex-wrap"):
|
|
||||||
for t in pkg.tags:
|
for t in pkg.tags:
|
||||||
tdiv(
|
tdiv(
|
||||||
onClick = setSearchUrl("tag:" & t.replace(" ", "-")),
|
onClick = setSearchUrl("tag:" & t.replace(" ", "-")),
|
||||||
|
|
Loading…
Reference in a new issue