mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Overhaul trusted user proposal page to match archweb
* Change all boxes and other CSS to match archweb * General fixups in XHTML formatting * Change results table to match color scheme everywhere else Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
d2480e8b9d
commit
af8f60fe7f
3 changed files with 137 additions and 137 deletions
|
@ -1,76 +1,75 @@
|
|||
<div class="pgbox">
|
||||
<h2><?php print __("Proposal Details") ?></h2>
|
||||
<div class="pgboxbody">
|
||||
<?php
|
||||
if ($isrunning == 1) { ?>
|
||||
<p style='font-weight: bold; color: red'>
|
||||
<?php print __("This vote is still running.") ?>
|
||||
</p>
|
||||
<?php
|
||||
} ?>
|
||||
<div class="box">
|
||||
<h2><?php print __("Proposal Details") ?></h2>
|
||||
|
||||
<p>
|
||||
<?php echo __('User') ?>: <b>
|
||||
<?php if (!empty($row['User'])) { ?>
|
||||
<a href='packages.php?K=<?php print $row['User'] ?>&SeB=m'><?php print $row['User'] ?></a>
|
||||
<?php } else { ?>
|
||||
N/A
|
||||
<?php } ?>
|
||||
</b><br />
|
||||
<?php print __("Submitted: %s by %s", "<b>" . gmdate("Y-m-d H:i", $row['Submitted']) . "</b>", "<b>" . username_from_id($row['SubmitterID']) . "</b>") ?><br />
|
||||
<?php print __('End') ?>: <b><?php print gmdate("Y-m-d H:i", $row['End']) ?></b></p>
|
||||
<?php if ($isrunning == 1): ?>
|
||||
<p style="font-weight: bold; color: red">
|
||||
<?php print __("This vote is still running.") ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<p>
|
||||
<?php print str_replace("\n", "<br />\n", htmlspecialchars($row['Agenda'])) ?>
|
||||
</p>
|
||||
<p>
|
||||
<?php echo __("User") ?>:
|
||||
<b>
|
||||
<?php if (!empty($row['User'])): ?>
|
||||
<a href="packages.php?K=<?php print $row['User'] ?>&SeB=m"><?php print $row['User'] ?></a>
|
||||
<?php else: ?>
|
||||
N/A
|
||||
<?php endif; ?>
|
||||
</b>
|
||||
<br />
|
||||
<?php print __("Submitted: %s by %s", "<b>" . gmdate("Y-m-d H:i", $row['Submitted']) . "</b>", "<b>" . username_from_id($row['SubmitterID']) . "</b>") ?>
|
||||
<br />
|
||||
<?php print __("End") ?>:
|
||||
<b><?php print gmdate("Y-m-d H:i", $row['End']) ?></b>
|
||||
</p>
|
||||
|
||||
<table class="boxSoft">
|
||||
<tr>
|
||||
<th class='boxSoftTitle'><span class='f2'><?php print __("Yes") ?></span></th>
|
||||
<th class='boxSoftTitle'><span class='f2'><?php print __("No") ?></span></th>
|
||||
<th class='boxSoftTitle'><span class='f2'><?php print __("Abstain") ?></span></th>
|
||||
<th class='boxSoftTitle'><span class='f2'><?php print __("Total") ?></span></th>
|
||||
<th class='boxSoftTitle'><span class='f2'><?php print __('Voted') ?></span></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='data1'><span class='f5'><span class='blue'><?php print $row['Yes'] ?></span></span></td>
|
||||
<td class='data1'><span class='f5'><span class='blue'><?php print $row['No'] ?></span></span></td>
|
||||
<td class='data1'><span class='f5'><span class='blue'><?php print $row['Abstain'] ?></span></span></td>
|
||||
<td class='data1'><span class='f5'><span class='blue'><?php print ($row['Yes'] + $row['No'] + $row['Abstain']) ?></span></span></td>
|
||||
<td class='data1'><span class='f5'><span class='blue'>
|
||||
<?php if ($hasvoted == 0) { ?>
|
||||
<span style='color: red; font-weight: bold'><?php print __("No") ?></span>
|
||||
<?php } else { ?>
|
||||
<span style='color: green; font-weight: bold'><?php print __("Yes") ?></span>
|
||||
<?php } ?>
|
||||
</span></span></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div></div>
|
||||
<p>
|
||||
<?php print str_replace("\n", "<br />\n", htmlspecialchars($row['Agenda'])) ?>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
if (!$isrunning) { ?>
|
||||
<div class="pgbox">
|
||||
<h2><?php echo __('Voters'); ?></h2>
|
||||
<div class="pgboxbody">
|
||||
<?php echo $whovoted; ?>
|
||||
</div>
|
||||
<table>
|
||||
<tr>
|
||||
<th><?php print __("Yes") ?></th>
|
||||
<th><?php print __("No") ?></th>
|
||||
<th><?php print __("Abstain") ?></th>
|
||||
<th><?php print __("Total") ?></th>
|
||||
<th><?php print __('Voted') ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php print $row['Yes'] ?></td>
|
||||
<td><?php print $row['No'] ?></td>
|
||||
<td><?php print $row['Abstain'] ?></td>
|
||||
<td><?php print ($row['Yes'] + $row['No'] + $row['Abstain']) ?></td>
|
||||
<td>
|
||||
<?php if ($hasvoted == 0): ?>
|
||||
<span style="color: red; font-weight: bold"><?php print __("No") ?></span>
|
||||
<?php else: ?>
|
||||
<span style="color: green; font-weight: bold"><?php print __("Yes") ?></span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
} ?>
|
||||
|
||||
<div class='pgbox'>
|
||||
<div class='pgboxbody'>
|
||||
<?php if ($canvote == 1) { ?>
|
||||
<form action='tu.php?id=<?php print $row['ID'] ?>' method='post'>
|
||||
<fieldset>
|
||||
<input type='submit' class='button' name='voteYes' value='<?php print __("Yes") ?>' />
|
||||
<input type='submit' class='button' name='voteNo' value='<?php print __("No") ?>' />
|
||||
<input type='submit' class='button' name='voteAbstain' value='<?php print __("Abstain") ?>' />
|
||||
<input type='hidden' name='doVote' value='1' />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?php } else { ?>
|
||||
<?php print $errorvote ?>
|
||||
<?php } ?>
|
||||
</div></div>
|
||||
<?php if (!$isrunning): ?>
|
||||
<div class="box">
|
||||
<h2><?php echo __("Voters"); ?></h2>
|
||||
<?php echo $whovoted; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box">
|
||||
|
||||
<?php if ($canvote == 1): ?>
|
||||
<form action="tu.php?id=<?php print $row['ID'] ?>" method="post">
|
||||
<fieldset>
|
||||
<input type="submit" class="button" name="voteYes" value="<?php print __("Yes") ?>" />
|
||||
<input type="submit" class="button" name="voteNo" value="<?php print __("No") ?>" />
|
||||
<input type="submit" class="button" name="voteAbstain" value="<?php print __("Abstain") ?>" />
|
||||
<input type="hidden" name="doVote" value="1" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?php else:
|
||||
print $errorvote ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue