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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
79c90821
Commit
79c90821
authored
Dec 16, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename .issuable-details to .detail-page (and -header and -description)
parent
41d6b370
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
188 additions
and
188 deletions
+188
-188
app/assets/javascripts/issue.js.coffee
app/assets/javascripts/issue.js.coffee
+4
-4
app/assets/javascripts/merge_request.js.coffee
app/assets/javascripts/merge_request.js.coffee
+4
-4
app/assets/stylesheets/framework/issue_box.scss
app/assets/stylesheets/framework/issue_box.scss
+5
-5
app/assets/stylesheets/framework/markdown_area.scss
app/assets/stylesheets/framework/markdown_area.scss
+1
-1
app/assets/stylesheets/pages/detail_page.scss
app/assets/stylesheets/pages/detail_page.scss
+33
-0
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+0
-32
app/helpers/issues_helper.rb
app/helpers/issues_helper.rb
+5
-5
app/views/dashboard/milestones/show.html.haml
app/views/dashboard/milestones/show.html.haml
+11
-12
app/views/groups/milestones/show.html.haml
app/views/groups/milestones/show.html.haml
+16
-17
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+33
-32
app/views/projects/merge_requests/_show.html.haml
app/views/projects/merge_requests/_show.html.haml
+2
-1
app/views/projects/merge_requests/show/_mr_box.html.haml
app/views/projects/merge_requests/show/_mr_box.html.haml
+2
-2
app/views/projects/merge_requests/show/_mr_title.html.haml
app/views/projects/merge_requests/show/_mr_title.html.haml
+4
-3
app/views/projects/milestones/show.html.haml
app/views/projects/milestones/show.html.haml
+35
-36
app/views/shared/issuable/_form.html.haml
app/views/shared/issuable/_form.html.haml
+1
-1
app/views/shared/snippets/_header.html.haml
app/views/shared/snippets/_header.html.haml
+23
-24
features/steps/project/merge_requests.rb
features/steps/project/merge_requests.rb
+2
-2
features/steps/project/snippets.rb
features/steps/project/snippets.rb
+1
-1
spec/features/issues/filter_by_milestone_spec.rb
spec/features/issues/filter_by_milestone_spec.rb
+2
-2
spec/features/task_lists_spec.rb
spec/features/task_lists_spec.rb
+2
-2
spec/javascripts/fixtures/issues_show.html.haml
spec/javascripts/fixtures/issues_show.html.haml
+1
-1
spec/javascripts/fixtures/merge_requests_show.html.haml
spec/javascripts/fixtures/merge_requests_show.html.haml
+1
-1
No files found.
app/assets/javascripts/issue.js.coffee
View file @
79c90821
...
@@ -10,12 +10,12 @@ class @Issue
...
@@ -10,12 +10,12 @@ class @Issue
@
initTaskList
()
@
initTaskList
()
initTaskList
:
->
initTaskList
:
->
$
(
'.
issue-details
.js-task-list-container'
).
taskList
(
'enable'
)
$
(
'.
detail-page-description
.js-task-list-container'
).
taskList
(
'enable'
)
$
(
document
).
on
'tasklist:changed'
,
'.
issue-details
.js-task-list-container'
,
@
updateTaskList
$
(
document
).
on
'tasklist:changed'
,
'.
detail-page-description
.js-task-list-container'
,
@
updateTaskList
disableTaskList
:
->
disableTaskList
:
->
$
(
'.
issue-details
.js-task-list-container'
).
taskList
(
'disable'
)
$
(
'.
detail-page-description
.js-task-list-container'
).
taskList
(
'disable'
)
$
(
document
).
off
'tasklist:changed'
,
'.
issue-details
.js-task-list-container'
$
(
document
).
off
'tasklist:changed'
,
'.
detail-page-description
.js-task-list-container'
# TODO (rspeicher): Make the issue description inline-editable like a note so
# TODO (rspeicher): Make the issue description inline-editable like a note so
# that we can re-use its form here
# that we can re-use its form here
...
...
app/assets/javascripts/merge_request.js.coffee
View file @
79c90821
...
@@ -40,12 +40,12 @@ class @MergeRequest
...
@@ -40,12 +40,12 @@ class @MergeRequest
this
.
$
(
'.all-commits'
).
removeClass
'hide'
this
.
$
(
'.all-commits'
).
removeClass
'hide'
initTaskList
:
->
initTaskList
:
->
$
(
'.
merge-request-details
.js-task-list-container'
).
taskList
(
'enable'
)
$
(
'.
detail-page-description
.js-task-list-container'
).
taskList
(
'enable'
)
$
(
document
).
on
'tasklist:changed'
,
'.
merge-request-details
.js-task-list-container'
,
@
updateTaskList
$
(
document
).
on
'tasklist:changed'
,
'.
detail-page-description
.js-task-list-container'
,
@
updateTaskList
disableTaskList
:
->
disableTaskList
:
->
$
(
'.
merge-request-details
.js-task-list-container'
).
taskList
(
'disable'
)
$
(
'.
detail-page-description
.js-task-list-container'
).
taskList
(
'disable'
)
$
(
document
).
off
'tasklist:changed'
,
'.
merge-request-details
.js-task-list-container'
$
(
document
).
off
'tasklist:changed'
,
'.
detail-page-description
.js-task-list-container'
# TODO (rspeicher): Make the merge request description inline-editable like a
# TODO (rspeicher): Make the merge request description inline-editable like a
# note so that we can re-use its form here
# note so that we can re-use its form here
...
...
app/assets/stylesheets/framework/issue_box.scss
View file @
79c90821
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
*
*
*/
*/
.
issue
-box
{
.
status
-box
{
@include
border-radius
(
2px
);
@include
border-radius
(
2px
);
display
:
block
;
display
:
block
;
...
@@ -14,22 +14,22 @@
...
@@ -14,22 +14,22 @@
margin-right
:
10px
;
margin-right
:
10px
;
font-size
:
$gl-font-size
;
font-size
:
$gl-font-size
;
&
.
issue
-box-closed
{
&
.
status
-box-closed
{
background-color
:
$gl-danger
;
background-color
:
$gl-danger
;
color
:
#FFF
;
color
:
#FFF
;
}
}
&
.
issue
-box-merged
{
&
.
status
-box-merged
{
background-color
:
$gl-primary
;
background-color
:
$gl-primary
;
color
:
#FFF
;
color
:
#FFF
;
}
}
&
.
issue
-box-open
{
&
.
status
-box-open
{
background-color
:
#019875
;
background-color
:
#019875
;
color
:
#FFF
;
color
:
#FFF
;
}
}
&
.
issue
-box-expired
{
&
.
status
-box-expired
{
background
:
#cea61b
;
background
:
#cea61b
;
color
:
#FFF
;
color
:
#FFF
;
}
}
...
...
app/assets/stylesheets/framework/markdown_area.scss
View file @
79c90821
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
.new_note
,
.new_note
,
.edit_note
,
.edit_note
,
.
issuabl
e-description
,
.
detail-pag
e-description
,
.milestone-description
,
.milestone-description
,
.wiki-content
,
.wiki-content
,
.merge-request-form
{
.merge-request-form
{
...
...
app/assets/stylesheets/pages/detail_page.scss
0 → 100644
View file @
79c90821
.detail-page-header
{
margin
:
-
$gl-padding
;
padding
:
7px
$gl-padding
;
margin-bottom
:
0px
;
border-bottom
:
1px
solid
$border-color
;
color
:
#5c5d5e
;
font-size
:
16px
;
line-height
:
42px
;
.author
{
color
:
#5c5d5e
;
}
.identifier
{
color
:
#5c5d5e
;
}
}
.detail-page-description
{
.title
{
margin
:
0
;
font-size
:
23px
;
color
:
#313236
;
}
.description
{
margin-top
:
6px
;
p
:last-child
{
margin-bottom
:
0
;
}
}
}
app/assets/stylesheets/pages/issuable.scss
View file @
79c90821
...
@@ -36,20 +36,6 @@
...
@@ -36,20 +36,6 @@
}
}
.issuable-details
{
.issuable-details
{
.issue-title
{
margin
:
0
;
font-size
:
23px
;
color
:
#313236
;
}
.description
{
margin-top
:
6px
;
p
:last-child
{
margin-bottom
:
0
;
}
}
section
{
section
{
border-right
:
1px
solid
#ECEEF1
;
border-right
:
1px
solid
#ECEEF1
;
...
@@ -136,21 +122,3 @@
...
@@ -136,21 +122,3 @@
margin-right
:
2px
;
margin-right
:
2px
;
}
}
}
}
.issuable-title
{
margin
:
-
$gl-padding
;
padding
:
7px
$gl-padding
;
margin-bottom
:
0px
;
border-bottom
:
1px
solid
$border-color
;
color
:
#5c5d5e
;
font-size
:
16px
;
line-height
:
42px
;
.author
{
color
:
#5c5d5e
;
}
.issuable-id
{
color
:
#5c5d5e
;
}
}
app/helpers/issues_helper.rb
View file @
79c90821
...
@@ -57,15 +57,15 @@ module IssuesHelper
...
@@ -57,15 +57,15 @@ module IssuesHelper
options_from_collection_for_select
(
milestones
,
'id'
,
'title'
,
object
.
milestone_id
)
options_from_collection_for_select
(
milestones
,
'id'
,
'title'
,
object
.
milestone_id
)
end
end
def
issue
_box_class
(
item
)
def
status
_box_class
(
item
)
if
item
.
respond_to?
(
:expired?
)
&&
item
.
expired?
if
item
.
respond_to?
(
:expired?
)
&&
item
.
expired?
'
issue
-box-expired'
'
status
-box-expired'
elsif
item
.
respond_to?
(
:merged?
)
&&
item
.
merged?
elsif
item
.
respond_to?
(
:merged?
)
&&
item
.
merged?
'
issue
-box-merged'
'
status
-box-merged'
elsif
item
.
closed?
elsif
item
.
closed?
'
issue
-box-closed'
'
status
-box-closed'
else
else
'
issue
-box-open'
'
status
-box-open'
end
end
end
end
...
...
app/views/dashboard/milestones/show.html.haml
View file @
79c90821
-
page_title
@milestone
.
title
,
"Milestones"
-
page_title
@milestone
.
title
,
"Milestones"
-
header_title
"Milestones"
,
dashboard_milestones_path
-
header_title
"Milestones"
,
dashboard_milestones_path
.issuable-details
.detail-page-header
.issuable-title
.status-box
{
class:
"status-box-#{@milestone.closed? ? 'closed' : 'open'}"
}
.issue-box
{
class:
"issue-box-#{@milestone.closed? ? 'closed' : 'open'}"
}
-
if
@milestone
.
closed?
-
if
@milestone
.
closed?
Closed
Closed
-
else
-
else
Open
Open
%span
.identifier
%span
.issuable-id
Milestone
#{
@milestone
.
title
}
Milestone
#{
@milestone
.
title
}
.gray-content-block.second-block
.detail-page-description
.gray-content-block.second-block
%h2
.issue-
title
%h2
.
title
=
markdown
escape_once
(
@milestone
.
title
),
pipeline: :single_line
=
markdown
escape_once
(
@milestone
.
title
),
pipeline: :single_line
-
if
@milestone
.
complete?
&&
@milestone
.
active?
-
if
@milestone
.
complete?
&&
@milestone
.
active?
.alert.alert-success.prepend-top-default
.alert.alert-success.prepend-top-default
...
...
app/views/groups/milestones/show.html.haml
View file @
79c90821
-
page_title
@milestone
.
title
,
"Milestones"
-
page_title
@milestone
.
title
,
"Milestones"
=
render
"header_title"
=
render
"header_title"
.issuable-details
.detail-page-header
.issuable-title
.status-box
{
class:
"status-box-#{@milestone.closed? ? 'closed' : 'open'}"
}
.issue-box
{
class:
"issue-box-#{@milestone.closed? ? 'closed' : 'open'}"
}
-
if
@milestone
.
closed?
-
if
@milestone
.
closed?
Closed
Closed
-
else
Open
%span
.identifier
Milestone
#{
@milestone
.
title
}
.pull-right
-
if
can?
(
current_user
,
:admin_milestones
,
@group
)
-
if
@milestone
.
active?
=
link_to
'Close Milestone'
,
group_milestone_path
(
@group
,
@milestone
.
safe_title
,
title:
@milestone
.
title
,
milestone:
{
state_event: :close
}),
method: :put
,
class:
"btn btn-grouped btn-close"
-
else
-
else
Open
=
link_to
'Reopen Milestone'
,
group_milestone_path
(
@group
,
@milestone
.
safe_title
,
title:
@milestone
.
title
,
milestone:
{
state_event: :activate
}),
method: :put
,
class:
"btn btn-grouped btn-reopen"
%span
.issuable-id
Milestone
#{
@milestone
.
title
}
.pull-right
-
if
can?
(
current_user
,
:admin_milestones
,
@group
)
-
if
@milestone
.
active?
=
link_to
'Close Milestone'
,
group_milestone_path
(
@group
,
@milestone
.
safe_title
,
title:
@milestone
.
title
,
milestone:
{
state_event: :close
}),
method: :put
,
class:
"btn btn-grouped btn-close"
-
else
=
link_to
'Reopen Milestone'
,
group_milestone_path
(
@group
,
@milestone
.
safe_title
,
title:
@milestone
.
title
,
milestone:
{
state_event: :activate
}),
method: :put
,
class:
"btn btn-grouped btn-reopen"
.gray-content-block.second-block
.detail-page-description
.gray-content-block.second-block
%h2
.issue-
title
%h2
.
title
=
markdown
escape_once
(
@milestone
.
title
),
pipeline: :single_line
=
markdown
escape_once
(
@milestone
.
title
),
pipeline: :single_line
-
if
@milestone
.
complete?
&&
@milestone
.
active?
-
if
@milestone
.
complete?
&&
@milestone
.
active?
.alert.alert-success.prepend-top-default
.alert.alert-success.prepend-top-default
...
...
app/views/projects/issues/show.html.haml
View file @
79c90821
...
@@ -2,44 +2,45 @@
...
@@ -2,44 +2,45 @@
=
render
"header_title"
=
render
"header_title"
.issue
.issue
.issue-details.issuable-details
.detail-page-header
.issuable-title
.status-box
{
class:
status_box_class
(
@issue
)
}
.issue-box
{
class:
issue_box_class
(
@issue
)
}
-
if
@issue
.
closed?
Closed
-
else
Open
%span
.identifier
Issue ##{@issue.iid}
%span
.creator
·
opened by
#{
link_to_member
(
@project
,
@issue
.
author
,
size:
24
)
}
·
=
time_ago_with_tooltip
(
@issue
.
created_at
,
placement:
'bottom'
,
html_class:
'issue_created_ago'
)
-
if
@issue
.
updated_at
!=
@issue
.
created_at
%span
·
=
icon
(
'edit'
,
title:
'edited'
)
=
time_ago_with_tooltip
(
@issue
.
updated_at
,
placement:
'bottom'
,
html_class:
'issue_edited_ago'
)
.pull-right
-
if
can?
(
current_user
,
:create_issue
,
@project
)
=
link_to
new_namespace_project_issue_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-grouped new-issue-link'
,
title:
'New Issue'
,
id:
'new_issue_link'
do
=
icon
(
'plus'
)
New Issue
-
if
can?
(
current_user
,
:update_issue
,
@issue
)
-
if
@issue
.
closed?
-
if
@issue
.
closed?
Closed
=
link_to
'Reopen'
,
issue_path
(
@issue
,
issue:
{
state_event: :reopen
},
status_only:
true
),
method: :put
,
class:
'btn btn-grouped btn-reopen'
-
else
-
else
Open
=
link_to
'Close'
,
issue_path
(
@issue
,
issue:
{
state_event: :close
},
status_only:
true
),
method: :put
,
class:
'btn btn-grouped btn-close'
,
title:
'Close Issue'
%span
.issuable-id
Issue ##{@issue.iid}
%span
.creator
·
opened by
#{
link_to_member
(
@project
,
@issue
.
author
,
size:
24
)
}
·
=
time_ago_with_tooltip
(
@issue
.
created_at
,
placement:
'bottom'
,
html_class:
'issue_created_ago'
)
-
if
@issue
.
updated_at
!=
@issue
.
created_at
%span
·
=
icon
(
'edit'
,
title:
'edited'
)
=
time_ago_with_tooltip
(
@issue
.
updated_at
,
placement:
'bottom'
,
html_class:
'issue_edited_ago'
)
.pull-right
=
link_to
edit_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
@issue
),
class:
'btn btn-grouped issuable-edit'
do
-
if
can?
(
current_user
,
:create_issue
,
@project
)
=
icon
(
'pencil-square-o'
)
=
link_to
new_namespace_project_issue_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-grouped new-issue-link'
,
title:
'New Issue'
,
id:
'new_issue_link'
do
Edit
=
icon
(
'plus'
)
New Issue
-
if
can?
(
current_user
,
:update_issue
,
@issue
)
-
if
@issue
.
closed?
=
link_to
'Reopen'
,
issue_path
(
@issue
,
issue:
{
state_event: :reopen
},
status_only:
true
),
method: :put
,
class:
'btn btn-grouped btn-reopen'
-
else
=
link_to
'Close'
,
issue_path
(
@issue
,
issue:
{
state_event: :close
},
status_only:
true
),
method: :put
,
class:
'btn btn-grouped btn-close'
,
title:
'Close Issue'
=
link_to
edit_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
@issue
),
class:
'btn btn-grouped issuable-edit'
do
=
icon
(
'pencil-square-o'
)
Edit
.issue-details.issuable-details
.row
.row
%section
.col-md-9
%section
.col-md-9
.gray-content-block
.
detail-page-description.
gray-content-block
%h2
.
issue-
title
%h2
.title
=
markdown
escape_once
(
@issue
.
title
),
pipeline: :single_line
=
markdown
escape_once
(
@issue
.
title
),
pipeline: :single_line
%div
%div
-
if
@issue
.
description
.
present?
-
if
@issue
.
description
.
present?
...
...
app/views/projects/merge_requests/_show.html.haml
View file @
79c90821
...
@@ -5,8 +5,9 @@
...
@@ -5,8 +5,9 @@
-
fluid_layout
true
-
fluid_layout
true
.merge-request
{
'data-url'
=>
merge_request_path
(
@merge_request
)}
.merge-request
{
'data-url'
=>
merge_request_path
(
@merge_request
)}
=
render
"projects/merge_requests/show/mr_title"
.merge-request-details.issuable-details
.merge-request-details.issuable-details
=
render
"projects/merge_requests/show/mr_title"
.row
.row
%section
.col-md-9
%section
.col-md-9
=
render
"projects/merge_requests/show/mr_box"
=
render
"projects/merge_requests/show/mr_box"
...
...
app/views/projects/merge_requests/show/_mr_box.html.haml
View file @
79c90821
.gray-content-block.middle-block
.
detail-page-description.
gray-content-block.middle-block
%h2
.
issue-
title
%h2
.title
=
markdown
escape_once
(
@merge_request
.
title
),
pipeline: :single_line
=
markdown
escape_once
(
@merge_request
.
title
),
pipeline: :single_line
%div
%div
...
...
app/views/projects/merge_requests/show/_mr_title.html.haml
View file @
79c90821
.
issuable-title
.
detail-page-header
.
issue-box
{
class:
issue
_box_class
(
@merge_request
)
}
.
status-box
{
class:
status
_box_class
(
@merge_request
)
}
=
@merge_request
.
state_human_name
=
@merge_request
.
state_human_name
%span
.issuable-id
Merge Request ##{@merge_request.iid}
%span
.identifier
Merge Request ##{@merge_request.iid}
%span
.creator
%span
.creator
·
·
opened by
#{
link_to_member
(
@project
,
@merge_request
.
author
,
size:
24
)
}
opened by
#{
link_to_member
(
@project
,
@merge_request
.
author
,
size:
24
)
}
...
...
app/views/projects/milestones/show.html.haml
View file @
79c90821
-
page_title
@milestone
.
title
,
"Milestones"
-
page_title
@milestone
.
title
,
"Milestones"
=
render
"header_title"
=
render
"header_title"
.issuable-details
.detail-page-header
.issuable-title
.status-box
{
class:
status_box_class
(
@milestone
)
}
.issue-box
{
class:
issue_box_class
(
@milestone
)
}
-
if
@milestone
.
closed?
-
if
@milestone
.
closed?
Closed
Closed
-
elsif
@milestone
.
expired?
-
elsif
@milestone
.
expired?
Expired
Expired
-
else
Open
%span
.identifier
Milestone ##{@milestone.iid}
-
if
@milestone
.
expires_at
%span
.creator
·
=
@milestone
.
expires_at
.pull-right
-
if
can?
(
current_user
,
:admin_milestone
,
@project
)
-
if
@milestone
.
active?
=
link_to
'Close Milestone'
,
namespace_project_milestone_path
(
@project
.
namespace
,
@project
,
@milestone
,
milestone:
{
state_event: :close
}),
method: :put
,
class:
"btn btn-close btn-grouped"
-
else
-
else
Open
=
link_to
'Reopen Milestone'
,
namespace_project_milestone_path
(
@project
.
namespace
,
@project
,
@milestone
,
milestone:
{
state_event: :activate
}),
method: :put
,
class:
"btn btn-reopen btn-grouped"
%span
.issuable-id
Milestone ##{@milestone.iid}
-
if
@milestone
.
expires_at
%span
.creator
·
=
@milestone
.
expires_at
.pull-right
-
if
can?
(
current_user
,
:admin_milestone
,
@project
)
-
if
@milestone
.
active?
=
link_to
'Close Milestone'
,
namespace_project_milestone_path
(
@project
.
namespace
,
@project
,
@milestone
,
milestone:
{
state_event: :close
}),
method: :put
,
class:
"btn btn-close btn-grouped"
-
else
=
link_to
'Reopen Milestone'
,
namespace_project_milestone_path
(
@project
.
namespace
,
@project
,
@milestone
,
milestone:
{
state_event: :activate
}),
method: :put
,
class:
"btn btn-reopen btn-grouped"
=
link_to
namespace_project_milestone_path
(
@project
.
namespace
,
@project
,
@milestone
),
data:
{
confirm:
'Are you sure?'
},
method: :delete
,
class:
"btn btn-grouped btn-remove"
do
=
link_to
namespace_project_milestone_path
(
@project
.
namespace
,
@project
,
@milestone
),
data:
{
confirm:
'Are you sure?'
},
method: :delete
,
class:
"btn btn-grouped btn-remove"
do
%i
.fa.fa-trash-o
%i
.fa.fa-trash-o
Delete
Delete
=
link_to
edit_namespace_project_milestone_path
(
@project
.
namespace
,
@project
,
@milestone
),
class:
"btn btn-grouped"
do
%i
.fa.fa-pencil-square-o
Edit
.gray-content-block.second-block
=
link_to
edit_namespace_project_milestone_path
(
@project
.
namespace
,
@project
,
@milestone
),
class:
"btn btn-grouped"
do
%h2
.issue-title
%i
.fa.fa-pencil-square-o
=
markdown
escape_once
(
@milestone
.
title
),
pipeline: :single_line
Edit
%div
-
if
@milestone
.
description
.
present?
.detail-page-description.gray-content-block.second-block
.description
%h2
.title
.wiki
=
markdown
escape_once
(
@milestone
.
title
),
pipeline: :single_line
=
preserve
do
%div
=
markdown
@milestone
.
description
-
if
@milestone
.
description
.
present?
.description
.wiki
=
preserve
do
=
markdown
@milestone
.
description
-
if
@milestone
.
issues
.
any?
&&
@milestone
.
can_be_closed?
-
if
@milestone
.
issues
.
any?
&&
@milestone
.
can_be_closed?
.alert.alert-success.prepend-top-default
.alert.alert-success.prepend-top-default
...
...
app/views/shared/issuable/_form.html.haml
View file @
79c90821
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
-
else
-
else
Start the title with
<code>
[WIP]
</code>
or
<code>
WIP:
</code>
to prevent a
Start the title with
<code>
[WIP]
</code>
or
<code>
WIP:
</code>
to prevent a
<strong>
Work In Progress
</strong>
merge request from being merged before it's ready.
<strong>
Work In Progress
</strong>
merge request from being merged before it's ready.
.form-group.
issuabl
e-description
.form-group.
detail-pag
e-description
=
f
.
label
:description
,
'Description'
,
class:
'control-label'
=
f
.
label
:description
,
'Description'
,
class:
'control-label'
.col-sm-10
.col-sm-10
...
...
app/views/shared/snippets/_header.html.haml
View file @
79c90821
.issuable-details
.detail-page-header
.issuable-title
.snippet-box.has_tooltip
{
class:
visibility_level_color
(
@snippet
.
visibility_level
),
title:
snippet_visibility_level_description
(
@snippet
.
visibility_level
,
@snippet
),
data:
{
container:
'body'
}}
.snippet-box.has_tooltip
{
class:
visibility_level_color
(
@snippet
.
visibility_level
),
title:
snippet_visibility_level_description
(
@snippet
.
visibility_level
,
@snippet
),
data:
{
container:
'body'
}}
=
visibility_level_icon
(
@snippet
.
visibility_level
,
fw:
false
)
=
visibility_level_icon
(
@snippet
.
visibility_level
,
fw:
false
)
=
visibility_level_label
(
@snippet
.
visibility_level
)
=
visibility_level_label
(
@snippet
.
visibility_level
)
%span
.identifier
%span
.issuable-id
Snippet ##{@snippet.id}
Snippet ##{@snippet.id}
%span
.creator
%span
.creator
·
created by
#{
link_to_member
(
@project
,
@snippet
.
author
,
size:
24
)
}
·
created by
#{
link_to_member
(
@project
,
@snippet
.
author
,
size:
24
)
}
·
·
=
time_ago_with_tooltip
(
@snippet
.
created_at
,
placement:
'bottom'
,
html_class:
'snippet_updated_ago'
)
=
time_ago_with_tooltip
(
@snippet
.
created_at
,
placement:
'bottom'
,
html_class:
'snippet_updated_ago'
)
-
if
@snippet
.
updated_at
!=
@snippet
.
created_at
-
if
@snippet
.
updated_at
!=
@snippet
.
created_at
%span
%span
·
·
=
icon
(
'edit'
,
title:
'edited'
)
=
icon
(
'edit'
,
title:
'edited'
)
=
time_ago_with_tooltip
(
@snippet
.
updated_at
,
placement:
'bottom'
,
html_class:
'snippet_edited_ago'
)
=
time_ago_with_tooltip
(
@snippet
.
updated_at
,
placement:
'bottom'
,
html_class:
'snippet_edited_ago'
)
.pull-right
.pull-right
-
if
@snippet
.
project_id?
-
if
@snippet
.
project_id?
=
render
"projects/snippets/actions"
=
render
"projects/snippets/actions"
-
else
-
else
=
render
"snippets/actions"
=
render
"snippets/actions"
.gray-content-block.second-block
.detail-page-description
.gray-content-block.second-block
%h2
.issue-
title
%h2
.
title
=
markdown
escape_once
(
@snippet
.
title
),
pipeline: :single_line
=
markdown
escape_once
(
@snippet
.
title
),
pipeline: :single_line
features/steps/project/merge_requests.rb
View file @
79c90821
...
@@ -273,7 +273,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
...
@@ -273,7 +273,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
end
step
'I should see merged request'
do
step
'I should see merged request'
do
page
.
within
'.
issue
-box'
do
page
.
within
'.
status
-box'
do
expect
(
page
).
to
have_content
"Merged"
expect
(
page
).
to
have_content
"Merged"
end
end
end
end
...
@@ -283,7 +283,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
...
@@ -283,7 +283,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
end
step
'I should see reopened merge request "Bug NS-04"'
do
step
'I should see reopened merge request "Bug NS-04"'
do
page
.
within
'.
issue
-box'
do
page
.
within
'.
status
-box'
do
expect
(
page
).
to
have_content
"Open"
expect
(
page
).
to
have_content
"Open"
end
end
end
end
...
...
features/steps/project/snippets.rb
View file @
79c90821
...
@@ -42,7 +42,7 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
...
@@ -42,7 +42,7 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end
end
step
'I click link "Edit"'
do
step
'I click link "Edit"'
do
page
.
within
".
issuable-title
"
do
page
.
within
".
detail-page-header
"
do
click_link
"Edit"
click_link
"Edit"
end
end
end
end
...
...
spec/features/issues/filter_by_milestone_spec.rb
View file @
79c90821
...
@@ -13,7 +13,7 @@ feature 'Issue filtering by Milestone', feature: true do
...
@@ -13,7 +13,7 @@ feature 'Issue filtering by Milestone', feature: true do
visit_issues
(
project
)
visit_issues
(
project
)
filter_by_milestone
(
Milestone
::
None
.
title
)
filter_by_milestone
(
Milestone
::
None
.
title
)
expect
(
page
).
to
have_css
(
'.
issue-
title'
,
count:
1
)
expect
(
page
).
to
have_css
(
'.title'
,
count:
1
)
end
end
scenario
'filters by a specific Milestone'
,
js:
true
do
scenario
'filters by a specific Milestone'
,
js:
true
do
...
@@ -23,7 +23,7 @@ feature 'Issue filtering by Milestone', feature: true do
...
@@ -23,7 +23,7 @@ feature 'Issue filtering by Milestone', feature: true do
visit_issues
(
project
)
visit_issues
(
project
)
filter_by_milestone
(
milestone
.
title
)
filter_by_milestone
(
milestone
.
title
)
expect
(
page
).
to
have_css
(
'.
issue-
title'
,
count:
1
)
expect
(
page
).
to
have_css
(
'.title'
,
count:
1
)
end
end
def
visit_issues
(
project
)
def
visit_issues
(
project
)
...
...
spec/features/task_lists_spec.rb
View file @
79c90821
...
@@ -47,7 +47,7 @@ feature 'Task Lists', feature: true do
...
@@ -47,7 +47,7 @@ feature 'Task Lists', feature: true do
it
'contains the required selectors'
do
it
'contains the required selectors'
do
visit_issue
(
project
,
issue
)
visit_issue
(
project
,
issue
)
container
=
'.
issue-details
.description.js-task-list-container'
container
=
'.
detail-page-description
.description.js-task-list-container'
expect
(
page
).
to
have_selector
(
container
)
expect
(
page
).
to
have_selector
(
container
)
expect
(
page
).
to
have_selector
(
"
#{
container
}
.wiki .task-list .task-list-item .task-list-item-checkbox"
)
expect
(
page
).
to
have_selector
(
"
#{
container
}
.wiki .task-list .task-list-item .task-list-item-checkbox"
)
...
@@ -123,7 +123,7 @@ feature 'Task Lists', feature: true do
...
@@ -123,7 +123,7 @@ feature 'Task Lists', feature: true do
it
'contains the required selectors'
do
it
'contains the required selectors'
do
visit_merge_request
(
project
,
merge
)
visit_merge_request
(
project
,
merge
)
container
=
'.
merge-request-details
.description.js-task-list-container'
container
=
'.
detail-page-description
.description.js-task-list-container'
expect
(
page
).
to
have_selector
(
container
)
expect
(
page
).
to
have_selector
(
container
)
expect
(
page
).
to
have_selector
(
"
#{
container
}
.wiki .task-list .task-list-item .task-list-item-checkbox"
)
expect
(
page
).
to
have_selector
(
"
#{
container
}
.wiki .task-list .task-list-item .task-list-item-checkbox"
)
...
...
spec/javascripts/fixtures/issues_show.html.haml
View file @
79c90821
%a
.btn-close
%a
.btn-close
.
issue-details
.
detail-page-description
.description.js-task-list-container
.description.js-task-list-container
.wiki
.wiki
%ul
.task-list
%ul
.task-list
...
...
spec/javascripts/fixtures/merge_requests_show.html.haml
View file @
79c90821
%a
.btn-close
%a
.btn-close
.
merge-request-details
.
detail-page-description
.description.js-task-list-container
.description.js-task-list-container
.wiki
.wiki
%ul
.task-list
%ul
.task-list
...
...
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