mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Add comment edit icon and form
Show an icon next to the comment deletion icon, which leads to a comment edit form. Signed-off-by: Marcel Korpel <marcel.korpel@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
8375d21210
commit
92e19e95f3
11 changed files with 139 additions and 9 deletions
|
@ -39,6 +39,9 @@ $count = pkgbase_comments_count($base_id, $include_deleted);
|
|||
</fieldset>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
<?php if (!$row['DelUsersID'] && can_edit_comment_array($row)): ?>
|
||||
<a href="<?= htmlspecialchars(get_pkgbase_uri($pkgbase_name) . 'edit-comment/?comment_id=' . $row['ID'], ENT_QUOTES) ?>" class="edit-comment" title="<?= __('Edit comment') ?>"><img src="/images/pencil.min.svg" alt="<?= __('Edit comment') ?>" width="11" height="11"></a>
|
||||
<?php endif; ?>
|
||||
</h4>
|
||||
<div class="article-content<?php if ($row['DelUsersID']): ?> comment-deleted<?php endif; ?>">
|
||||
<p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue