]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1235514 - Change color of note regarding changed votes
authorNikhil Handa <nikhil.handa19@gmail.com>
Wed, 27 Apr 2016 15:41:20 +0000 (15:41 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Wed, 27 Apr 2016 15:41:20 +0000 (15:41 +0000)
extensions/Voting/template/en/default/pages/voting/user.html.tmpl
extensions/Voting/web/style.css

index 627011fd4d18946ecf4b4aef4f6f5632b292092f..26b0e7989042528b970c00429345ec2c71331f80 100644 (file)
@@ -22,7 +22,7 @@
   # voting_user: hash containing a 'login' field
   #
   # products: list of hashes containing details of products relating to
-  #           voting: 
+  #           voting:
   #            name: name of product
   #            bugs: list of bugs the user has voted for
   #            bug_ids: list of bug ids the user has voted for
@@ -33,7 +33,7 @@
   #
   # this_bug: Bugzilla::Bug; if the user is voting for a bug, this is the bug
   #
-  # canedit: boolean; Should the votes be presented in a form, or readonly? 
+  # canedit: boolean; Should the votes be presented in a form, or readonly?
   #
   # all_bug_ids: List of all bug ids the user has voted for, across all products
   #%]
@@ -45,7 +45,7 @@
   [% IF canedit %]
     [% title = "Change Votes" %]
     [% IF this_bug %]
-      [%# We .select and .focus the input so it works for textbox and 
+      [%# We .select and .focus the input so it works for textbox and
           checkbox %]
       [% onload = "document.forms['voting_form'].bug_" _ this_bug.id _
                   ".select();document.forms['voting_form'].bug_" _ this_bug.id _
     [% title = "Show Votes" %]
   [% END %]
   [% PROCESS global/header.html.tmpl
-             style_urls = [ "extensions/Voting/web/style.css" ] 
+             style_urls = [ "extensions/Voting/web/style.css" ]
   %]
 [% ELSE %]
   <hr>
 [% END %]
 
 [% IF votes_recorded %]
-  <p>
-    <font color="red">
+  <p class="votes_change_saved">
       The changes to your votes have been saved.
-    </font>
   </p>
 [% ELSE %]
   <br>
     </table>
 
     [% IF canedit %]
-      <input type="submit" value="Change My Votes" id="change"> or 
+      <input type="submit" value="Change My Votes" id="change"> or
       <a href="buglist.cgi?bug_id=[% all_bug_ids.join(",") FILTER uri %]">view all
         as [% terms.bug %] list</a>
       <br>
index c2b934e3700112b16d6ded4e20784978c21f65d5..c75487010e65e8d79c4add5be587753c34769ebc 100644 (file)
@@ -23,6 +23,10 @@ tr.bz_bug_being_voted_on td {
     border-width: thin;
 }
 
-#votes_container { 
-    white-space: nowrap; 
+#votes_container {
+    white-space: nowrap;
+}
+
+p.votes_change_saved {
+    color: green;
 }