diff options
| author | winter | 2024-12-24 14:42:27 +0000 |
|---|---|---|
| committer | winter | 2024-12-24 14:42:27 +0000 |
| commit | 01b7c47c68b8b3c5a9fd9137b067b34b566b951d (patch) | |
| tree | 0ddde0ad70df4e2e51115ee038646f4a093a7c43 /templates | |
| parent | 37de7e4fa175c0edc747faebddd8edccce44948e (diff) | |
ui additions
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/actor_profile.php | 6 | ||||
| -rw-r--r-- | templates/interaction_button.php | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/templates/actor_profile.php b/templates/actor_profile.php index 45a0a59..0d99d05 100644 --- a/templates/actor_profile.php +++ b/templates/actor_profile.php @@ -6,6 +6,12 @@ <div class="handle">@<?= $actor->getFullHandle() ?></div> <div class="joinedDate">Joined on <?= $actor->created->format('Y-m-d') ?></div> </div> + <div> + <?php if (!$actor->isLocal): ?> + <a class="icon material-symbols-outlined" href="<?= $actor->homepage ?>" title="Open remote profile page" + target="_blank">open_in_new</a> + <?php endif; ?> + </div> </div> <p class="bio"><?= $actor->bio ?></p> </div>
\ No newline at end of file diff --git a/templates/interaction_button.php b/templates/interaction_button.php index a1fb3b0..ed257df 100644 --- a/templates/interaction_button.php +++ b/templates/interaction_button.php @@ -12,4 +12,4 @@ $icon = match ($action) { }; ?> <button title="<?= $tooltip ?>" class="icon material-symbols-outlined <?= $action . ($active ? ' active' : '') ?>" - hx-post="<?= "/fragment/note/$note->id/$action" ?>" hx-swap="outerHTML"><?= $icon ?></button>
\ No newline at end of file + hx-post="<?= "/fragment/note/$note->id/$action" ?>" hx-swap="outerHTML" hx-disabled-elt="this"><?= $icon ?></button>
\ No newline at end of file |
