aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-05-20 10:04:53 -0400
committerSimon Ser <contact@emersion.fr>2020-05-20 17:47:52 +0200
commite4e410de1e3129fe7832e2bbe6326719c3e4d813 (patch)
tree35fc5a96f0a38dd6da2d10fbfcaf428f29ab1d96 /plugins
parentcfea0ec787af85827fcea6aa38f45e11080c2898 (diff)
downloadalps-e4e410de1e3129fe7832e2bbe6326719c3e4d813.tar.gz
alps-e4e410de1e3129fe7832e2bbe6326719c3e4d813.zip
alps theme: add contact details page
Diffstat (limited to 'plugins')
-rw-r--r--plugins/carddav/routes.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/carddav/routes.go b/plugins/carddav/routes.go
index 7660dbc..ea6030d 100644
--- a/plugins/carddav/routes.go
+++ b/plugins/carddav/routes.go
@@ -23,6 +23,7 @@ type AddressBookRenderData struct {
type AddressObjectRenderData struct {
alps.BaseRenderData
+ AddressBook *carddav.AddressBook
AddressObject AddressObject
}
@@ -95,7 +96,7 @@ func registerRoutes(p *plugin) {
return err
}
- c, err := p.client(ctx.Session)
+ c, addressBook, err := p.clientWithAddressBook(ctx.Session)
if err != nil {
return err
}
@@ -120,6 +121,7 @@ func registerRoutes(p *plugin) {
return ctx.Render(http.StatusOK, "address-object.html", &AddressObjectRenderData{
BaseRenderData: *alps.NewBaseRenderData(ctx),
+ AddressBook: addressBook,
AddressObject: AddressObject{ao},
})
})