[FEAT] Add OpenStreetMap URL to Location field in profile

Not too important, but I think that it'd be a pretty neat touch.
This commit is contained in:
Panagiotis "Ivory" Vasilopoulos 2023-07-19 21:29:19 +02:00
parent 6d164246b5
commit 64de4e02f9

View file

@ -24,7 +24,7 @@
<div class="extra content gt-word-break"> <div class="extra content gt-word-break">
<ul> <ul>
{{if .ContextUser.Location}} {{if .ContextUser.Location}}
<li>{{svg "octicon-location"}} {{.ContextUser.Location}}</li> <li>{{svg "octicon-location"}} <a href="https://www.openstreetmap.org/search?query={{.ContextUser.Location}}" rel="nofollow noreferrer">{{.ContextUser.Location}}</a></li>
{{end}} {{end}}
{{if (eq .SignedUserID .ContextUser.ID)}} {{if (eq .SignedUserID .ContextUser.ID)}}
<li> <li>