Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
1f2f0ff9d94c
Commit
cbc56a96
authored
Mar 15, 2012
by
Ariejan de Vroom
Browse files
Updated upvotes view for issue and merge request show
parent
bc615f7204d6
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/assets/stylesheets/common.scss
View file @
1f2f0ff9
...
...
@@ -926,3 +926,12 @@ p.time {
font-style
:
italic
;
color
:
#999
;
}
.upvotes
{
font-size
:
14px
;
font-weight
:
bold
;
color
:
#468847
;
text-align
:
right
;
padding
:
4px
;
margin
:
2px
;
}
app/views/issues/show.html.haml
View file @
1f2f0ff9
...
...
@@ -14,9 +14,9 @@
=
link_to
edit_project_issue_path
(
@project
,
@issue
),
:class
=>
"btn"
do
Edit
%br
-
if
@issue
.
upvotes
>
0
=
link_to
"#notes"
,
:class
=>
"btn success"
do
+
#{
@issue
.
upvotes
}
.upvotes
#upvotes
=
"+
#{
pluralize
@issue
.
upvotes
,
'upvote'
}
"
.back_link
...
...
app/views/merge_requests/show.html.haml
View file @
1f2f0ff9
...
...
@@ -18,9 +18,9 @@
=
link_to
edit_project_merge_request_path
(
@project
,
@merge_request
),
:class
=>
"btn"
do
Edit
%br
-
if
@merge_request
.
upvotes
>
0
=
link_to
"#notes"
,
:class
=>
"btn success"
do
+
#{
@merge_request
.
upvotes
}
.upvotes
#upvotes
=
"+
#{
pluralize
@merge_request
.
upvotes
,
'upvote'
}
"
.back_link
=
link_to
project_merge_requests_path
(
@project
)
do
...
...
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