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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
f0750b91
Commit
f0750b91
authored
Feb 18, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add close button to MR comment form
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
555c25e6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
20 deletions
+26
-20
app/assets/stylesheets/generic/buttons.scss
app/assets/stylesheets/generic/buttons.scss
+16
-1
app/assets/stylesheets/sections/issues.scss
app/assets/stylesheets/sections/issues.scss
+0
-15
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+4
-4
app/views/projects/merge_requests/_show.html.haml
app/views/projects/merge_requests/_show.html.haml
+6
-0
No files found.
app/assets/stylesheets/generic/buttons.scss
View file @
f0750b91
...
...
@@ -118,7 +118,6 @@
@extend
.btn-primary
;
}
&
.btn-close
,
&
.btn-remove
{
@extend
.btn-danger
;
}
...
...
@@ -143,6 +142,22 @@
line-height
:
16px
;
margin
:
2px
;
}
&
.btn-close
{
color
:
#B94A48
;
font-weight
:
bold
;
&
:hover
{
color
:
#B94A48
;
}
}
&
.btn-reopen
{
color
:
#468847
;
font-weight
:
bold
;
&
:hover
{
color
:
#468847
;
}
}
}
.btn-block
{
...
...
app/assets/stylesheets/sections/issues.scss
View file @
f0750b91
...
...
@@ -65,21 +65,6 @@
}
}
.btn.close_issue
{
color
:
#B94A48
;
font-weight
:
bold
;
&
:hover
{
color
:
#B94A48
;
}
}
.btn.reopen_issue
{
color
:
#468847
;
font-weight
:
bold
;
&
:hover
{
color
:
#468847
;
}
}
@media
(
min-width
:
800px
)
{
.issues_filters
select
{
width
:
160px
;
}
}
@media
(
min-width
:
1200px
)
{
.issues_filters
select
{
width
:
220px
;
}
}
...
...
app/views/projects/issues/show.html.haml
View file @
f0750b91
...
...
@@ -16,9 +16,9 @@
New Issue
-
if
can?
(
current_user
,
:modify_issue
,
@issue
)
-
if
@issue
.
closed?
=
link_to
'Reopen'
,
project_issue_path
(
@project
,
@issue
,
issue:
{
state_event: :reopen
},
status_only:
true
),
method: :put
,
class:
"btn grouped
reopen_issue
"
=
link_to
'Reopen'
,
project_issue_path
(
@project
,
@issue
,
issue:
{
state_event: :reopen
},
status_only:
true
),
method: :put
,
class:
"btn grouped
btn-reopen
"
-
else
=
link_to
'Close'
,
project_issue_path
(
@project
,
@issue
,
issue:
{
state_event: :close
},
status_only:
true
),
method: :put
,
class:
"btn grouped
close_issu
e"
,
title:
"Close Issue"
=
link_to
'Close'
,
project_issue_path
(
@project
,
@issue
,
issue:
{
state_event: :close
},
status_only:
true
),
method: :put
,
class:
"btn grouped
btn-clos
e"
,
title:
"Close Issue"
=
link_to
edit_project_issue_path
(
@project
,
@issue
),
class:
"btn grouped"
do
%i
.icon-edit
...
...
@@ -54,9 +54,9 @@
-
content_for
:note_actions
do
-
if
can?
(
current_user
,
:modify_issue
,
@issue
)
-
if
@issue
.
closed?
=
link_to
'Reopen Issue'
,
project_issue_path
(
@project
,
@issue
,
issue:
{
state_event: :reopen
},
status_only:
true
),
method: :put
,
class:
"btn grouped
reopen_issue
"
=
link_to
'Reopen Issue'
,
project_issue_path
(
@project
,
@issue
,
issue:
{
state_event: :reopen
},
status_only:
true
),
method: :put
,
class:
"btn grouped
btn-reopen
"
-
else
=
link_to
'Close Issue'
,
project_issue_path
(
@project
,
@issue
,
issue:
{
state_event: :close
},
status_only:
true
),
method: :put
,
class:
"btn grouped
close_issu
e"
,
title:
"Close Issue"
=
link_to
'Close Issue'
,
project_issue_path
(
@project
,
@issue
,
issue:
{
state_event: :close
},
status_only:
true
),
method: :put
,
class:
"btn grouped
btn-clos
e"
,
title:
"Close Issue"
.participants
%cite
.cgray
#{
@issue
.
participants
.
count
}
participants
...
...
app/views/projects/merge_requests/_show.html.haml
View file @
f0750b91
...
...
@@ -22,6 +22,12 @@
%i
.icon-list-alt
Diff
-
content_for
:note_actions
do
-
if
can?
(
current_user
,
:modify_merge_request
,
@merge_request
)
-
unless
@merge_request
.
closed?
=
link_to
'Close'
,
project_merge_request_path
(
@project
,
@merge_request
,
merge_request:
{
state_event: :close
}),
method: :put
,
class:
"btn grouped btn-close"
,
title:
"Close merge request"
.notes.tab-content.voting_notes
#notes
{
class:
(
controller
.
action_name
==
'show'
)
?
""
:
"hide"
}
=
render
"projects/notes/notes_with_form"
.diffs.tab-content
...
...
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