mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-14 08:49:23 +02:00
fluoride: Use target=_blank for user field links
This commit is contained in:
parent
153f4a492b
commit
c36314fe7f
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>{{.Name}} - {{.Value | Raw}}</div>
|
<div class="user-fields">
|
||||||
{{end}}{{end}}
|
{{range .User.Fields}}
|
||||||
|
<div>{{.Name}} - {{.Value | Raw}}</div>
|
||||||
|
{{end}}
|
||||||
|
</div>
|
||||||
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue