BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
4dfded89
Commit
4dfded89
authored
Jul 10, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make left menu more hierarchical and less contextual by adding back item at top
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
82a3f2f1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
63 additions
and
0 deletions
+63
-0
CHANGELOG
CHANGELOG
+1
-0
_group.html.haml
app/views/layouts/nav/_group.html.haml
+8
-0
_profile.html.haml
app/views/layouts/nav/_profile.html.haml
+8
-0
_project.html.haml
app/views/layouts/nav/_project.html.haml
+15
-0
groups.feature
features/groups.feature
+4
-0
project.feature
features/project/project.feature
+9
-0
groups.rb
features/steps/groups.rb
+4
-0
project.rb
features/steps/project/project.rb
+14
-0
No files found.
CHANGELOG
View file @
4dfded89
...
...
@@ -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 @
4dfded89
%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'
)
...
...
app/views/layouts/nav/_profile.html.haml
View file @
4dfded89
%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 @
4dfded89
%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 @
4dfded89
...
...
@@ -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 @
4dfded89
...
...
@@ -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 @
4dfded89
...
...
@@ -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 @
4dfded89
...
...
@@ -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