aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorwinter2025-01-19 00:15:55 +0000
committerwinter2025-01-19 00:15:55 +0000
commitb4ca320fe7d082ab2a8d32191aa13c74af5735d6 (patch)
treee392174db06a1c4e95cb0b7633b2c5883375ba58
parent981775d1b1965d21b99ca72a28a37d55d330a88a (diff)
put link to profile page in page header
-rw-r--r--static/skeleton.css8
-rw-r--r--templates/skeleton.php4
2 files changed, 10 insertions, 2 deletions
diff --git a/static/skeleton.css b/static/skeleton.css
index b9fcfdc..e90e376 100644
--- a/static/skeleton.css
+++ b/static/skeleton.css
@@ -58,6 +58,14 @@ nav {
gap: var(--spacing-single);
}
+ a {
+ text-decoration: none;
+ color: inherit;
+ &:hover {
+ text-decoration: underline;
+ }
+ }
+
ul {
list-style: none;
display: inline;
diff --git a/templates/skeleton.php b/templates/skeleton.php
index c91dc42..e0b03e4 100644
--- a/templates/skeleton.php
+++ b/templates/skeleton.php
@@ -38,10 +38,10 @@ $settings = GlobalSettings::getInstance();
'/login' => __('navigation.login')
]]);
else: ?>
- <div>
+ <a href="/@/<?= $user->actor->handle ?>">
<?php call_template('actor_avatar', ['actor' => $user->actor]) ?>
<?= $user->actor->displayName ?>
- </div>
+ </a>
<?php endif; ?>
</nav>
</header>