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
bc615f7204d6
Commit
27e36998
authored
Mar 15, 2012
by
Ariejan de Vroom
Browse files
Links +upvote buttons directly to the notes section
parent
6a3b38a602c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/views/issues/show.html.haml
View file @
bc615f72
...
...
@@ -15,7 +15,8 @@
Edit
-
if
@issue
.
upvotes
>
0
%button
.btn.success
=
"+
#{
@issue
.
upvotes
}
"
=
link_to
"#notes"
,
:class
=>
"btn success"
do
+
#{
@issue
.
upvotes
}
.back_link
...
...
@@ -45,4 +46,4 @@
%div
=
simple_format
@issue
.
title
.issue_notes
=
render
"notes/notes"
,
:tid
=>
@issue
.
id
,
:tt
=>
"issue"
.issue_notes
#notes
=
render
"notes/notes"
,
:tid
=>
@issue
.
id
,
:tt
=>
"issue"
app/views/merge_requests/show.html.haml
View file @
bc615f72
...
...
@@ -15,11 +15,12 @@
=
link_to
'Reopen'
,
project_merge_request_path
(
@project
,
@merge_request
,
:merge_request
=>
{
:closed
=>
false
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"btn"
-
else
=
link_to
'Close'
,
project_merge_request_path
(
@project
,
@merge_request
,
:merge_request
=>
{
:closed
=>
true
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"btn"
,
:title
=>
"Close merge request"
=
link_to
edit_project_merge_request_path
(
@project
,
@merge_request
),
:class
=>
"btn
small
"
do
=
link_to
edit_project_merge_request_path
(
@project
,
@merge_request
),
:class
=>
"btn"
do
Edit
-
if
@merge_request
.
upvotes
>
0
%button
.btn.success
=
"+
#{
@merge_request
.
upvotes
}
"
=
link_to
"#notes"
,
:class
=>
"btn success"
do
+
#{
@merge_request
.
upvotes
}
.back_link
=
link_to
project_merge_requests_path
(
@project
)
do
...
...
@@ -65,8 +66,7 @@
%img
{
:src
=>
"/assets/ajax-loader-facebook.gif"
,
:class
=>
"dashboard-loader"
}
.merge-request-notes
.merge_request_notes
=
render
"notes/notes"
,
:tid
=>
@merge_request
.
id
,
:tt
=>
"merge_request"
.merge_request_notes
#notes
=
render
"notes/notes"
,
:tid
=>
@merge_request
.
id
,
:tt
=>
"merge_request"
.merge-request-diffs
...
...
@@ -77,6 +77,7 @@
})
=
render
"notes/per_line_form"
:javascript
$
(
document
).
ready
(
function
(){
$
(
"
.line_note_link, .line_note_reply_link
"
).
live
(
"
click
"
,
function
(
e
)
{
...
...
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