From 4fb4bec5a840471064fbc5177a67e25604585bbf Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Thu, 9 Oct 2025 21:04:45 +0100 Subject: [PATCH] Allow unsharing, only show share controls for owner --- internal/conf/templates/view.tmpl.html | 15 ++++++++--- internal/notes/notes.go | 23 ++++++++++++---- internal/notes/views/views.go | 37 +++++++++++++++++++++----- 3 files changed, 60 insertions(+), 15 deletions(-) diff --git a/internal/conf/templates/view.tmpl.html b/internal/conf/templates/view.tmpl.html index 932e5fc..6e93842 100644 --- a/internal/conf/templates/view.tmpl.html +++ b/internal/conf/templates/view.tmpl.html @@ -7,15 +7,23 @@ Edit Delete +{{ if .isOwner }}

Ownership

{{if .note.Viewers}}

This note is owned by {{.note.Owner}} and is further visible to

-
+{{end}}