mirror of
https://github.com/skoelle/icloud-contacts-sync.git
synced 2026-09-17 15:30:24 +00:00
ui: Gruppen-Tags auf Kontakt-Detailseite verlinken
Gruppen-Tags auf der Kontakt-Detailseite sind jetzt klickbar und führen zur Gruppensuche (/search?group=<uid>).
This commit is contained in:
@@ -644,6 +644,7 @@ def web_contact(
|
||||
"is_admin": is_admin,
|
||||
"show_all": show_all,
|
||||
"contact": contact,
|
||||
"groups": groups,
|
||||
"search": search or "",
|
||||
"custom_links": resolved_links,
|
||||
},
|
||||
|
||||
@@ -422,12 +422,12 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if contact.groups %}
|
||||
{% if groups %}
|
||||
<div class="section">
|
||||
<div class="section-title">Gruppen</div>
|
||||
<div class="tags">
|
||||
{% for group_name in contact.groups %}
|
||||
<span class="tag">{{ group_name }}</span>
|
||||
{% for g in groups %}
|
||||
<a href="/search?group={{ g.uid|urlquote }}" class="tag" style="text-decoration:none;color:inherit;">{{ g.name or '(Ohne Name)' }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user