diff options
| author | winter | 2025-01-16 20:21:42 +0000 |
|---|---|---|
| committer | winter | 2025-01-16 20:21:42 +0000 |
| commit | b1d6fbc4d740324d96d7fe2677fb15b9b59d20ea (patch) | |
| tree | ae2c996cc6a42b3a42437a7ec8812cd184644817 /templates/skeleton.php | |
| parent | 8de5608976dc8a73a400267601acb4c8e127de5a (diff) | |
follow requests
Diffstat (limited to 'templates/skeleton.php')
| -rw-r--r-- | templates/skeleton.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/skeleton.php b/templates/skeleton.php index 6eb6bd1..fced6b8 100644 --- a/templates/skeleton.php +++ b/templates/skeleton.php @@ -1,4 +1,6 @@ <?php + +use Digitigrade\Model\FollowRelation; $user = Digitigrade\Model\UserAccount::findByCurrentSession(); ?> <!DOCTYPE html> @@ -44,6 +46,15 @@ $user = Digitigrade\Model\UserAccount::findByCurrentSession(); <?php if ($user != null) { call_template('write_note_form'); + call_template('side_navigation', ['links' => [ + [ + 'href' => '/followrequests', + 'icon' => 'person_add', + 'label' => __('navigation.followRequests'), + 'unreadCount' => FollowRelation::countWhere("object = ? AND status = 'pending'", [$user->actor->id]) + ], + ['href' => '/logout', 'icon' => 'logout', 'label' => __('navigation.logout')] + ]]); } ?> </section> |
