Commit ba72ec96 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 840407 (part 2): Remove the "align" and "valign" attributes from extensions

r/a=justdave
parent 192b0290
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
[% USE date %] [% USE date %]
<p align="center"> <p class="center">
<em>[% component.callers.first FILTER html %]</em> processed <em>[% component.callers.first FILTER html %]</em> processed
on [% date.format(date.now, '%b %d, %Y at %H:%M:%S') FILTER html %]. on [% date.format(date.now, '%b %d, %Y at %H:%M:%S') FILTER html %].
<br> <br>
......
...@@ -11,16 +11,16 @@ ...@@ -11,16 +11,16 @@
product.votesperuser = 0 product.votesperuser = 0
product.votestoconfirm = 0 product.votestoconfirm = 0
%] %]
<tr> <tr>
<th align="right">Maximum votes per person:</th> <th>Maximum votes per person:</th>
<td><input size="5" maxlength="5" name="votesperuser" id="votesperuser" <td><input size="5" maxlength="5" name="votesperuser" id="votesperuser"
value="[% product.votesperuser FILTER html %]"> value="[% product.votesperuser FILTER html %]">
</td> </td>
</tr> </tr>
<tr> <tr>
<th align="right"> <th>
Maximum votes a person can put on a single [% terms.bug %]: Maximum votes a person can put on a single [% terms.bug %]:
</th> </th>
<td><input size="5" maxlength="5" name="maxvotesperbug" id="maxvotesperbug" <td><input size="5" maxlength="5" name="maxvotesperbug" id="maxvotesperbug"
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<tr id="votes_to_confirm_container" <tr id="votes_to_confirm_container"
[%- ' class="bz_default_hidden"' IF !product.allows_unconfirmed %]> [%- ' class="bz_default_hidden"' IF !product.allows_unconfirmed %]>
<th align="right"> <th>
Confirm [% terms.abug %] if it gets this many votes: Confirm [% terms.abug %] if it gets this many votes:
</th> </th>
<td> <td>
......
...@@ -20,10 +20,11 @@ ...@@ -20,10 +20,11 @@
[% PROCESS global/header.html.tmpl [% PROCESS global/header.html.tmpl
title = "Show Votes" title = "Show Votes"
subheader = subheader subheader = subheader
style_urls = [ "extensions/Voting/web/style.css" ]
%] %]
[% total = 0 %] [% total = 0 %]
<table cellspacing="4"> <table id="bug_votes">
<tr> <tr>
<th>Who</th> <th>Who</th>
<th>Number of votes</th> <th>Number of votes</th>
...@@ -38,7 +39,7 @@ ...@@ -38,7 +39,7 @@
[% voter.login_name FILTER email FILTER html %] [% voter.login_name FILTER email FILTER html %]
</a> </a>
</td> </td>
<td align="right"> <td class="right">
[% voter.vote_count FILTER html %] [% voter.vote_count FILTER html %]
</td> </td>
</tr> </tr>
......
...@@ -51,11 +51,11 @@ ...@@ -51,11 +51,11 @@
<form name="voting_form" method="post" action="page.cgi?id=voting/user.html"> <form name="voting_form" method="post" action="page.cgi?id=voting/user.html">
<input type="hidden" name="action" value="vote"> <input type="hidden" name="action" value="vote">
<input type="hidden" name="token" value="[% issue_hash_token(['vote']) FILTER html %]"> <input type="hidden" name="token" value="[% issue_hash_token(['vote']) FILTER html %]">
<table cellspacing="4"> <table id="user_votes">
<tr> <tr>
<td></td> <th></th>
<th>Votes</th> <th>Votes</th>
<th>[% terms.Bug %] #</th> <th>[% terms.Bug %]&nbsp;#</th>
<th>Summary</th> <th>Summary</th>
</tr> </tr>
...@@ -95,7 +95,8 @@ ...@@ -95,7 +95,8 @@
[% END %] [% END %]
[%- END %] [%- END %]
</td> </td>
<td align="right"><a name="vote_[% bug.id FILTER none %]"> <td>
<a name="vote_[% bug.id FILTER none %]">
[% IF canedit %] [% IF canedit %]
[% IF product.onevoteonly %] [% IF product.onevoteonly %]
<input type="checkbox" name="[% bug.id FILTER none %]" value="1" <input type="checkbox" name="[% bug.id FILTER none %]" value="1"
...@@ -107,8 +108,9 @@ ...@@ -107,8 +108,9 @@
[% ELSE %] [% ELSE %]
[% bug.count FILTER html %] [% bug.count FILTER html %]
[% END %] [% END %]
</a></td> </a>
<td align="center"> </td>
<td class="right">
[% PROCESS bug/link.html.tmpl bug = bug, link_text = bug.id %] [% PROCESS bug/link.html.tmpl bug = bug, link_text = bug.id %]
</td> </td>
<td> <td>
......
...@@ -19,3 +19,12 @@ tr.bz_bug_being_voted_on td { ...@@ -19,3 +19,12 @@ tr.bz_bug_being_voted_on td {
#votes_container { #votes_container {
white-space: nowrap; white-space: nowrap;
} }
#user_votes th {
text-align: center;
}
#user_votes th, #user_votes td,
#bug_votes th, #bug_votes td {
padding: 0.2em;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment