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
10734d19
Commit
10734d19
authored
Sep 07, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EE port of breadcrumbs-extra-btns-remove
parent
9a8075d3
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
29 additions
and
100 deletions
+29
-100
app/assets/stylesheets/new_nav.scss
app/assets/stylesheets/new_nav.scss
+0
-10
app/views/dashboard/_groups_head.html.haml
app/views/dashboard/_groups_head.html.haml
+2
-6
app/views/dashboard/_projects_head.html.haml
app/views/dashboard/_projects_head.html.haml
+2
-6
app/views/dashboard/_snippets_head.html.haml
app/views/dashboard/_snippets_head.html.haml
+4
-4
app/views/dashboard/issues.html.haml
app/views/dashboard/issues.html.haml
+1
-6
app/views/dashboard/merge_requests.html.haml
app/views/dashboard/merge_requests.html.haml
+1
-4
app/views/dashboard/milestones/index.html.haml
app/views/dashboard/milestones/index.html.haml
+1
-4
app/views/groups/issues.html.haml
app/views/groups/issues.html.haml
+1
-9
app/views/groups/labels/index.html.haml
app/views/groups/labels/index.html.haml
+1
-4
app/views/groups/merge_requests.html.haml
app/views/groups/merge_requests.html.haml
+1
-5
app/views/groups/milestones/index.html.haml
app/views/groups/milestones/index.html.haml
+1
-4
app/views/layouts/nav/_breadcrumbs.html.haml
app/views/layouts/nav/_breadcrumbs.html.haml
+0
-2
app/views/projects/issues/index.html.haml
app/views/projects/issues/index.html.haml
+1
-4
app/views/projects/labels/index.html.haml
app/views/projects/labels/index.html.haml
+1
-5
app/views/projects/merge_requests/index.html.haml
app/views/projects/merge_requests/index.html.haml
+1
-4
app/views/projects/milestones/index.html.haml
app/views/projects/milestones/index.html.haml
+2
-6
app/views/projects/pipeline_schedules/index.html.haml
app/views/projects/pipeline_schedules/index.html.haml
+1
-5
app/views/projects/snippets/index.html.haml
app/views/projects/snippets/index.html.haml
+1
-5
features/steps/group/milestones.rb
features/steps/group/milestones.rb
+1
-1
features/steps/project/issues/issues.rb
features/steps/project/issues/issues.rb
+1
-1
features/steps/project/issues/milestones.rb
features/steps/project/issues/milestones.rb
+1
-1
features/steps/project/merge_requests.rb
features/steps/project/merge_requests.rb
+1
-1
features/steps/project/snippets.rb
features/steps/project/snippets.rb
+1
-1
spec/features/dashboard/issues_filter_spec.rb
spec/features/dashboard/issues_filter_spec.rb
+1
-1
spec/features/issues_spec.rb
spec/features/issues_spec.rb
+1
-1
No files found.
app/assets/stylesheets/new_nav.scss
View file @
10734d19
...
@@ -393,13 +393,3 @@ header.navbar-gitlab-new {
...
@@ -393,13 +393,3 @@ header.navbar-gitlab-new {
color
:
$gl-text-color
;
color
:
$gl-text-color
;
}
}
}
}
.top-area
{
.nav-controls-new-nav
{
.dropdown
{
@media
(
min-width
:
$screen-sm-min
)
{
margin-right
:
0
;
}
}
}
}
app/views/dashboard/_groups_head.html.haml
View file @
10734d19
-
if
current_user
.
can_create_group?
-
content_for
:breadcrumbs_extra
do
=
link_to
"New group"
,
new_group_path
,
class:
"btn btn-new"
.top-area
.top-area
%ul
.nav-links
%ul
.nav-links
=
nav_link
(
page:
dashboard_groups_path
)
do
=
nav_link
(
page:
dashboard_groups_path
)
do
...
@@ -10,8 +6,8 @@
...
@@ -10,8 +6,8 @@
=
nav_link
(
page:
explore_groups_path
)
do
=
nav_link
(
page:
explore_groups_path
)
do
=
link_to
explore_groups_path
,
title:
'Explore public groups'
do
=
link_to
explore_groups_path
,
title:
'Explore public groups'
do
Explore public groups
Explore public groups
.nav-controls
.nav-controls-new-nav
.nav-controls
=
render
'shared/groups/search_form'
=
render
'shared/groups/search_form'
=
render
'shared/groups/dropdown'
=
render
'shared/groups/dropdown'
-
if
current_user
.
can_create_group?
-
if
current_user
.
can_create_group?
=
link_to
"New group"
,
new_group_path
,
class:
"btn btn-new
visible-xs
"
=
link_to
"New group"
,
new_group_path
,
class:
"btn btn-new"
app/views/dashboard/_projects_head.html.haml
View file @
10734d19
=
content_for
:flash_message
do
=
content_for
:flash_message
do
=
render
'shared/project_limit'
=
render
'shared/project_limit'
-
if
current_user
.
can_create_project?
-
content_for
:breadcrumbs_extra
do
=
link_to
"New project"
,
new_project_path
,
class:
'btn btn-new'
.top-area.scrolling-tabs-container.inner-page-scroll-tabs
.top-area.scrolling-tabs-container.inner-page-scroll-tabs
.fade-left
=
icon
(
'angle-left'
)
.fade-left
=
icon
(
'angle-left'
)
.fade-right
=
icon
(
'angle-right'
)
.fade-right
=
icon
(
'angle-right'
)
...
@@ -19,8 +15,8 @@
...
@@ -19,8 +15,8 @@
=
link_to
explore_root_path
,
title:
'Explore'
,
data:
{
placement:
'right'
}
do
=
link_to
explore_root_path
,
title:
'Explore'
,
data:
{
placement:
'right'
}
do
Explore projects
Explore projects
.nav-controls
.nav-controls-new-nav
.nav-controls
=
render
'shared/projects/search_form'
=
render
'shared/projects/search_form'
=
render
'shared/projects/dropdown'
=
render
'shared/projects/dropdown'
-
if
current_user
.
can_create_project?
-
if
current_user
.
can_create_project?
=
link_to
"New project"
,
new_project_path
,
class:
"btn btn-new
visible-xs
"
=
link_to
"New project"
,
new_project_path
,
class:
"btn btn-new"
app/views/dashboard/_snippets_head.html.haml
View file @
10734d19
-
if
current_user
-
content_for
:breadcrumbs_extra
do
=
link_to
"New snippet"
,
new_snippet_path
,
class:
"btn btn-new"
,
title:
"New snippet"
.top-area
.top-area
%ul
.nav-links
%ul
.nav-links
=
nav_link
(
page:
dashboard_snippets_path
,
html_options:
{
class:
'home'
})
do
=
nav_link
(
page:
dashboard_snippets_path
,
html_options:
{
class:
'home'
})
do
...
@@ -10,3 +6,7 @@
...
@@ -10,3 +6,7 @@
=
nav_link
(
page:
explore_snippets_path
)
do
=
nav_link
(
page:
explore_snippets_path
)
do
=
link_to
explore_snippets_path
,
title:
'Explore snippets'
,
data:
{
placement:
'right'
}
do
=
link_to
explore_snippets_path
,
title:
'Explore snippets'
,
data:
{
placement:
'right'
}
do
Explore Snippets
Explore Snippets
-
if
current_user
.nav-controls.hidden-xs
=
link_to
"New snippet"
,
new_snippet_path
,
class:
"btn btn-new"
,
title:
"New snippet"
app/views/dashboard/issues.html.haml
View file @
10734d19
...
@@ -4,14 +4,9 @@
...
@@ -4,14 +4,9 @@
=
content_for
:meta_tags
do
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
params
.
merge
(
rss_url_options
),
title:
"
#{
current_user
.
name
}
issues"
)
=
auto_discovery_link_tag
(
:atom
,
params
.
merge
(
rss_url_options
),
title:
"
#{
current_user
.
name
}
issues"
)
-
content_for
:breadcrumbs_extra
do
=
link_to
params
.
merge
(
rss_url_options
),
class:
'btn has-tooltip append-right-10'
,
title:
'Subscribe'
do
=
icon
(
'rss'
)
=
render
'shared/new_project_item_select'
,
path:
'issues/new'
,
label:
"New issue"
,
with_feature_enabled:
'issues'
,
type: :issues
.top-area
.top-area
=
render
'shared/issuable/nav'
,
type: :issues
=
render
'shared/issuable/nav'
,
type: :issues
.nav-controls
.visible-xs
.nav-controls
=
link_to
params
.
merge
(
rss_url_options
),
class:
'btn has-tooltip'
,
title:
'Subscribe'
do
=
link_to
params
.
merge
(
rss_url_options
),
class:
'btn has-tooltip'
,
title:
'Subscribe'
do
=
icon
(
'rss'
)
=
icon
(
'rss'
)
=
render
'shared/new_project_item_select'
,
path:
'issues/new'
,
label:
"New issue"
,
with_feature_enabled:
'issues'
,
type: :issues
=
render
'shared/new_project_item_select'
,
path:
'issues/new'
,
label:
"New issue"
,
with_feature_enabled:
'issues'
,
type: :issues
...
...
app/views/dashboard/merge_requests.html.haml
View file @
10734d19
...
@@ -2,12 +2,9 @@
...
@@ -2,12 +2,9 @@
-
page_title
"Merge Requests"
-
page_title
"Merge Requests"
-
header_title
"Merge Requests"
,
merge_requests_dashboard_path
(
assignee_id:
current_user
.
id
)
-
header_title
"Merge Requests"
,
merge_requests_dashboard_path
(
assignee_id:
current_user
.
id
)
-
content_for
:breadcrumbs_extra
do
=
render
'shared/new_project_item_select'
,
path:
'merge_requests/new'
,
label:
"New merge request"
,
with_feature_enabled:
'merge_requests'
,
type: :merge_requests
.top-area
.top-area
=
render
'shared/issuable/nav'
,
type: :merge_requests
=
render
'shared/issuable/nav'
,
type: :merge_requests
.nav-controls
.visible-xs
.nav-controls
=
render
'shared/new_project_item_select'
,
path:
'merge_requests/new'
,
label:
"New merge request"
,
with_feature_enabled:
'merge_requests'
,
type: :merge_requests
=
render
'shared/new_project_item_select'
,
path:
'merge_requests/new'
,
label:
"New merge request"
,
with_feature_enabled:
'merge_requests'
,
type: :merge_requests
=
render
'shared/issuable/filter'
,
type: :merge_requests
=
render
'shared/issuable/filter'
,
type: :merge_requests
...
...
app/views/dashboard/milestones/index.html.haml
View file @
10734d19
...
@@ -2,13 +2,10 @@
...
@@ -2,13 +2,10 @@
-
page_title
'Milestones'
-
page_title
'Milestones'
-
header_title
'Milestones'
,
dashboard_milestones_path
-
header_title
'Milestones'
,
dashboard_milestones_path
-
content_for
:breadcrumbs_extra
do
=
render
'shared/new_project_item_select'
,
path:
'milestones/new'
,
label:
'New milestone'
,
include_groups:
true
,
type: :milestones
.top-area
.top-area
=
render
'shared/milestones_filter'
,
counts:
@milestone_states
=
render
'shared/milestones_filter'
,
counts:
@milestone_states
.nav-controls
.visible-xs
.nav-controls
=
render
'shared/new_project_item_select'
,
path:
'milestones/new'
,
label:
'New milestone'
,
include_groups:
true
,
type: :milestones
=
render
'shared/new_project_item_select'
,
path:
'milestones/new'
,
label:
'New milestone'
,
include_groups:
true
,
type: :milestones
.milestones
.milestones
...
...
app/views/groups/issues.html.haml
View file @
10734d19
...
@@ -9,18 +9,10 @@
...
@@ -9,18 +9,10 @@
=
webpack_bundle_tag
'filtered_search'
=
webpack_bundle_tag
'filtered_search'
=
webpack_bundle_tag
'issues'
=
webpack_bundle_tag
'issues'
-
if
group_issues_exists
-
content_for
:breadcrumbs_extra
do
=
link_to
params
.
merge
(
rss_url_options
),
class:
'btn btn-default append-right-10'
do
=
icon
(
'rss'
)
%span
.icon-label
Subscribe
=
render
'shared/new_project_item_select'
,
path:
'issues/new'
,
label:
"New issue"
,
type: :issues
-
if
group_issues_exists
-
if
group_issues_exists
.top-area
.top-area
=
render
'shared/issuable/nav'
,
type: :issues
=
render
'shared/issuable/nav'
,
type: :issues
.nav-controls
.visible-xs
.nav-controls
=
link_to
params
.
merge
(
rss_url_options
),
class:
'btn'
do
=
link_to
params
.
merge
(
rss_url_options
),
class:
'btn'
do
=
icon
(
'rss'
)
=
icon
(
'rss'
)
%span
.icon-label
%span
.icon-label
...
...
app/views/groups/labels/index.html.haml
View file @
10734d19
-
page_title
'Labels'
-
page_title
'Labels'
-
if
can?
(
current_user
,
:admin_label
,
@group
)
-
content_for
:breadcrumbs_extra
do
=
link_to
"New label"
,
new_group_label_path
(
@group
),
class:
"btn btn-new"
=
render
"groups/head_issues"
=
render
"groups/head_issues"
...
@@ -10,7 +7,7 @@
...
@@ -10,7 +7,7 @@
.nav-text
.nav-text
Labels can be applied to issues and merge requests. Group labels are available for any project within the group.
Labels can be applied to issues and merge requests. Group labels are available for any project within the group.
.nav-controls
.visible-xs
.nav-controls
-
if
can?
(
current_user
,
:admin_label
,
@group
)
-
if
can?
(
current_user
,
:admin_label
,
@group
)
=
link_to
"New label"
,
new_group_label_path
(
@group
),
class:
"btn btn-new"
=
link_to
"New label"
,
new_group_label_path
(
@group
),
class:
"btn btn-new"
...
...
app/views/groups/merge_requests.html.haml
View file @
10734d19
...
@@ -4,17 +4,13 @@
...
@@ -4,17 +4,13 @@
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'filtered_search'
=
webpack_bundle_tag
'filtered_search'
-
if
current_user
-
content_for
:breadcrumbs_extra
do
=
render
'shared/new_project_item_select'
,
path:
'merge_requests/new'
,
label:
"New merge request"
,
type: :merge_requests
-
if
@group_merge_requests
.
empty?
-
if
@group_merge_requests
.
empty?
=
render
'shared/empty_states/merge_requests'
,
project_select_button:
true
=
render
'shared/empty_states/merge_requests'
,
project_select_button:
true
-
else
-
else
.top-area
.top-area
=
render
'shared/issuable/nav'
,
type: :merge_requests
=
render
'shared/issuable/nav'
,
type: :merge_requests
-
if
current_user
-
if
current_user
.nav-controls
.visible-xs
.nav-controls
=
render
'shared/new_project_item_select'
,
path:
'merge_requests/new'
,
label:
"New merge request"
,
type: :merge_requests
=
render
'shared/new_project_item_select'
,
path:
'merge_requests/new'
,
label:
"New merge request"
,
type: :merge_requests
=
render
'shared/issuable/search_bar'
,
type: :merge_requests
=
render
'shared/issuable/search_bar'
,
type: :merge_requests
...
...
app/views/groups/milestones/index.html.haml
View file @
10734d19
-
page_title
"Milestones"
-
page_title
"Milestones"
-
if
can?
(
current_user
,
:admin_milestones
,
@group
)
-
content_for
:breadcrumbs_extra
do
=
link_to
"New milestone"
,
new_group_milestone_path
(
@group
),
class:
"btn btn-new"
=
render
"groups/head_issues"
=
render
"groups/head_issues"
.top-area
.top-area
=
render
'shared/milestones_filter'
,
counts:
@milestone_states
=
render
'shared/milestones_filter'
,
counts:
@milestone_states
.nav-controls
.visible-xs
.nav-controls
-
if
can?
(
current_user
,
:admin_milestones
,
@group
)
-
if
can?
(
current_user
,
:admin_milestones
,
@group
)
=
link_to
"New milestone"
,
new_group_milestone_path
(
@group
),
class:
"btn btn-new"
=
link_to
"New milestone"
,
new_group_milestone_path
(
@group
),
class:
"btn btn-new"
...
...
app/views/layouts/nav/_breadcrumbs.html.haml
View file @
10734d19
...
@@ -17,6 +17,4 @@
...
@@ -17,6 +17,4 @@
=
render
"layouts/nav/breadcrumbs/collapsed_dropdown"
,
location: :after
=
render
"layouts/nav/breadcrumbs/collapsed_dropdown"
,
location: :after
%li
%li
%h2
.breadcrumbs-sub-title
=
@breadcrumb_title
%h2
.breadcrumbs-sub-title
=
@breadcrumb_title
-
if
content_for?
(
:breadcrumbs_extra
)
.breadcrumbs-extra.hidden-xs
=
yield
:breadcrumbs_extra
=
yield
:header_content
=
yield
:header_content
app/views/projects/issues/index.html.haml
View file @
10734d19
...
@@ -14,9 +14,6 @@
...
@@ -14,9 +14,6 @@
=
content_for
:meta_tags
do
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
params
.
merge
(
rss_url_options
),
title:
"
#{
@project
.
name
}
issues"
)
=
auto_discovery_link_tag
(
:atom
,
params
.
merge
(
rss_url_options
),
title:
"
#{
@project
.
name
}
issues"
)
-
content_for
:breadcrumbs_extra
do
=
render
"projects/issues/nav_btns"
-
if
project_issues
(
@project
).
exists?
-
if
project_issues
(
@project
).
exists?
=
render
'projects/issues/export_issues/csv_download'
=
render
'projects/issues/export_issues/csv_download'
...
@@ -24,7 +21,7 @@
...
@@ -24,7 +21,7 @@
%div
{
class:
(
container_class
)
}
%div
{
class:
(
container_class
)
}
.top-area
.top-area
=
render
'shared/issuable/nav'
,
type: :issues
=
render
'shared/issuable/nav'
,
type: :issues
.nav-controls
.visible-xs
.nav-controls
=
render
"projects/issues/nav_btns"
=
render
"projects/issues/nav_btns"
=
render
'shared/issuable/search_bar'
,
type: :issues
=
render
'shared/issuable/search_bar'
,
type: :issues
...
...
app/views/projects/labels/index.html.haml
View file @
10734d19
...
@@ -3,10 +3,6 @@
...
@@ -3,10 +3,6 @@
-
hide_class
=
''
-
hide_class
=
''
-
can_admin_label
=
can?
(
current_user
,
:admin_label
,
@project
)
-
can_admin_label
=
can?
(
current_user
,
:admin_label
,
@project
)
-
if
can?
(
current_user
,
:admin_label
,
@project
)
-
content_for
:breadcrumbs_extra
do
=
link_to
"New label"
,
new_namespace_project_label_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-new"
=
render
"shared/mr_head"
=
render
"shared/mr_head"
-
if
@labels
.
exists?
||
@prioritized_labels
.
exists?
-
if
@labels
.
exists?
||
@prioritized_labels
.
exists?
...
@@ -18,7 +14,7 @@
...
@@ -18,7 +14,7 @@
Star a label to make it a priority label. Order the prioritized labels to change their relative priority, by dragging.
Star a label to make it a priority label. Order the prioritized labels to change their relative priority, by dragging.
-
if
can_admin_label
-
if
can_admin_label
.nav-controls
.visible-xs
.nav-controls
=
link_to
new_project_label_path
(
@project
),
class:
"btn btn-new"
do
=
link_to
new_project_label_path
(
@project
),
class:
"btn btn-new"
do
New label
New label
...
...
app/views/projects/merge_requests/index.html.haml
View file @
10734d19
...
@@ -12,16 +12,13 @@
...
@@ -12,16 +12,13 @@
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'filtered_search'
=
webpack_bundle_tag
'filtered_search'
-
content_for
:breadcrumbs_extra
do
=
render
"projects/merge_requests/nav_btns"
,
merge_project:
merge_project
,
new_merge_request_path:
new_merge_request_path
=
render
'projects/last_push'
=
render
'projects/last_push'
-
if
@project
.
merge_requests
.
exists?
-
if
@project
.
merge_requests
.
exists?
%div
{
class:
container_class
}
%div
{
class:
container_class
}
.top-area
.top-area
=
render
'shared/issuable/nav'
,
type: :merge_requests
=
render
'shared/issuable/nav'
,
type: :merge_requests
.nav-controls
.visible-xs
.nav-controls
=
render
"projects/merge_requests/nav_btns"
,
merge_project:
merge_project
,
new_merge_request_path:
new_merge_request_path
=
render
"projects/merge_requests/nav_btns"
,
merge_project:
merge_project
,
new_merge_request_path:
new_merge_request_path
=
render
'shared/issuable/search_bar'
,
type: :merge_requests
=
render
'shared/issuable/search_bar'
,
type: :merge_requests
...
...
app/views/projects/milestones/index.html.haml
View file @
10734d19
-
@no_container
=
true
-
@no_container
=
true
-
page_title
'Milestones'
-
page_title
'Milestones'
-
if
can?
(
current_user
,
:admin_milestone
,
@project
)
-
content_for
:breadcrumbs_extra
do
=
link_to
"New milestone"
,
new_namespace_project_milestone_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-new'
,
title:
'New milestone'
=
render
"shared/mr_head"
=
render
"shared/mr_head"
%div
{
class:
container_class
}
%div
{
class:
container_class
}
.top-area
.top-area
=
render
'shared/milestones_filter'
,
counts:
milestone_counts
(
@project
.
milestones
)
=
render
'shared/milestones_filter'
,
counts:
milestone_counts
(
@project
.
milestones
)
.nav-controls
.nav-controls-new-nav
.nav-controls
=
render
'shared/milestones_sort_dropdown'
=
render
'shared/milestones_sort_dropdown'
-
if
can?
(
current_user
,
:admin_milestone
,
@project
)
-
if
can?
(
current_user
,
:admin_milestone
,
@project
)
=
link_to
new_project_milestone_path
(
@project
),
class:
"btn btn-new
visible-xs
"
,
title:
'New milestone'
do
=
link_to
new_project_milestone_path
(
@project
),
class:
"btn btn-new"
,
title:
'New milestone'
do
New milestone
New milestone
.milestones
.milestones
...
...
app/views/projects/pipeline_schedules/index.html.haml
View file @
10734d19
...
@@ -7,10 +7,6 @@
...
@@ -7,10 +7,6 @@
-
@no_container
=
true
-
@no_container
=
true
-
page_title
_
(
"Pipeline Schedules"
)
-
page_title
_
(
"Pipeline Schedules"
)
-
if
can?
(
current_user
,
:create_pipeline_schedule
,
@project
)
-
content_for
:breadcrumbs_extra
do
=
link_to
_
(
'New schedule'
),
new_namespace_project_pipeline_schedule_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-create'
=
render
"projects/pipelines/head"
=
render
"projects/pipelines/head"
%div
{
class:
container_class
}
%div
{
class:
container_class
}
...
@@ -20,7 +16,7 @@
...
@@ -20,7 +16,7 @@
=
render
"tabs"
,
schedule_path_proc:
schedule_path_proc
,
all_schedules:
@all_schedules
,
scope:
@scope
=
render
"tabs"
,
schedule_path_proc:
schedule_path_proc
,
all_schedules:
@all_schedules
,
scope:
@scope
-
if
can?
(
current_user
,
:create_pipeline_schedule
,
@project
)
-
if
can?
(
current_user
,
:create_pipeline_schedule
,
@project
)
.nav-controls
.visible-xs
.nav-controls
=
link_to
new_project_pipeline_schedule_path
(
@project
),
class:
'btn btn-create'
do
=
link_to
new_project_pipeline_schedule_path
(
@project
),
class:
'btn btn-create'
do
%span
=
_
(
'New schedule'
)
%span
=
_
(
'New schedule'
)
...
...
app/views/projects/snippets/index.html.haml
View file @
10734d19
-
page_title
"Snippets"
-
page_title
"Snippets"
-
if
can?
(
current_user
,
:create_project_snippet
,
@project
)
-
content_for
:breadcrumbs_extra
do
=
link_to
"New snippet"
,
new_namespace_project_snippet_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-new"
,
title:
"New snippet"
-
if
current_user
-
if
current_user
.top-area
.top-area
-
include_private
=
@project
.
team
.
member?
(
current_user
)
||
current_user
.
admin?
-
include_private
=
@project
.
team
.
member?
(
current_user
)
||
current_user
.
admin?
=
render
partial:
'snippets/snippets_scope_menu'
,
locals:
{
subject:
@project
,
include_private:
include_private
}
=
render
partial:
'snippets/snippets_scope_menu'
,
locals:
{
subject:
@project
,
include_private:
include_private
}
.nav-controls
.visible-xs
.nav-controls
-
if
can?
(
current_user
,
:create_project_snippet
,
@project
)
-
if
can?
(
current_user
,
:create_project_snippet
,
@project
)
=
link_to
"New snippet"
,
new_project_snippet_path
(
@project
),
class:
"btn btn-new"
,
title:
"New snippet"
=
link_to
"New snippet"
,
new_project_snippet_path
(
@project
),
class:
"btn btn-new"
,
title:
"New snippet"
...
...
features/steps/group/milestones.rb
View file @
10734d19
...
@@ -47,7 +47,7 @@ class Spinach::Features::GroupMilestones < Spinach::FeatureSteps
...
@@ -47,7 +47,7 @@ class Spinach::Features::GroupMilestones < Spinach::FeatureSteps
end
end
step
'I click new milestone button'
do
step
'I click new milestone button'
do
page
.
within
(
'.
breadcrumb
s'
)
do
page
.
within
(
'.
nav-control
s'
)
do
click_link
"New milestone"
click_link
"New milestone"
end
end
end
end
...
...
features/steps/project/issues/issues.rb
View file @
10734d19
...
@@ -62,7 +62,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
...
@@ -62,7 +62,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
end
end
step
'I click link "New issue"'
do
step
'I click link "New issue"'
do
page
.
within
'
.breadcrumbs
'
do
page
.
within
'
#content-body
'
do
page
.
has_link?
(
'New Issue'
)
?
click_link
(
'New Issue'
)
:
click_link
(
'New issue'
)
page
.
has_link?
(
'New Issue'
)
?
click_link
(
'New Issue'
)
:
click_link
(
'New issue'
)
end
end
end
end
...
...
features/steps/project/issues/milestones.rb
View file @
10734d19
...
@@ -16,7 +16,7 @@ class Spinach::Features::ProjectIssuesMilestones < Spinach::FeatureSteps
...
@@ -16,7 +16,7 @@ class Spinach::Features::ProjectIssuesMilestones < Spinach::FeatureSteps
end
end
step
'I click link "New Milestone"'
do
step
'I click link "New Milestone"'
do
page
.
within
(
'.
breadcrumb
s'
)
do
page
.
within
(
'.
nav-control
s'
)
do
click_link
"New milestone"
click_link
"New milestone"
end
end
end
end
...
...
features/steps/project/merge_requests.rb
View file @
10734d19
...
@@ -14,7 +14,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
...
@@ -14,7 +14,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
end
step
'I click link "New Merge Request"'
do
step
'I click link "New Merge Request"'
do
page
.
within
'.
breadcrumb
s'
do
page
.
within
'.
nav-control
s'
do
page
.
has_link?
(
'New Merge Request'
)
?
click_link
(
"New Merge Request"
)
:
click_link
(
'New merge request'
)
page
.
has_link?
(
'New Merge Request'
)
?
click_link
(
"New Merge Request"
)
:
click_link
(
'New merge request'
)
end
end
end
end
...
...
features/steps/project/snippets.rb
View file @
10734d19
...
@@ -23,7 +23,7 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
...
@@ -23,7 +23,7 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end
end
step
'I click link "New snippet"'
do
step
'I click link "New snippet"'
do
page
.
within
'.
breadcrumb
s'
do
page
.
within
'.
nav-control
s'
do
first
(
:link
,
"New snippet"
).
click
first
(
:link
,
"New snippet"
).
click
end
end
end
end
...
...
spec/features/dashboard/issues_filter_spec.rb
View file @
10734d19
...
@@ -50,7 +50,7 @@ feature 'Dashboard Issues filtering', :js do
...
@@ -50,7 +50,7 @@ feature 'Dashboard Issues filtering', :js do
it
'updates atom feed link'
do
it
'updates atom feed link'
do
visit_issues
(
milestone_title:
''
,
assignee_id:
user
.
id
)
visit_issues
(
milestone_title:
''
,
assignee_id:
user
.
id
)
link
=
find
(
'.
breadcrumb
s a[title="Subscribe"]'
)
link
=
find
(
'.
nav-control
s a[title="Subscribe"]'
)
params
=
CGI
.
parse
(
URI
.
parse
(
link
[
:href
]).
query
)
params
=
CGI
.
parse
(
URI
.
parse
(
link
[
:href
]).
query
)
auto_discovery_link
=
find
(
'link[type="application/atom+xml"]'
,
visible:
false
)
auto_discovery_link
=
find
(
'link[type="application/atom+xml"]'
,
visible:
false
)
auto_discovery_params
=
CGI
.
parse
(
URI
.
parse
(
auto_discovery_link
[
:href
]).
query
)
auto_discovery_params
=
CGI
.
parse
(
URI
.
parse
(
auto_discovery_link
[
:href
]).
query
)
...
...
spec/features/issues_spec.rb
View file @
10734d19
...
@@ -613,7 +613,7 @@ describe 'Issues' do
...
@@ -613,7 +613,7 @@ describe 'Issues' do
it
'redirects to signin then back to new issue after signin'
do
it
'redirects to signin then back to new issue after signin'
do
visit
project_issues_path
(
project
)
visit
project_issues_path
(
project
)
page
.
within
'.
breadcrumb
s'
do
page
.
within
'.
nav-control
s'
do
click_link
'New issue'
click_link
'New issue'
end
end
...
...
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