diff --git a/common/extend.go b/common/extend.go
index 4e3ce255..8c56931e 100644
--- a/common/extend.go
+++ b/common/extend.go
@@ -142,6 +142,7 @@ var PreRenderHooks = map[string][]func(http.ResponseWriter, *http.Request, *User
"pre_render_account_own_edit_mfa": nil,
"pre_render_account_own_edit_mfa_setup": nil,
"pre_render_account_own_edit_email": nil,
+ "pre_render_level_list": nil,
"pre_render_login": nil,
"pre_render_login_mfa_verify": nil,
"pre_render_register": nil,
diff --git a/common/template_init.go b/common/template_init.go
index 07cda49e..eeb15d3c 100644
--- a/common/template_init.go
+++ b/common/template_init.go
@@ -508,7 +508,7 @@ func InitTemplates() error {
panic("phraseNameInt is not a string")
}
// TODO: Log non-existent phrases?
- return GetTmplPhrase(phraseName)
+ return template.HTML(GetTmplPhrase(phraseName))
}
fmap["level"] = func(levelInt interface{}) interface{} {
@@ -516,7 +516,7 @@ func InitTemplates() error {
if !ok {
panic("levelInt is not an integer")
}
- return GetLevelPhrase(level)
+ return template.HTML(GetLevelPhrase(level))
}
fmap["scope"] = func(name interface{}) interface{} {
diff --git a/langs/english.json b/langs/english.json
index ae9b7b27..3ee59979 100644
--- a/langs/english.json
+++ b/langs/english.json
@@ -448,6 +448,7 @@
"account_dash_2fa_setup":"Setup your two-factor authentication.",
"account_dash_2fa_manage":"Remove or manage your two-factor authentication.",
"account_dash_security_notice":"Security",
+ "account_username_save":"Save",
"account_avatar_select":"Select",
"account_avatar_update_button":"Upload",
diff --git a/templates/account_own_edit.html b/templates/account_own_edit.html
index 106cb60d..d819b6da 100644
--- a/templates/account_own_edit.html
+++ b/templates/account_own_edit.html
@@ -9,12 +9,12 @@
-
+
-
+
diff --git a/templates/topic.html b/templates/topic.html
index 95654e75..6506ee42 100644
--- a/templates/topic.html
+++ b/templates/topic.html
@@ -75,7 +75,7 @@
{{.Topic.LikeCount}}
- {{if .Topic.Tag}}{{.Topic.Tag}}{{else}}{{level .Topic.Level}}{{end}}
+ {{if .Topic.Tag}}{{.Topic.Tag}}{{else}}{{level .Topic.Level}}{{end}}
diff --git a/templates/topic_posts.html b/templates/topic_posts.html
index 47660139..73c7b0bc 100644
--- a/templates/topic_posts.html
+++ b/templates/topic_posts.html
@@ -24,7 +24,7 @@
{{.LikeCount}}
- {{if .Tag}}{{.Tag}}{{else}}{{.Level}}{{end}}
+ {{if .Tag}}{{.Tag}}{{else}}{{.Level}}{{end}}
diff --git a/themes/tempra-simple/public/main.css b/themes/tempra-simple/public/main.css
index c7769180..8605ac25 100644
--- a/themes/tempra-simple/public/main.css
+++ b/themes/tempra-simple/public/main.css
@@ -706,6 +706,7 @@ button.username {
.level_label {
color: #505050;
opacity: 0.85;
+ float: right;
}
.level_hideable {
display: none;