BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1271b4ce
Commit
1271b4ce
authored
Sep 08, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update display of merge requests and issues to also show downvotes
parent
7b0c7ae5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
9 deletions
+27
-9
common.scss
app/assets/stylesheets/common.scss
+15
-5
_show.html.haml
app/views/issues/_show.html.haml
+2
-0
show.html.haml
app/views/issues/show.html.haml
+4
-2
_merge_request.html.haml
app/views/merge_requests/_merge_request.html.haml
+2
-0
_mr_title.html.haml
app/views/merge_requests/show/_mr_title.html.haml
+4
-2
No files found.
app/assets/stylesheets/common.scss
View file @
1271b4ce
...
...
@@ -406,13 +406,23 @@ p.time {
}
}
.
up
votes
{
.votes
{
font-size
:
14px
;
font-weight
:
bold
;
color
:
#468847
;
text-align
:
right
;
padding
:
4px
;
margin
:
2px
;
padding
:
4px
0
;
margin
:
2px
0
;
.upvotes
{
display
:
inline-block
;
color
:
#468847
;
padding
:
0
4px
;
margin
:
0
2px
;
}
.downvotes
{
display
:
inline-block
;
color
:
#B94A48
;
padding
:
0
4px
;
margin
:
0
2px
;
}
}
/* Fix for readme code (stopped it from being yellow) */
...
...
app/views/issues/_show.html.haml
View file @
1271b4ce
...
...
@@ -36,3 +36,5 @@
-
if
issue
.
upvotes
>
0
%span
.badge.badge-success
=
"+
#{
issue
.
upvotes
}
"
-
if
issue
.
downvotes
>
0
%span
.badge.badge-important
=
"-
#{
issue
.
downvotes
}
"
app/views/issues/show.html.haml
View file @
1271b4ce
...
...
@@ -17,8 +17,10 @@
Edit
%br
-
if
@issue
.
upvotes
>
0
.upvotes
#upvotes
=
"+
#{
pluralize
@issue
.
upvotes
,
'upvote'
}
"
.votes
#votes
Votes:
.upvotes
#upvotes
=
"
#{
@issue
.
upvotes
}
up"
.downvotes
#downvotes
=
"
#{
@issue
.
downvotes
}
down"
.back_link
=
link_to
project_issues_path
(
@project
)
do
...
...
app/views/merge_requests/_merge_request.html.haml
View file @
1271b4ce
...
...
@@ -25,3 +25,5 @@
ago
-
if
merge_request
.
upvotes
>
0
%span
.badge.badge-success
=
"+
#{
merge_request
.
upvotes
}
"
-
if
merge_request
.
downvotes
>
0
%span
.badge.badge-important
=
"-
#{
merge_request
.
downvotes
}
"
app/views/merge_requests/show/_mr_title.html.haml
View file @
1271b4ce
...
...
@@ -24,8 +24,10 @@
Edit
%br
-
if
@merge_request
.
upvotes
>
0
.upvotes
#upvotes
=
"+
#{
pluralize
@merge_request
.
upvotes
,
'upvote'
}
"
.votes
#votes
Votes:
.upvotes
#upvotes
=
"
#{
@merge_request
.
upvotes
}
up"
.downvotes
#downvotes
=
"
#{
@merge_request
.
downvotes
}
down"
.back_link
...
...
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