summaryrefslogtreecommitdiff
path: root/internal/web/tag.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/tag.go')
-rw-r--r--internal/web/tag.go18
1 files changed, 7 insertions, 11 deletions
diff --git a/internal/web/tag.go b/internal/web/tag.go
index 69591f114..5c3cd31a6 100644
--- a/internal/web/tag.go
+++ b/internal/web/tag.go
@@ -19,7 +19,6 @@ package web
import (
"context"
- "net/http"
"github.com/gin-gonic/gin"
apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model"
@@ -56,16 +55,13 @@ func (m *Module) tagGETHandler(c *gin.Context) {
return
}
- stylesheets := []string{
- assetsPathPrefix + "/Fork-Awesome/css/fork-awesome.min.css",
- distPathPrefix + "/status.css",
- distPathPrefix + "/tag.css",
+ page := apiutil.WebPage{
+ Template: "tag.tmpl",
+ Instance: instance,
+ OGMeta: apiutil.OGBase(instance),
+ Stylesheets: []string{cssFA, cssThread, cssTag},
+ Extra: map[string]any{"tagName": tagName},
}
- c.HTML(http.StatusOK, "tag.tmpl", gin.H{
- "instance": instance,
- "ogMeta": ogBase(instance),
- "tagName": tagName,
- "stylesheets": stylesheets,
- })
+ apiutil.TemplateWebPage(c, page)
}