mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Add dashboard
For logged in users, the home page is replaced with an overview of the packages the user maintains or co-maintains. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
b6aced9692
commit
1049f93191
2 changed files with 38 additions and 5 deletions
|
@ -53,10 +53,9 @@
|
|||
</div>
|
||||
<div id="archdev-navbar">
|
||||
<ul>
|
||||
<li><a href="<?= get_uri('/'); ?>">AUR <?= __("Home"); ?></a></li>
|
||||
<li><a href="<?= get_uri('/packages/'); ?>"><?= __("Packages"); ?></a></li>
|
||||
<?php if (isset($_COOKIE['AURSID'])): ?>
|
||||
<li><a href="<?= get_uri('/packages/'); ?>?SeB=m&K=<?= username_from_sid($_COOKIE["AURSID"]); ?>"><?= __("My Packages"); ?></a></li>
|
||||
<li><a href="<?= get_uri('/'); ?>"><?= __("Dashboard"); ?></a></li>
|
||||
<li><a href="<?= get_uri('/packages/'); ?>"><?= __("Packages"); ?></a></li>
|
||||
<?php if (has_credential(CRED_PKGREQ_LIST)): ?>
|
||||
<li><a href="<?= get_uri('/requests/') ; ?>"><?= __("Requests"); ?></a></li>
|
||||
<?php endif; ?>
|
||||
|
@ -67,6 +66,8 @@
|
|||
<?php if (has_credential(CRED_TU_LIST_VOTES)): ?><li><a href="<?= get_uri('/tu/'); ?>"><?= __("Trusted User"); ?></a></li><?php endif; ?>
|
||||
<li><a href="<?= get_uri('/logout/'); ?>"><?= __("Logout"); ?></a></li>
|
||||
<?php else: ?>
|
||||
<li><a href="<?= get_uri('/'); ?>">AUR <?= __("Home"); ?></a></li>
|
||||
<li><a href="<?= get_uri('/packages/'); ?>"><?= __("Packages"); ?></a></li>
|
||||
<li><a href="<?= get_uri('/register/'); ?>"><?= __("Register"); ?></a></li>
|
||||
<?php if (config_get_bool('options', 'disable_http_login') && empty($_SERVER['HTTPS'])): ?>
|
||||
<li><a href="<?= get_uri('/login/', true); ?>"><?= __("Login"); ?></a></li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue