aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2022-03-30 17:12:53 +0000
committerr <r@freesoftwareextremist.com>2022-03-30 17:12:53 +0000
commitc36314fe7fe6ee5fa75b29930214b56c40e8e46d (patch)
treed472bf69dd29c6388a46dae7ffb46be878e46e77
parent153f4a492b92c9c25aa3bcb3d8ee1b8a72de6d69 (diff)
downloadbloat-c36314fe7fe6ee5fa75b29930214b56c40e8e46d.tar.gz
bloat-c36314fe7fe6ee5fa75b29930214b56c40e8e46d.zip
fluoride: Use target=_blank for user field links
-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>