]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 840407 (part 2): Remove the "align" and "valign" attributes from extensions
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 8 Jan 2014 16:08:44 +0000 (17:08 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 8 Jan 2014 16:08:44 +0000 (17:08 +0100)
r/a=justdave

extensions/Example/template/en/default/hook/global/footer-end.html.tmpl
extensions/Voting/template/en/default/hook/admin/products/edit-common-rows.html.tmpl
extensions/Voting/template/en/default/pages/voting/bug.html.tmpl
extensions/Voting/template/en/default/pages/voting/user.html.tmpl
extensions/Voting/web/style.css

index f4cb1e006d4771adf8c4e02962f25e5cbc144fce..fd4ec8639525913cd0099117011b5b5cbeb14433 100644 (file)
@@ -8,7 +8,7 @@
 
 [% USE date %]
 
-<p align="center">
+<p class="center">
   <em>[% component.callers.first FILTER html %]</em> processed
   on [% date.format(date.now, '%b %d, %Y at %H:%M:%S') FILTER html %].
   <br>
index 9a8373bac49db4df0c8eca091566b5aeda5f40e6..c46da75ae57c5f9e5d0b8e08c039803e756c1aeb 100644 (file)
   product.votesperuser = 0
   product.votestoconfirm = 0
 %]
-  
+
 <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"
              value="[% product.votesperuser FILTER html %]">
   </td>
 </tr>
 
 <tr>
-  <th align="right">
+  <th>
     Maximum votes a person can put on a single [% terms.bug %]:
   </th>
   <td><input size="5" maxlength="5" name="maxvotesperbug" id="maxvotesperbug"
@@ -30,7 +30,7 @@
 
 <tr id="votes_to_confirm_container"
     [%- ' class="bz_default_hidden"' IF !product.allows_unconfirmed %]>
-  <th align="right">
+  <th>
     Confirm [% terms.abug %] if it gets this many votes:
   </th>
   <td>
index 2ba784f773a0efaf51b511b5069f24d910dd514c..cb1d2380e83121df55e5520a7d25d5ac35913a9e 100644 (file)
 [% PROCESS global/header.html.tmpl
            title = "Show Votes"
            subheader = subheader
+           style_urls = [ "extensions/Voting/web/style.css" ]
  %]
 
 [% total = 0 %]
-<table cellspacing="4">
+<table id="bug_votes">
   <tr>
     <th>Who</th>
     <th>Number of votes</th>
@@ -38,7 +39,7 @@
           [% voter.login_name FILTER email FILTER html %]
         </a>
       </td>
-      <td align="right">
+      <td class="right">
         [% voter.vote_count FILTER html %]
       </td>
     </tr>
index b08b4c878b0a0c52e93edbd747a3d096b2381073..b5e8fc9bc4eb2cb99b12591b61645e383fa71cc9 100644 (file)
   <form name="voting_form" method="post" action="page.cgi?id=voting/user.html">
     <input type="hidden" name="action" value="vote">
     <input type="hidden" name="token" value="[% issue_hash_token(['vote']) FILTER html %]">
-    <table cellspacing="4">
+    <table id="user_votes">
       <tr>
-        <td></td>
+        <th></th>
         <th>Votes</th>
-        <th>[% terms.Bug %] #</th>
+        <th>[% terms.Bug %]&nbsp;#</th>
         <th>Summary</th>
       </tr>
 
@@ -95,7 +95,8 @@
                 [% END %]
               [%- END %]
             </td>
-            <td align="right"><a name="vote_[% bug.id FILTER none %]">
+            <td>
+              <a name="vote_[% bug.id FILTER none %]">
               [% IF canedit %]
                 [% IF product.onevoteonly %]
                   <input type="checkbox" name="[% bug.id FILTER none %]" value="1"
               [% ELSE %]
                 [% bug.count FILTER html %]
               [% END %]
-            </a></td>
-            <td align="center">
+              </a>
+            </td>
+            <td class="right">
               [% PROCESS bug/link.html.tmpl bug = bug, link_text = bug.id %]
             </td>
             <td>
index 3f06200ca8a30550fb02afe7bc8f949f14dc8eb5..22458fd9060ee623abe334e99256e25300e0e788 100644 (file)
@@ -19,3 +19,12 @@ tr.bz_bug_being_voted_on td {
 #votes_container { 
     white-space: nowrap; 
 }
+
+#user_votes th {
+    text-align: center;
+}
+
+#user_votes th, #user_votes td,
+#bug_votes th, #bug_votes td {
+    padding: 0.2em;
+}