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
iv
gitlab-ce
Commits
7574ec4b
Commit
7574ec4b
authored
Jul 10, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hierarchical-navigation'
parents
3e97051b
e4a1d290
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
64 additions
and
1 deletion
+64
-1
CHANGELOG
CHANGELOG
+1
-0
app/views/layouts/nav/_group.html.haml
app/views/layouts/nav/_group.html.haml
+9
-1
app/views/layouts/nav/_profile.html.haml
app/views/layouts/nav/_profile.html.haml
+8
-0
app/views/layouts/nav/_project.html.haml
app/views/layouts/nav/_project.html.haml
+15
-0
features/groups.feature
features/groups.feature
+4
-0
features/project/project.feature
features/project/project.feature
+9
-0
features/steps/groups.rb
features/steps/groups.rb
+4
-0
features/steps/project/project.rb
features/steps/project/project.rb
+14
-0
No files found.
CHANGELOG
View file @
7574ec4b
...
...
@@ -41,6 +41,7 @@ v 7.13.0 (unreleased)
- Allow users to be blocked and unblocked via the API
- Use native Postgres database cleaning during backup restore
- Redesign project page. Show README as default instead of activity. Move project activity to separate page
- Make left menu more hierarchical and less contextual by adding back item at top
v 7.12.2
- Correctly show anonymous authorized applications under Profile > Applications.
...
...
app/views/layouts/nav/_group.html.haml
View file @
7574ec4b
%ul
.nav.nav-sidebar
=
nav_link
do
=
link_to
root_path
,
title:
'Back to dashboard'
,
data:
{
placement:
'right'
}
do
=
icon
(
'caret-square-o-left fw'
)
%span
Back to Dashboard
%li
.separate-item
=
nav_link
(
path:
'groups#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
group_path
(
@group
),
title:
'Home'
,
data:
{
placement:
'right'
}
do
=
icon
(
'dashboard fw'
)
%span
Activity
Group
-
if
current_user
=
nav_link
(
controller:
[
:group
,
:milestones
])
do
=
link_to
group_milestones_path
(
@group
),
title:
'Milestones'
,
data:
{
placement:
'right'
}
do
...
...
app/views/layouts/nav/_profile.html.haml
View file @
7574ec4b
%ul
.nav.nav-sidebar
=
nav_link
do
=
link_to
root_path
,
title:
'Back to dashboard'
,
data:
{
placement:
'right'
}
do
=
icon
(
'caret-square-o-left fw'
)
%span
Back to Dashboard
%li
.separate-item
=
nav_link
(
path:
'profiles#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
profile_path
,
title:
'Profile'
,
data:
{
placement:
'right'
}
do
=
icon
(
'user fw'
)
...
...
app/views/layouts/nav/_project.html.haml
View file @
7574ec4b
%ul
.nav.nav-sidebar
-
if
@project
.
group
=
nav_link
do
=
link_to
group_path
(
@project
.
group
),
title:
'Back to group'
,
data:
{
placement:
'right'
}
do
=
icon
(
'caret-square-o-left fw'
)
%span
Back to Group
-
else
=
nav_link
do
=
link_to
root_path
,
title:
'Back to dashboard'
,
data:
{
placement:
'right'
}
do
=
icon
(
'caret-square-o-left fw'
)
%span
Back to Dashboard
%li
.separate-item
=
nav_link
(
path:
'projects#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
project_path
(
@project
),
title:
'Project'
,
class:
'shortcuts-project'
,
data:
{
placement:
'right'
}
do
=
icon
(
'home fw'
)
...
...
features/groups.feature
View file @
7574ec4b
...
...
@@ -4,6 +4,10 @@ Feature: Groups
And
"John Doe"
is owner of group
"Owned"
And
"John Doe"
is guest of group
"Guest"
Scenario
:
I
should have back to group button
When
I visit group
"Owned"
page
Then
I should see back to dashboard button
@javascript
Scenario
:
I
should see group
"Owned"
dashboard list
When
I visit group
"Owned"
page
...
...
features/project/project.feature
View file @
7574ec4b
...
...
@@ -18,6 +18,15 @@ Feature: Project
Then
I should see the default project avatar
And
I should not see the
"Remove avatar"
button
Scenario
:
I
should have back to group button
And
project
"Shop"
belongs to group
And
I visit project
"Shop"
page
Then
I should see back to group button
Scenario
:
I
should have back to group button
And
I visit project
"Shop"
page
Then
I should see back to dashboard button
Scenario
:
I
should have readme on page
And
I visit project
"Shop"
page
Then
I should see project
"Shop"
README
...
...
features/steps/groups.rb
View file @
7574ec4b
...
...
@@ -5,6 +5,10 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
include
SharedUser
include
Select2Helper
step
'I should see back to dashboard button'
do
expect
(
page
).
to
have_content
'Back to Dashboard'
end
step
'gitlab user "Mike"'
do
create
(
:user
,
name:
"Mike"
)
end
...
...
features/steps/project/project.rb
View file @
7574ec4b
...
...
@@ -116,4 +116,18 @@ class Spinach::Features::Project < Spinach::FeatureSteps
step
'I should not see "Snippets" button'
do
expect
(
page
).
not_to
have_link
'Snippets'
end
step
'project "Shop" belongs to group'
do
group
=
create
(
:group
)
@project
.
namespace
=
group
@project
.
save!
end
step
'I should see back to dashboard button'
do
expect
(
page
).
to
have_content
'Back to Dashboard'
end
step
'I should see back to group button'
do
expect
(
page
).
to
have_content
'Back to Group'
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