summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikhil Handa <nikhil.handa19@gmail.com>2016-04-27 17:41:20 +0200
committerDavid Lawrence <dkl@mozilla.com>2016-04-27 17:41:20 +0200
commit6b76c8f70b4d56ed5b63db10511b6a808ebe3e70 (patch)
treec8db5c4aca738e77455890bedf34801919836f26
parentf885e904ca8ed2982d0f1182100b4e0c86389df3 (diff)
downloadbugzilla-6b76c8f70b4d56ed5b63db10511b6a808ebe3e70.tar.gz
bugzilla-6b76c8f70b4d56ed5b63db10511b6a808ebe3e70.tar.xz
Bug 1235514 - Change color of note regarding changed votes
-rw-r--r--extensions/Voting/template/en/default/pages/voting/user.html.tmpl14
-rw-r--r--extensions/Voting/web/style.css8
2 files changed, 12 insertions, 10 deletions
diff --git a/extensions/Voting/template/en/default/pages/voting/user.html.tmpl b/extensions/Voting/template/en/default/pages/voting/user.html.tmpl
index 627011fd4..26b0e7989 100644
--- a/extensions/Voting/template/en/default/pages/voting/user.html.tmpl
+++ b/extensions/Voting/template/en/default/pages/voting/user.html.tmpl
@@ -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 _
@@ -55,17 +55,15 @@
[% 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>
@@ -155,7 +153,7 @@
</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>
diff --git a/extensions/Voting/web/style.css b/extensions/Voting/web/style.css
index c2b934e37..c75487010 100644
--- a/extensions/Voting/web/style.css
+++ b/extensions/Voting/web/style.css
@@ -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;
}