aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/fluoride.js2
-rw-r--r--templates/user.tmpl10
2 files changed, 8 insertions, 4 deletions
diff --git a/static/fluoride.js b/static/fluoride.js
index 6f14f86..ddf74c6 100644
--- a/static/fluoride.js
+++ b/static/fluoride.js
@@ -298,7 +298,7 @@ document.addEventListener("DOMContentLoaded", function() {
}
}
- var links = document.querySelectorAll(".user-profile-decription a");
+ var links = document.querySelectorAll(".user-profile-decription a, .user-fields a");
for (var j = 0; j < links.length; j++) {
links[j].target = "_blank";
}
diff --git a/templates/user.tmpl b/templates/user.tmpl
index fd838b9..dccce7c 100644
--- a/templates/user.tmpl
+++ b/templates/user.tmpl
@@ -131,9 +131,13 @@
<div class="user-profile-decription">
{{EmojiFilter .User.Note .User.Emojis | Raw}}
</div>
- {{if .User.Fields}}{{range .User.Fields}}
- <div>{{.Name}} - {{.Value | Raw}}</div>
- {{end}}{{end}}
+ {{if .User.Fields}}
+ <div class="user-fields">
+ {{range .User.Fields}}
+ <div>{{.Name}} - {{.Value | Raw}}</div>
+ {{end}}
+ </div>
+ {{end}}
</div>
</div>