mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
333ce08027
commit
42c9957e41
2 changed files with 11 additions and 3 deletions
|
@ -33,3 +33,8 @@
|
|||
text-decoration: underline;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.arch-bio-entry ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue