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 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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue