From 48020bb5ac63a7c2ca9cbcb136a4b6e847eee70e Mon Sep 17 00:00:00 2001 From: VnPower Date: Thu, 7 Nov 2024 20:42:30 +0700 Subject: [PATCH] Add a 'See more' button at the end of recent artworks --- assets/views/artwork.jet.html | 97 +++++++++++++++++++++-------------- 1 file changed, 58 insertions(+), 39 deletions(-) diff --git a/assets/views/artwork.jet.html b/assets/views/artwork.jet.html index e420529..fd36980 100644 --- a/assets/views/artwork.jet.html +++ b/assets/views/artwork.jet.html @@ -6,36 +6,36 @@
- -
- - {{- include "fragments/artwork" .Illust }} -
+ +
+ + {{- include "fragments/artwork" .Illust }} +
-
-
- -
-
-
- - {{- combinedUrl := "/artworks-multi/" + joinArtworkIds(.Illust.RecentWorks) }} -
- - - View all +
+
+ +
+
+
+ + {{- combinedUrl := "/artworks-multi/" + joinArtworkIds(.Illust.RecentWorks) }} +
-
{{- range .Illust.RecentWorks }} {* NOTE: indivisble col-7 to create a visible affordance *} @@ -48,25 +48,44 @@
{{- end }} + + {* See more button *} +
+ +
+
+
+ + + {{- yield Comments(data=.Illust, contentType="illust") }} +
- - {{- yield Comments(data=.Illust, contentType="illust") }} -
-
- -{{- if len(.Illust.RelatedWorks) > 0 }} -
-

Related works

- -
- {{- include "fragments/small-tn" .Illust.RelatedWorks }} + {{- if len(.Illust.RelatedWorks) > 0 }} +
+

Related works

+ +
+ {{- include "fragments/small-tn" .Illust.RelatedWorks }} +
-
-{{- end }} + {{- end }}
{{- end }}