mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-12-22 11:23:33 +02:00
fluoride: Use target=_blank for user field links
This commit is contained in:
parent
153f4a492b
commit
c36314fe7f
2 changed files with 8 additions and 4 deletions
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue