Erase login IP addresses after seven days
[aur.git] / web / template / pkgbase_actions.php
blob5eee547889ec4b156be95253d7aa19208f9197fb
1 <div id="detailslinks" class="listing">
2 <div id="actionlist">
3 <h4><?= __('Package Actions') ?></h4>
4 <ul class="small">
5 <li>
6 <a href="<?= $pkgbuild_uri ?>"><?= __('View PKGBUILD') ?></a> /
7 <a href="<?= $log_uri ?>"><?= __('View Changes') ?></a>
8 </li>
9 <li><a href="<?= $snapshot_uri ?>"><?= __('Download snapshot') ?></a>
10 <li><a href="https://wiki.archlinux.org/index.php/Special:Search?search=<?= urlencode($row['Name']) ?>"><?= __('Search wiki') ?></a></li>
11 <li><span class="flagged"><?= $row["OutOfDateTS"] !== NULL ? html_action_link($base_uri . 'flag-comment/', __('Flagged out-of-date (%s)', "$out_of_date_time")) : "" ?></span></li>
12 <?php if ($row["OutOfDateTS"] === NULL): ?>
13 <li><?= html_action_link($base_uri . 'flag/', __('Flag package out-of-date')) ?></li>
14 <?php elseif (($row["OutOfDateTS"] !== NULL) && has_credential(CRED_PKGBASE_UNFLAG, $unflaggers)): ?>
15 <li><?= html_action_form($base_uri . 'unflag/', "do_UnFlag", __('Unflag package')) ?></li>
16 <?php endif; ?>
18 <?php if (pkgbase_user_voted($uid, $base_id)): ?>
19 <li><?= html_action_form($base_uri . 'unvote/', "do_UnVote", __('Remove vote')) ?></li>
20 <?php else: ?>
21 <li><?= html_action_form($base_uri . 'vote/', "do_Vote", __('Vote for this package')) ?></li>
22 <?php endif; ?>
24 <?php if (pkgbase_user_notify($uid, $base_id)): ?>
25 <li><?= html_action_form($base_uri . 'unnotify/', "do_UnNotify", __('Disable notifications')) ?></li>
26 <?php else: ?>
27 <li><?= html_action_form($base_uri . 'notify/', "do_Notify", __('Enable notifications')) ?></li>
28 <?php endif; ?>
30 <?php if (has_credential(CRED_PKGBASE_EDIT_COMAINTAINERS, array($row["MaintainerUID"]))): ?>
31 <li><?= html_action_link($base_uri . 'comaintainers/', __('Manage Co-Maintainers')) ?></li>
32 <?php endif; ?>
34 <li><span class="flagged"><?php if ($row["RequestCount"] > 0) { echo _n('%d pending request', '%d pending requests', $row["RequestCount"]); } ?></span></li>
35 <li><?= html_action_link($base_uri . 'request/', __('Submit Request')) ?></li>
37 <?php if (has_credential(CRED_PKGBASE_DELETE)): ?>
38 <li><?= html_action_link($base_uri . 'delete/', __('Delete Package')) ?></li>
39 <li><?= html_action_link($base_uri . 'merge/', __('Merge Package')) ?></li>
40 <?php endif; ?>
42 <?php if ($uid && $row["MaintainerUID"] === NULL): ?>
43 <li><?= html_action_form($base_uri . 'adopt/', "do_Adopt", __('Adopt Package')) ?></li>
44 <?php elseif (has_credential(CRED_PKGBASE_DISOWN, array_merge(array($row["MaintainerUID"]), pkgbase_get_comaintainer_uids(array($base_id))))): ?>
45 <li><?= html_action_form($base_uri . 'disown/', "do_Disown", __('Disown Package')) ?></li>
46 <?php endif; ?>
47 </ul>
48 </div>
49 </div>