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
Jérome Perrin
gitlab-ce
Commits
d7044c5c
Commit
d7044c5c
authored
Dec 09, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'move-network'
parents
8f689250
2c61e3c0
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
20 deletions
+29
-20
CHANGELOG
CHANGELOG
+1
-0
app/views/layouts/nav/_project.html.haml
app/views/layouts/nav/_project.html.haml
+8
-8
app/views/projects/commits/_head.html.haml
app/views/projects/commits/_head.html.haml
+5
-0
app/views/projects/network/_head.html.haml
app/views/projects/network/_head.html.haml
+1
-1
app/views/projects/network/show.html.haml
app/views/projects/network/show.html.haml
+2
-1
features/project/active_tab.feature
features/project/active_tab.feature
+6
-5
features/project/shortcuts.feature
features/project/shortcuts.feature
+2
-1
features/steps/shared/project_tab.rb
features/steps/shared/project_tab.rb
+4
-4
No files found.
CHANGELOG
View file @
d7044c5c
...
@@ -26,6 +26,7 @@ v 8.3.0 (unreleased)
...
@@ -26,6 +26,7 @@ v 8.3.0 (unreleased)
- Block LDAP user when they are no longer found in the LDAP server
- Block LDAP user when they are no longer found in the LDAP server
- Improve wording on project visibility levels (Zeger-Jan van de Weg)
- Improve wording on project visibility levels (Zeger-Jan van de Weg)
- Automatically select default clone protocol based on user preferences (Eirik Lygre)
- Automatically select default clone protocol based on user preferences (Eirik Lygre)
- Make Network page as sub tab of Commits
v 8.2.3
v 8.2.3
- Fix application settings cache not expiring after changes (Stan Hu)
- Fix application settings cache not expiring after changes (Stan Hu)
...
...
app/views/layouts/nav/_project.html.haml
View file @
d7044c5c
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
Files
Files
-
if
project_nav_tab?
:commits
-
if
project_nav_tab?
:commits
=
nav_link
(
controller:
%w(commit commits compare repositories tags branches releases)
)
do
=
nav_link
(
controller:
%w(commit commits compare repositories tags branches releases
network
)
)
do
=
link_to
project_commits_path
(
@project
),
title:
'Commits'
,
class:
'shortcuts-commits'
do
=
link_to
project_commits_path
(
@project
),
title:
'Commits'
,
class:
'shortcuts-commits'
do
=
icon
(
'history fw'
)
=
icon
(
'history fw'
)
%span
%span
...
@@ -46,13 +46,6 @@
...
@@ -46,13 +46,6 @@
Builds
Builds
%span
.count.builds_counter
=
@project
.
ci_builds
.
running_or_pending
.
count
(
:all
)
%span
.count.builds_counter
=
@project
.
ci_builds
.
running_or_pending
.
count
(
:all
)
-
if
project_nav_tab?
:network
=
nav_link
(
controller:
%w(network)
)
do
=
link_to
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
),
title:
'Network'
,
class:
'shortcuts-network'
do
=
icon
(
'code-fork fw'
)
%span
Network
-
if
project_nav_tab?
:graphs
-
if
project_nav_tab?
:graphs
=
nav_link
(
controller:
%w(graphs)
)
do
=
nav_link
(
controller:
%w(graphs)
)
do
=
link_to
namespace_project_graph_path
(
@project
.
namespace
,
@project
,
current_ref
),
title:
'Graphs'
,
class:
'shortcuts-graphs'
do
=
link_to
namespace_project_graph_path
(
@project
.
namespace
,
@project
,
current_ref
),
title:
'Graphs'
,
class:
'shortcuts-graphs'
do
...
@@ -118,3 +111,10 @@
...
@@ -118,3 +111,10 @@
=
icon
(
'cogs fw'
)
=
icon
(
'cogs fw'
)
%span
%span
Settings
Settings
-# Global shortcut to network page for compatibility
-
if
project_nav_tab?
:network
%li
.hidden
=
link_to
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
),
title:
'Network'
,
class:
'shortcuts-network'
do
Network
app/views/projects/commits/_head.html.haml
View file @
d7044c5c
...
@@ -3,6 +3,11 @@
...
@@ -3,6 +3,11 @@
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
Commits
Commits
%span
.badge
=
number_with_delimiter
(
@repository
.
commit_count
)
%span
.badge
=
number_with_delimiter
(
@repository
.
commit_count
)
=
nav_link
(
controller:
%w(network)
)
do
=
link_to
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
Network
=
nav_link
(
controller: :compare
)
do
=
nav_link
(
controller: :compare
)
do
=
link_to
namespace_project_compare_index_path
(
@project
.
namespace
,
@project
,
from:
@repository
.
root_ref
,
to:
current_ref
)
do
=
link_to
namespace_project_compare_index_path
(
@project
.
namespace
,
@project
,
from:
@repository
.
root_ref
,
to:
current_ref
)
do
Compare
Compare
...
...
app/views/projects/network/_head.html.haml
View file @
d7044c5c
.gray-content-block.
top-block.
append-bottom-default
.gray-content-block.append-bottom-default
.tree-ref-holder
.tree-ref-holder
=
render
partial:
'shared/ref_switcher'
,
locals:
{
destination:
'graph'
}
=
render
partial:
'shared/ref_switcher'
,
locals:
{
destination:
'graph'
}
...
...
app/views/projects/network/show.html.haml
View file @
d7044c5c
-
page_title
"Network"
,
@ref
-
page_title
"Network"
,
@ref
=
header_title
project_title
(
@project
,
"Network"
,
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
))
=
render
"projects/commits/header_title"
=
render
"projects/commits/head"
=
render
"head"
=
render
"head"
.project-network
.project-network
.controls
.controls
...
...
features/project/active_tab.feature
View file @
d7044c5c
...
@@ -20,11 +20,6 @@ Feature: Project Active Tab
...
@@ -20,11 +20,6 @@ Feature: Project Active Tab
Then
the active main tab should be Commits
Then
the active main tab should be Commits
And
no other main tabs should be active
And
no other main tabs should be active
Scenario
:
On Project Network
Given
I visit my project's network page
Then
the active main tab should be Network
And
no other main tabs should be active
Scenario
:
On Project Issues
Scenario
:
On Project Issues
Given
I visit my project's issues page
Given
I visit my project's issues page
Then
the active main tab should be Issues
Then
the active main tab should be Issues
...
@@ -83,6 +78,12 @@ Feature: Project Active Tab
...
@@ -83,6 +78,12 @@ Feature: Project Active Tab
And
no other sub tabs should be active
And
no other sub tabs should be active
And
the active main tab should be Commits
And
the active main tab should be Commits
Scenario
:
On Project Commits/Network
Given
I visit my project's network page
Then
the active sub tab should be Network
And
no other sub tabs should be active
And
the active main tab should be Commits
Scenario
:
On Project Commits/Compare
Scenario
:
On Project Commits/Compare
Given
I visit my project's commits page
Given
I visit my project's commits page
And
I click the
"Compare"
tab
And
I click the
"Compare"
tab
...
...
features/project/shortcuts.feature
View file @
d7044c5c
...
@@ -19,7 +19,8 @@ Feature: Project Shortcuts
...
@@ -19,7 +19,8 @@ Feature: Project Shortcuts
@javascript
@javascript
Scenario
:
Navigate to network tab
Scenario
:
Navigate to network tab
Given
I press
"g"
and
"n"
Given
I press
"g"
and
"n"
Then
the active main tab should be Network
Then
the active sub tab should be Network
And
the active main tab should be Commits
@javascript
@javascript
Scenario
:
Navigate to graphs tab
Scenario
:
Navigate to graphs tab
...
...
features/steps/shared/project_tab.rb
View file @
d7044c5c
...
@@ -16,10 +16,6 @@ module SharedProjectTab
...
@@ -16,10 +16,6 @@ module SharedProjectTab
ensure_active_main_tab
(
'Commits'
)
ensure_active_main_tab
(
'Commits'
)
end
end
step
'the active main tab should be Network'
do
ensure_active_main_tab
(
'Network'
)
end
step
'the active main tab should be Graphs'
do
step
'the active main tab should be Graphs'
do
ensure_active_main_tab
(
'Graphs'
)
ensure_active_main_tab
(
'Graphs'
)
end
end
...
@@ -53,4 +49,8 @@ module SharedProjectTab
...
@@ -53,4 +49,8 @@ module SharedProjectTab
step
'the active main tab should be Activity'
do
step
'the active main tab should be Activity'
do
ensure_active_main_tab
(
'Activity'
)
ensure_active_main_tab
(
'Activity'
)
end
end
step
'the active sub tab should be Network'
do
ensure_active_sub_tab
(
'Network'
)
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