diff options
author | canyonknight <canyonknight@gmail.com> | 2014-02-01 20:03:09 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-02-03 21:16:36 +0100 |
commit | 42c9957e41d2f5f8cfee657d203d6a3624a6ef0e (patch) | |
tree | 33859deaf5ee5082292f9f8a0407bbb40b869828 /web/template | |
parent | 333ce080274bcc1a93c2ce12340ae5abfe9e5c0d (diff) | |
download | aur-42c9957e41d2f5f8cfee657d203d6a3624a6ef0e.tar.gz aur-42c9957e41d2f5f8cfee657d203d6a3624a6ef0e.tar.xz |
account_details.php: Add link to edit a user's account
This improves the ability to edit a user's account directly through
UI features rather than manually appending 'edit' to the URL or
searching for the account and selecting edit.
Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/account_details.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/web/template/account_details.php b/web/template/account_details.php index 02ed32b9..680a52e3 100644 --- a/web/template/account_details.php +++ b/web/template/account_details.php @@ -51,9 +51,12 @@ </tr> <tr> <th>Links:</th> - <td> - <a href="<?= get_uri('/packages/'); ?>?K=<?= $row['Username'] ?>&SeB=m"><?= __("View this user's packages") ?></a> - </td> + <td><ul> + <li><a href="<?= get_uri('/packages/'); ?>?K=<?= $row['Username'] ?>&SeB=m"><?= __("View this user's packages") ?></a></li> + <?php if (can_edit_account($atype, $row, uid_from_sid($_COOKIE['AURSID']))): ?> + <li><a href="<?= get_user_uri($row['Username']); ?>edit"><?= __("Edit this user's account") ?></a></li> + <?php endif; ?> + </ul></td> </tr> </table> </td> |