aboutsummaryrefslogtreecommitdiff
path: root/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'renderer')
-rw-r--r--renderer/model.go23
-rw-r--r--renderer/renderer.go4
2 files changed, 19 insertions, 8 deletions
diff --git a/renderer/model.go b/renderer/model.go
index e7cfbfb..3862976 100644
--- a/renderer/model.go
+++ b/renderer/model.go
@@ -49,7 +49,7 @@ type SigninData struct {
}
type RootData struct {
- Title string
+ *CommonData
}
type TimelineData struct {
@@ -99,12 +99,11 @@ type NotificationData struct {
type UserData struct {
*CommonData
- User *mastodon.Account
- IsCurrent bool
- Type string
- Users []*mastodon.Account
- Statuses []*mastodon.Status
- NextLink string
+ User *mastodon.Account
+ Type string
+ Users []*mastodon.Account
+ Statuses []*mastodon.Status
+ NextLink string
}
type UserSearchData struct {
@@ -155,3 +154,13 @@ type FiltersData struct {
*CommonData
Filters []*mastodon.Filter
}
+
+type ProfileData struct {
+ *CommonData
+ User *mastodon.Account
+}
+
+type MuteData struct {
+ *CommonData
+ User *mastodon.Account
+}
diff --git a/renderer/renderer.go b/renderer/renderer.go
index 7afeb14..a88bb9e 100644
--- a/renderer/renderer.go
+++ b/renderer/renderer.go
@@ -33,6 +33,8 @@ const (
SearchPage = "search.tmpl"
SettingsPage = "settings.tmpl"
FiltersPage = "filters.tmpl"
+ ProfilePage = "profile.tmpl"
+ MutePage = "mute.tmpl"
)
type TemplateData struct {
@@ -41,7 +43,7 @@ type TemplateData struct {
}
func emojiHTML(e mastodon.Emoji, height string) string {
- return `<img class="emoji" src="` + e.URL + `" alt=":` + e.ShortCode + `:" title=":` + e.ShortCode + `:" height="` + height + `"/>`
+ return `<img class="emoji" src="` + e.URL + `" alt=":` + e.ShortCode + `:" title=":` + e.ShortCode + `:" height="` + height + `">`
}
func emojiFilter(content string, emojis []mastodon.Emoji) string {