Commit 8f77358e authored by Sunil Joshi's avatar Sunil Joshi Committed by Frédéric Buclin

Bug 780675: Display "The changes to your votes have been saved" in green instead of red

r/a=LpSolit
parent b80c2dd4
......@@ -628,7 +628,7 @@ sub _update_votes {
# Set header_done to 1 only after the first bug.
$vars->{'header_done'} = 1;
}
$vars->{'votes_recorded'} = 1;
$vars->{'message'} = 'votes_recorded';
}
######################
......
[%# This Source Code Form is subject to th e terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
#%]
[%# This is a list of all the possible messages. Please keep them in
# alphabetical order by message tag, and leave a blank line between messages.
#%]
[% IF message_tag == "votes_recorded" %]
The changes to your votes have been saved.
[% END %]
......@@ -47,16 +47,6 @@
<hr>
[% END %]
[% IF votes_recorded %]
<p>
<font color="red">
The changes to your votes have been saved.
</font>
</p>
[% ELSE %]
<br>
[% END %]
[% IF products.size %]
<form name="voting_form" method="post" action="page.cgi?id=voting/user.html">
<input type="hidden" name="action" value="vote">
......
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