Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
945702a3
Commit
945702a3
authored
Mar 15, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #556 from gitlabhq/plusone_ui
Updated upvotes view for issue and merge request show
parents
27e36998
cbc56a96
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+9
-0
app/views/issues/show.html.haml
app/views/issues/show.html.haml
+2
-2
app/views/merge_requests/show.html.haml
app/views/merge_requests/show.html.haml
+2
-2
No files found.
app/assets/stylesheets/common.scss
View file @
945702a3
...
...
@@ -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 @
945702a3
...
...
@@ -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 @
945702a3
...
...
@@ -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