Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
a2b7d94d
Commit
a2b7d94d
authored
Feb 08, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 250440 : when voting for bug, jump down to bug
Patch by GavinS <bugzilla@chimpychompy.org> r=LpSolit a=justdave
parent
adbc63fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
6 deletions
+52
-6
voting.css
skins/standard/voting.css
+24
-0
edit.html.tmpl
template/en/default/bug/edit.html.tmpl
+1
-1
list-for-user.html.tmpl
template/en/default/bug/votes/list-for-user.html.tmpl
+26
-5
votes.cgi
votes.cgi
+1
-0
No files found.
skins/standard/voting.css
0 → 100644
View file @
a2b7d94d
/* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Bugzilla Bug Tracking System.
*
* Contributor(s): Gavin Shelley <bugzilla@chimpychompy.org>
*/
/* Highlight the row for the bug being voted on */
tr
.bz_bug_being_voted_on
{
background-color
:
#e2e2e2
;
}
tr
.bz_bug_being_voted_on
td
{
border-style
:
solid
none
solid
none
;
border-width
:
thin
;
}
template/en/default/bug/edit.html.tmpl
View file @
a2b7d94d
...
...
@@ -464,7 +464,7 @@
[% bug.votes %]
<a href="votes.cgi?action=show_bug&bug_id=[% bug.bug_id %]">Show
votes for this [% terms.bug %]</a>
<a href="votes.cgi?action=show_user&bug_id=[% bug.bug_id %]">Vote
<a href="votes.cgi?action=show_user&bug_id=[% bug.bug_id %]
#vote_[% bug.bug_id %]
">Vote
for this [% terms.bug %]</a>
</td>
</tr>
...
...
template/en/default/bug/votes/list-for-user.html.tmpl
View file @
a2b7d94d
...
...
@@ -19,6 +19,23 @@
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
[%# INTERFACE:
# voting_user: hash containing a 'login' field
#
# products: list of hashes containing details of products relating to
# voting:
# name: name of product
# bugs: list of bugs the user has voted for
# onevoteonly: one or more votes allowed per bug?
# total: users current vote count for the product
# maxvotes: max votes allowed for a user in this product
# maxperbug: max votes per bug allowed for a user in this product
#
# bug_id: number; if the user is voting for a bug, this is the bug id
#
# canedit: boolean; Should the votes be presented in a form, or readonly?
#%]
[% PROCESS global/variables.none.tmpl %]
[% IF !header_done %]
...
...
@@ -28,7 +45,9 @@
[% ELSE %]
[% title = "Show Votes" %]
[% END %]
[% PROCESS global/header.html.tmpl %]
[% PROCESS global/header.html.tmpl
style_urls = [ "skins/standard/voting.css" ]
%]
[% ELSE %]
<hr>
[% END %]
...
...
@@ -78,9 +97,11 @@
</tr>
[% FOREACH bug = product.bugs %]
<tr>
<td></td>
<td align="right">
<tr [% IF bug.id == bug_id && canedit %]
class="bz_bug_being_voted_on" [% END %]>
<td>[% IF bug.id == bug_id && canedit %]Enter New Vote here →
[%- END %]</td>
<td align="right"><a name="vote_[% bug.id %]">
[% IF canedit %]
[% IF product.onevoteonly %]
<input type="checkbox" name="[% bug.id %]" value="1"
...
...
@@ -92,7 +113,7 @@
[% ELSE %]
[% bug.count %]
[% END %]
</td>
</
a></
td>
<td align="right">
[% isclosed = !bug.opened %]
<a href="show_bug.cgi?id=[% bug.id %]">
...
...
votes.cgi
View file @
a2b7d94d
...
...
@@ -217,6 +217,7 @@ sub show_user {
$vars
->
{
'canedit'
}
=
$canedit
;
$vars
->
{
'voting_user'
}
=
{
"login"
=>
$name
};
$vars
->
{
'products'
}
=
\
@products
;
$vars
->
{
'bug_id'
}
=
$bug_id
;
print
$cgi
->
header
();
$template
->
process
(
"bug/votes/list-for-user.html.tmpl"
,
$vars
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment