diff options
Diffstat (limited to 'templates/note/note.php')
| -rw-r--r-- | templates/note/note.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/note/note.php b/templates/note/note.php index ddc2bac..fe28416 100644 --- a/templates/note/note.php +++ b/templates/note/note.php @@ -126,6 +126,17 @@ if ($user != null) { <span><?= __('action.share') ?></span> </button> </li> + <li> + <button data-share-url="<?= htmlspecialchars(substr_replace($note->uri, 'web+pawpub', 0, 5)) ?>" _=" + on click + set url to my @data-share-url + js(url) + navigator.share({ url: url }) + end" type="button"> + <span class="material-symbols share-windows"></span> + <span><?= __('action.share.web+pawpub') ?></span> + </button> + </li> <?php if ($note->author->isLocal && ($note->author == $user?->actor || $user?->isAdmin) && !$note->hasPage()): ?> <li> <button hx-get="/fragment/note/<?= $note->id ?>/edit" hx-target="closest .note" hx-swap="outerHTML"> |
