From 04a12ccd911b06f129b297bff8a2200c9f634192 Mon Sep 17 00:00:00 2001 From: Azareal Date: Fri, 3 Apr 2020 12:09:43 +1000 Subject: [PATCH] save a few more bytes --- templates/forum.html | 26 +++++++++++------------ templates/panel_analytics_time_range.html | 20 ++++++++--------- templates/panel_user_edit.html | 26 +++++++++++------------ templates/profile_comments_row.html | 12 +++++------ 4 files changed, 42 insertions(+), 42 deletions(-) diff --git a/templates/forum.html b/templates/forum.html index 8455ce0c..e909b4d1 100644 --- a/templates/forum.html +++ b/templates/forum.html @@ -2,9 +2,9 @@
-{{if gt .Page 1}}{{end}} -{{if ne .LastPage .Page}}{{end}} -{{if not .CurrentUser.Loggedin}}{{end}} +{{if gt .Page 1}}{{end}} +{{if ne .LastPage .Page}}{{end}} +{{if not .CurrentUser.Loggedin}}{{end}}
@@ -15,12 +15,12 @@ {{if .CurrentUser.Perms.CreateTopic}}
-
+
{{/** TODO: Add a permissions check for this **/}} -
+
- {{else}}
{{end}} + {{else}}
{{end}}
{{end}} @@ -29,7 +29,7 @@ {{template "topics_mod_floater.html"}} {{if .CurrentUser.Perms.CreateTopic}} -
+
{{lang @@ -52,11 +52,11 @@ - {{.Title}} -
{{.Creator.Name}} + {{.Title}} +
{{.Creator.Name}} {{/** TODO: Avoid the double '|' when both .IsClosed and .Sticky are set to true. We could probably do this with CSS **/}} - {{if .IsClosed}} | 🔒︎{{end}} - {{if .Sticky}} | 📍︎{{end}} + {{if .IsClosed}} | 🔒︎{{end}} + {{if .Sticky}} | 📍︎{{end}}
{{/** TODO: Phase this out of Cosora and remove it **/}} diff --git a/templates/panel_analytics_time_range.html b/templates/panel_analytics_time_range.html index 409b84b9..9544ca67 100644 --- a/templates/panel_analytics_time_range.html +++ b/templates/panel_analytics_time_range.html @@ -1,11 +1,11 @@ - + + + + + + + + - \ No newline at end of file + \ No newline at end of file diff --git a/templates/panel_user_edit.html b/templates/panel_user_edit.html index be10b67a..fe6614dc 100644 --- a/templates/panel_user_edit.html +++ b/templates/panel_user_edit.html @@ -2,48 +2,48 @@

{{lang "panel_user_head"}}

-
-
-
+
+
+
{{if .User.RawAvatar}}{{end}}
- - - - {{if .User.RawAvatar}}{{end}} + + + + {{if .User.RawAvatar}}{{end}}
{{if .CurrentUser.Perms.EditUserPassword}}{{end}} {{if .CurrentUser.Perms.EditUserEmail}}
- {{if .ShowEmail}} - {{else}}{{end}} + {{if .ShowEmail}} + {{else}}{{end}}
{{end}} {{if .CurrentUser.Perms.EditUserGroup}}
- {{range .Groups}}{{.Name}}{{end}}
{{end}}
- +
\ No newline at end of file diff --git a/templates/profile_comments_row.html b/templates/profile_comments_row.html index 82a9c83e..33e311ac 100644 --- a/templates/profile_comments_row.html +++ b/templates/profile_comments_row.html @@ -1,18 +1,18 @@ {{/** TODO: Temporary hack until we find a more granular way of doing this. Perhaps, a custom include function? **/}} {{if .Header.Theme.BgAvatars}} {{range .ItemList}} -
+
{{.ContentHtml}} - {{.CreatedByName}}   + {{.CreatedByName}}   - {{if $.CurrentUser.IsMod}} + {{if $.CurrentUser.IsMod}} - {{end}} + {{end}} - + - {{if .Tag}}{{.Tag}}{{end}} + {{if .Tag}}{{.Tag}}{{end}}
{{end}}