diff options
| author | Syndamia <kamen@syndamia.com> | 2025-02-02 12:23:02 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-02-02 12:23:02 +0200 |
| commit | 0d5738a2bc9dd4f5edf582f7cea3614bcbb44842 (patch) | |
| tree | 1ddb7845d85ff5126e33c3e72cbcc18c2f31b511 /views | |
| parent | 14c84a83bcad285219539821647ee2d988eabaa8 (diff) | |
| download | nowayforward_human-0d5738a2bc9dd4f5edf582f7cea3614bcbb44842.tar nowayforward_human-0d5738a2bc9dd4f5edf582f7cea3614bcbb44842.tar.gz nowayforward_human-0d5738a2bc9dd4f5edf582f7cea3614bcbb44842.zip | |
feat!(views): Rename profile to user
Diffstat (limited to 'views')
| -rw-r--r-- | views/global/header.php | 8 | ||||
| -rw-r--r-- | views/global/router.php | 4 | ||||
| -rw-r--r-- | views/list/item.php | 2 | ||||
| -rw-r--r-- | views/user/authenticate.php (renamed from views/profile/authenticate.php) | 0 | ||||
| -rw-r--r-- | views/user/index.php (renamed from views/profile/index.php) | 0 | ||||
| -rw-r--r-- | views/user/meta.php (renamed from views/profile/meta.php) | 0 |
6 files changed, 7 insertions, 7 deletions
diff --git a/views/global/header.php b/views/global/header.php index b3fddd8..5c3fbff 100644 --- a/views/global/header.php +++ b/views/global/header.php @@ -17,7 +17,7 @@ <div class="flex-expand"></div> <a id="login" href="/login">Login</a> <a id="register" href="/register">Register</a> - <a id="profile" href="/profile" hidden>Profile</a> + <a id="user" href="/user" hidden>Profile</a> <a id="logout" href="/logout" hidden>Logout</a> <div class="fadeout-right"></div> </nav> @@ -27,9 +27,9 @@ document.getElementById('register').hidden = true; document.getElementById('logout').hidden = false; - const profile = document.getElementById('profile'); - profile.hidden = false; - profile.href += '/' + response; + const user = document.getElementById('user'); + user.hidden = false; + user.href += '/' + response; } authenticated(updateNavbar); </script> diff --git a/views/global/router.php b/views/global/router.php index 18adfca..b027cee 100644 --- a/views/global/router.php +++ b/views/global/router.php @@ -35,14 +35,14 @@ function route_view() { switch ($root) { case '/archive': return '/archive'; - case '/profile': return '/profile'; + case '/user': return '/user'; case '/register': return '/register'; case '/login': return '/login'; case '/logout': return '/logout'; case '/list': return '/list'; case '/authenticate': - return '/profile/authenticate.php'; + return '/user/authenticate.php'; } http_response_code(404); diff --git a/views/list/item.php b/views/list/item.php index 6316669..17a6a59 100644 --- a/views/list/item.php +++ b/views/list/item.php @@ -4,7 +4,7 @@ <h2> <?= $list->Name ?> </h2> - <a href="<?= '/profile/' . $user->Username ?>" class="float-right"> + <a href="<?= '/user/' . $user->Username ?>" class="float-right"> <?= $user->Username ?> </a> </div> diff --git a/views/profile/authenticate.php b/views/user/authenticate.php index e4cf47e..e4cf47e 100644 --- a/views/profile/authenticate.php +++ b/views/user/authenticate.php diff --git a/views/profile/index.php b/views/user/index.php index 1462e26..1462e26 100644 --- a/views/profile/index.php +++ b/views/user/index.php diff --git a/views/profile/meta.php b/views/user/meta.php index 52764ef..52764ef 100644 --- a/views/profile/meta.php +++ b/views/user/meta.php |
