BTHLABS-56: _Copy share link_ button in view association page

Co-authored-by: Tomek Wójcik <labs@tomekwojcik.pl>
Co-committed-by: Tomek Wójcik <labs@tomekwojcik.pl>
This commit is contained in:
2025-09-15 06:28:38 +00:00
committed by Tomek Wójcik
parent ab84f685c0
commit d1e60babf4
7 changed files with 113 additions and 11 deletions

View File

@@ -198,12 +198,21 @@ def view(request: HttpRequest, pk: uuid.UUID) -> HttpResponse:
if is_share is True:
show_controls = show_controls and False
share_url = reverse(
'ui.associations.view',
args=(association.pk,),
query=[
('share', 'true'),
],
)
return render(
request,
'ui/associations/view.html',
{
'association': association,
'show_controls': show_controls,
'share_url': share_url,
},
)