aboutsummaryrefslogtreecommitdiff
path: root/themes/sourcehut
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-02-27 12:17:23 +0100
committerSimon Ser <contact@emersion.fr>2020-02-27 12:17:23 +0100
commit89149b38c8d10d4db457614450517e4ab6d57062 (patch)
tree0ef58d1e264a9c48b74a55a1bf034598c9cd941f /themes/sourcehut
parent62853a933e7445d68a8ab0fc144e716afc3baa44 (diff)
downloadalps-89149b38c8d10d4db457614450517e4ab6d57062.tar.gz
alps-89149b38c8d10d4db457614450517e4ab6d57062.zip
plugins/carddav: use paths instead of UIDs in URLs
Diffstat (limited to 'themes/sourcehut')
-rw-r--r--themes/sourcehut/address-book.html5
-rw-r--r--themes/sourcehut/address-object.html2
2 files changed, 2 insertions, 5 deletions
diff --git a/themes/sourcehut/address-book.html b/themes/sourcehut/address-book.html
index 666e08a..c5600d6 100644
--- a/themes/sourcehut/address-book.html
+++ b/themes/sourcehut/address-book.html
@@ -37,10 +37,7 @@
<ul class="nav flex-column">
{{range .AddressObjects}}
<li class="nav-item">
- <a
- class="nav-link"
- href="/contacts/{{.Card.Value "UID" | pathescape}}"
- >{{.Card.Value "FN"}}</a>
+ <a class="nav-link" href="{{.URL}}">{{.Card.Value "FN"}}</a>
</li>
{{end}}
</ul>
diff --git a/themes/sourcehut/address-object.html b/themes/sourcehut/address-object.html
index b664f62..1ab445f 100644
--- a/themes/sourcehut/address-object.html
+++ b/themes/sourcehut/address-object.html
@@ -13,7 +13,7 @@
</li>
<li class="nav-item">
<a class="nav-link"
- href="/contacts/{{.AddressObject.Card.Value "UID" | pathescape}}/edit"
+ href="{{.AddressObject.URL}}/edit"
>Edit</a>
</li>
<li class="mr-auto d-none d-sm-flex"></li>