]> git.ipfire.org Git - ipfire.org.git/commitdiff
talk: Make addresses clickable and open a map
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Aug 2015 20:08:25 +0000 (22:08 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Aug 2015 20:08:25 +0000 (22:08 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
templates/talk/phonebook-contact.html

index 1fa535e3ea35bea1aa72dd4af53278211c4bd803..59264474234f97dc2117ab0056a70c776764ae28 100644 (file)
                                <h4>{{ _("Postal Address") }}</h4>
                                <address>
                                        <strong>{{ account.name }}</strong><br>
-                                       {% for line in account.address.splitlines() %}
-                                               {{ line }}<br>
-                                       {% end %}
+                                       <a href="https://nominatim.openstreetmap.org/search?q={{ ", ".join(account.address.splitlines()) }}" target="_blank">
+                                               {% for line in account.address.splitlines() %}
+                                                       {{ line }}<br>
+                                               {% end %}
+                                       </a>
                                </address>
 
                                {% if account.telephone_numbers %}