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:
canyonknight 2014-02-01 14:03:09 -05:00 committed by Lukas Fleischer
parent 333ce08027
commit 42c9957e41
2 changed files with 11 additions and 3 deletions

View file

@ -33,3 +33,8 @@
text-decoration: underline;
color: #666;
}
.arch-bio-entry ul {
list-style: none;
padding: 0;
}

View file

@ -51,9 +51,12 @@
</tr>
<tr>
<th>Links:</th>
<td>
<a href="<?= get_uri('/packages/'); ?>?K=<?= $row['Username'] ?>&amp;SeB=m"><?= __("View this user's packages") ?></a>
</td>
<td><ul>
<li><a href="<?= get_uri('/packages/'); ?>?K=<?= $row['Username'] ?>&amp;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>