diff options
Diffstat (limited to 'templates/actor_profile.php')
| -rw-r--r-- | templates/actor_profile.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/actor_profile.php b/templates/actor_profile.php index 0dc3ccd..46ee273 100644 --- a/templates/actor_profile.php +++ b/templates/actor_profile.php @@ -25,13 +25,13 @@ $user = UserAccount::findByCurrentSession(); </div> </div> <?php if (isset($actor->bio) && $actor->bio != '') { ?> - <p class="bio"><?= $actor->bio ?></p> + <pre class="bio"><?= $actor->bio ?></pre> <?php } else { call_template('placeholder_text', ['message' => __('user.profile.bio.placeholder')]); } ?> <?php if (isset($user) && $actor->id != $user->actor->id): ?> - <div class="followInfo"> + <div class="profileActions"> <?php if ($actor->followsPending($user->actor)) call_template('actor_profile_pending_follow', ['subject' => $actor, 'object' => $user->actor]); ?> <?php if ($actor->follows($user->actor)): ?> @@ -39,5 +39,11 @@ $user = UserAccount::findByCurrentSession(); <?php endif; ?> <?php call_template('actor_profile_follow_button', ['actor' => $actor, 'user' => $user]); ?> </div> + <?php elseif ($actor->id == $user->actor->id): ?> + <div class="profileActions"> + <button class="primary" hx-get="/fragment/profile" hx-target="closest .fullProfile" hx-swap="outerHTML"> + <?= __('form.edit') ?> + </button> + </div> <?php endif; ?> </div>
\ No newline at end of file |
