summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-02-13 15:31:05 -0500
committerLoui Chang <louipc.ist@gmail.com>2009-02-13 15:31:05 -0500
commite83e593ac41a6e7dcee20fe7962269889c5fd5e1 (patch)
tree197ef56ff8e6134ca389f84498b4d687b151aadb /web
parentdf75621d232405c0ac3c6211f4c72ffd851bee67 (diff)
Change layout of tu_details.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web')
-rw-r--r--web/html/tu.php2
-rw-r--r--web/template/tu_details.php32
-rw-r--r--web/template/tu_list.php2
3 files changed, 21 insertions, 15 deletions
diff --git a/web/html/tu.php b/web/html/tu.php
index b400777..7634b64 100644
--- a/web/html/tu.php
+++ b/web/html/tu.php
@@ -61,7 +61,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
$errorvote = __("You cannot vote in an proposal about you.");
} else if ($hasvoted != 0) {
$canvote = 0;
- $errorvote = __("You've already voted in this proposal.");
+ $errorvote = __("You've already voted for this proposal.");
}
if ($canvote == 1) {
diff --git a/web/template/tu_details.php b/web/template/tu_details.php
index df392b4..9414d1f 100644
--- a/web/template/tu_details.php
+++ b/web/template/tu_details.php
@@ -1,11 +1,16 @@
<div class="pgbox">
<div class="pgboxtitle"><span class="f3"><?php print __("Proposal Details") ?></span></div>
<div class="pgboxbody">
-<?php if ($isrunning == 1) { ?>
-<div style='text-align: center; font-weight: bold; color: red'><?php print __("This vote is still running.") ?></div>
-<br />
-<?php }
-echo __('User') ?>: <b>
+<?php
+if ($isrunning == 1) { ?>
+<p style='font-weight: bold; color: red'>
+<?php print __("This vote is still running.") ?>
+</p>
+<?php
+} ?>
+
+<p>
+<?php echo __('User') ?>: <b>
<?php if (!empty($row['User'])) { ?>
<a href='packages.php?K=<?php print $row['User'] ?>&amp;SeB=m'><?php print $row['User'] ?></a>
<?php } else { ?>
@@ -13,9 +18,12 @@ N/A
<?php } ?>
</b><br />
<?php print __("Submitted: %s by %s", "<b>" . gmdate("r", $row['Submitted']) . "</b>", "<b>" . username_from_id($row['SubmitterID']) . "</b>") ?><br />
-<?php print __('End') ?>: <b><?php print gmdate("r", $row['End']) ?></b><br /><br />
-<?php print str_replace("\n", "<br />\n", htmlentities($row['Agenda'])) ?><br /><br />
-<center>
+<?php print __('End') ?>: <b><?php print gmdate("r", $row['End']) ?></b></p>
+
+<p>
+<?php print str_replace("\n", "<br />\n", htmlentities($row['Agenda'])) ?>
+</p>
+
<table cellspacing='3' class='boxSoft' style='width: 50%'>
</tr>
<tr>
@@ -59,17 +67,15 @@ if (!$isrunning) { ?>
} ?>
<div class='pgbox'>
-<div class='pgboxtitle'><span class='f3'><?php print __("Vote Actions") ?></span></div>
<div class='pgboxbody'>
<?php if ($canvote == 1) { ?>
-<center><form action='tu.php?id=<?php print $row['ID'] ?>' method='post'>
+<form action='tu.php?id=<?php print $row['ID'] ?>' method='post'>
<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'>
-</form></center>
+</form>
<?php } else { ?>
-<center><?php print $errorvote ?></center>
+<?php print $errorvote ?>
<?php } ?>
</div></div>
-<br /><center><a href='tu.php'><?php print __("Back") ?></a></center>
diff --git a/web/template/tu_list.php b/web/template/tu_list.php
index 83c9a48..697918d 100644
--- a/web/template/tu_list.php
+++ b/web/template/tu_list.php
@@ -17,7 +17,7 @@
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("User") ?></span></th>
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("Yes") ?></span></th>
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("No") ?></span></th>
- <th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("Voted?") ?></span></th>
+ <th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __('Voted') ?></span></th>
</tr>
<?php if (mysql_num_rows($result) == 0) { ?>
<tr><td align='center' colspan='0'><?php print __("No results found.") ?></td></tr>