Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 09:54:24 +01:00

Introduce new button for OpenStreetMap URL

This commit is contained in:
Panagiotis "Ivory" Vasilopoulos 2023-07-20 16:46:25 +02:00
parent 56a028ec96
commit 852317b467

View file

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