mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Move "Add Proposal" link to "Current Votes"
The page this links to allows for adding an item to the list of current votes. Move the link accordingly. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
40fd73b668
commit
3130a887e8
2 changed files with 8 additions and 9 deletions
|
@ -109,20 +109,12 @@ if ($atype == "Trusted User" || $atype == "Developer") {
|
||||||
$type = __("Current Votes");
|
$type = __("Current Votes");
|
||||||
$nextresult = 0;
|
$nextresult = 0;
|
||||||
include("tu_list.php");
|
include("tu_list.php");
|
||||||
?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
$result = past_proposal_list($order, $lim);
|
$result = past_proposal_list($order, $lim);
|
||||||
|
|
||||||
$type = __("Past Votes");
|
$type = __("Past Votes");
|
||||||
$nextresult = proposal_count();
|
$nextresult = proposal_count();
|
||||||
include("tu_list.php");
|
include("tu_list.php");
|
||||||
?>
|
|
||||||
<div class="box">
|
|
||||||
<p><a href="<?= get_uri('/addvote/'); ?>"><?= __("Add Proposal") ?></a></p>
|
|
||||||
</div>
|
|
||||||
</p>
|
|
||||||
<?php
|
|
||||||
$result = last_votes_list();
|
$result = last_votes_list();
|
||||||
include("tu_last_votes_list.php");
|
include("tu_last_votes_list.php");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h2><?= $type ?></h2>
|
<h2><?= $type ?></h2>
|
||||||
|
|
||||||
|
<?php if ($type == __("Current Votes")): ?>
|
||||||
|
<ul class="admin-actions">
|
||||||
|
<li><a href="<?= get_uri('/addvote/'); ?>"><?= __("Add Proposal") ?></a></li>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<table class="results">
|
<table class="results">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Add table
Reference in a new issue