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):
|
||||
text pkg.name
|
||||
if not pkg.isAlias:
|
||||
tdiv(class="flex flex-col md:items-end items-start"):
|
||||
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:
|
||||
tdiv:
|
||||
text "alias for: "
|
||||
|
@ -50,9 +54,8 @@ proc card*(pkg: NimPackage): VNode =
|
|||
class = "link"):
|
||||
text pkg.alias
|
||||
else:
|
||||
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"):
|
||||
span(class = "md:text-xl my-2 "): text pkg.description
|
||||
tdiv(class = "flex flex-wrap text-xs md:text-md overflow-x-auto"):
|
||||
for t in pkg.tags:
|
||||
tdiv(
|
||||
onClick = setSearchUrl("tag:" & t.replace(" ", "-")),
|
||||
|
|
Loading…
Reference in a new issue