fluoride: Use target=_blank for user field links

This commit is contained in:
r 2022-03-30 17:12:53 +00:00
parent 153f4a492b
commit c36314fe7f
2 changed files with 8 additions and 4 deletions

View File

@ -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++) { for (var j = 0; j < links.length; j++) {
links[j].target = "_blank"; links[j].target = "_blank";
} }

View File

@ -131,9 +131,13 @@
<div class="user-profile-decription"> <div class="user-profile-decription">
{{EmojiFilter .User.Note .User.Emojis | Raw}} {{EmojiFilter .User.Note .User.Emojis | Raw}}
</div> </div>
{{if .User.Fields}}{{range .User.Fields}} {{if .User.Fields}}
<div class="user-fields">
{{range .User.Fields}}
<div>{{.Name}} - {{.Value | Raw}}</div> <div>{{.Name}} - {{.Value | Raw}}</div>
{{end}}{{end}} {{end}}
</div>
{{end}}
</div> </div>
</div> </div>