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
Boxiang Sun
gitlab-ce
Commits
fbb0fc5e
Commit
fbb0fc5e
authored
Sep 24, 2018
by
J.D. Bean
Committed by
Rémy Coutable
Sep 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feature/new user snippets breadcrumbs
parent
28086b20
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
app/views/snippets/new.html.haml
app/views/snippets/new.html.haml
+2
-1
changelogs/unreleased/51282-link-to-user-snippets-on-new-user-snippet-page.yml
.../51282-link-to-user-snippets-on-new-user-snippet-page.yml
+5
-0
spec/features/snippets/user_sees_breadcrumb_links.rb
spec/features/snippets/user_sees_breadcrumb_links.rb
+17
-0
No files found.
app/views/snippets/new.html.haml
View file @
fbb0fc5e
-
@hide_top_links
=
true
-
@hide_top_links
=
true
-
breadcrumb_title
"Snippets"
-
add_to_breadcrumbs
"Snippets"
,
dashboard_snippets_path
-
breadcrumb_title
"New"
-
page_title
"New Snippet"
-
page_title
"New Snippet"
%h3
.page-title
%h3
.page-title
New Snippet
New Snippet
...
...
changelogs/unreleased/51282-link-to-user-snippets-on-new-user-snippet-page.yml
0 → 100644
View file @
fbb0fc5e
---
title
:
Add link to User Snippets in breadcrumbs of New User Snippet page
merge_request
:
author
:
J.D. Bean
type
:
add
spec/features/snippets/user_sees_breadcrumb_links.rb
0 → 100644
View file @
fbb0fc5e
require
'rails_helper'
describe
'New user snippet breadcrumbs'
do
let
(
:user
)
{
create
(
:user
)
}
before
do
sign_in
(
user
)
visit
new_snippet_path
end
it
'display a link to user snippets and new user snippet pages'
do
page
.
within
'.breadcrumbs'
do
expect
(
find_link
(
'Snippets'
)[
:href
]).
to
end_with
(
dashboard_snippets_path
)
expect
(
find_link
(
'New'
)[
:href
]).
to
end_with
(
new_snippet_path
)
end
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