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
Léo-Paul Géneau
gitlab-ce
Commits
4783f15a
Commit
4783f15a
authored
Dec 06, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes admin welcome states new group path
Closes #40645
parent
68360783
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
app/views/dashboard/projects/_blank_state_admin_welcome.html.haml
...s/dashboard/projects/_blank_state_admin_welcome.html.haml
+1
-1
changelogs/unreleased/admin-welcome-new-group-link.yml
changelogs/unreleased/admin-welcome-new-group-link.yml
+5
-0
spec/views/dashboard/projects/_blank_state_admin_welcome.haml.rb
...ews/dashboard/projects/_blank_state_admin_welcome.haml.rb
+15
-0
No files found.
app/views/dashboard/projects/_blank_state_admin_welcome.html.haml
View file @
4783f15a
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
Projects are where you store your code, access issues, wiki and other features of GitLab.
Projects are where you store your code, access issues, wiki and other features of GitLab.
-
if
current_user
.
can_create_group?
-
if
current_user
.
can_create_group?
=
link_to
admin_root
_path
,
class:
"blank-state-link"
do
=
link_to
new_group
_path
,
class:
"blank-state-link"
do
.blank-state
.blank-state
.blank-state-icon
.blank-state-icon
=
custom_icon
(
"add_new_group"
,
size:
50
)
=
custom_icon
(
"add_new_group"
,
size:
50
)
...
...
changelogs/unreleased/admin-welcome-new-group-link.yml
0 → 100644
View file @
4783f15a
---
title
:
Fixed admin welcome screen new group path
merge_request
:
author
:
type
:
fixed
spec/views/dashboard/projects/_blank_state_admin_welcome.haml.rb
0 → 100644
View file @
4783f15a
require
'spec_helper'
describe
'dashboard/projects/_blank_state_admin_welcome.html.haml'
do
let
(
:user
)
{
create
(
:admin
)
}
before
do
allow
(
view
).
to
receive
(
:current_user
).
and_return
(
user
)
end
it
'links to new group path'
do
render
expect
(
rendered
).
to
have_link
(
'Create a group'
,
href:
new_group_path
)
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