diff options
author | canyonknight <canyonknight@gmail.com> | 2012-09-15 16:27:05 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-09-18 00:59:48 +0200 |
commit | 98ab6515b48af7705ecad05107a3e3610761fbfc (patch) | |
tree | 468c1cc9eb3208c3bb0e762a8c90a80c8a7a3cf7 /web/template/header.php | |
parent | e84eb4ae54ceaa329d154bcac214be281e71ba0a (diff) | |
download | aur-98ab6515b48af7705ecad05107a3e3610761fbfc.tar.gz aur-98ab6515b48af7705ecad05107a3e3610761fbfc.tar.xz |
header.php: Update account editing link
* Use AUR_URL/account/userfoo/edit format for own account editing.
* Change "Accounts" label to "My Account" for regular users.
* Add ability for Developers and Trusted Users to edit their account
without having to use the search form first.
Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/header.php')
-rw-r--r-- | web/template/header.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/template/header.php b/web/template/header.php index 52c0ab88..2c04b586 100644 --- a/web/template/header.php +++ b/web/template/header.php @@ -55,7 +55,10 @@ <?php if (isset($_COOKIE['AURSID'])): ?> <li><a href="<?php echo get_uri('/packages/'); ?>?SeB=m&K=<?php print username_from_sid($_COOKIE["AURSID"]); ?>"><?php print __("My Packages"); ?></a></li> <li><a href="<?php echo get_uri('/submit/'); ?>"><?php print __("Submit"); ?></a></li> - <li><a href="<?php echo get_uri('/accounts/'); ?>"><?php print __("Accounts"); ?></a></li> + <?php if (check_user_privileges()): ?> + <li><a href="<?php echo get_uri('/accounts/') ; ?>"><?php print __("Accounts"); ?></a></li> + <?php endif; ?> + <li><a href="<?php echo get_user_uri(username_from_sid($_COOKIE['AURSID'])) . 'edit/'; ?>"><?php print __(" My Account"); ?></a></li> <?php if (check_user_privileges()): ?><li><a href="<?php echo get_uri('/tu/'); ?>"><?php print __("Trusted User"); ?></a></li><?php endif; ?> <li><a href="<?php echo get_uri('/logout/'); ?>"><?php print __("Logout"); ?></a></li> <?php else: ?> |