From 91c85fb57b0bab985e20c031b0d4405ffdafb1fd Mon Sep 17 00:00:00 2001 From: perennial Date: Sat, 19 Oct 2024 23:24:19 +1100 Subject: [PATCH] finally get novels on the user home page (wip styling) --- assets/views/user.jet.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/views/user.jet.html b/assets/views/user.jet.html index 9dc1feb..8bc0be2 100644 --- a/assets/views/user.jet.html +++ b/assets/views/user.jet.html @@ -121,22 +121,24 @@ {{- if .Category == "" || .Category == "artworks" }}
{* NOTE: using sentence case here to be more consistent with the rest of our UI, even though pixiv uses title case *} -

Illustrations and manga{{ .User.CountInfo.All }}

+

Works{{ .User.CountInfo.All }}

{{ if .User.Artworks != 0 }} +

Illustrations and manga{{ .User.CountInfo.Illustrations + .User.CountInfo.Manga }}

{{- include "fragments/small-tn" .User.Artworks }}
{{- end }} - {* TODO: the following doesn't do anything; .User.Novels isn't populated unless UserArtCategory is UserArt_Novel *} {{ if .User.Novels != 0 }} +
+

Novels{{ .User.CountInfo.Novels }}

{{- range .User.Novels }}
- {{- include "fragments/novel-tn" .User.Novels }} + {{- include "fragments/novel-tn" . }}