From 79b4e252fe873177af2de8a86c24582d6af86d67 Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Sun, 7 Jan 2024 11:16:26 +0100 Subject: [PATCH] references #18 feat: add Nostr link button to meetup pages #32 Added a button to the landing-page and landing-page-event views in the meetup section. This button, when the nostr attribute contains 'npub1', links out to the corresponding Nostr page using the nostr attribute value. --- .../livewire/meetup/landing-page-event.blade.php | 11 +++++++++++ .../views/livewire/meetup/landing-page.blade.php | 9 +++++++++ 2 files changed, 20 insertions(+) diff --git a/resources/views/livewire/meetup/landing-page-event.blade.php b/resources/views/livewire/meetup/landing-page-event.blade.php index 143621f3..71531ebe 100644 --- a/resources/views/livewire/meetup/landing-page-event.blade.php +++ b/resources/views/livewire/meetup/landing-page-event.blade.php @@ -128,6 +128,17 @@ @endif +
+ @if($meetup->nostr && str($meetup->nostr)->contains('npub1')) + + + {{ __('Nostr') }} + + @endif +
@if($meetup->matrix_group) @endif + @if($meetup->nostr && str($meetup->nostr)->contains('npub1')) + + + {{ __('Nostr') }} + + @endif @if($meetup->webpage)