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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
c4df74d1
Commit
c4df74d1
authored
Jun 25, 2018
by
Tiago Botelho
Committed by
Jose
Jun 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename sidebar metrics path
parent
1002f1c3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/helpers/environments_helper.rb
app/helpers/environments_helper.rb
+2
-2
app/views/layouts/nav/sidebar/_project.html.haml
app/views/layouts/nav/sidebar/_project.html.haml
+1
-1
No files found.
app/helpers/environments_helper.rb
View file @
c4df74d1
...
...
@@ -5,8 +5,8 @@ module EnvironmentsHelper
}
end
def
metrics_path
(
project
,
environment
)
return
metrics_project_environment_path
(
project
,
environment
)
if
environment
def
operations_
metrics_path
(
project
,
environment
)
return
environment_metrics_path
(
environment
)
if
environment
empty_project_environments_path
(
project
)
end
...
...
app/views/layouts/nav/sidebar/_project.html.haml
View file @
c4df74d1
...
...
@@ -211,7 +211,7 @@
-
if
project_nav_tab?
:environments
=
nav_link
(
controller:
[
:environments
,
:metrics
])
do
=
link_to
metrics_path
(
@project
,
@available_environment
),
title:
'Metrics'
,
class:
'shortcuts-environments'
do
=
link_to
operations_
metrics_path
(
@project
,
@available_environment
),
title:
'Metrics'
,
class:
'shortcuts-environments'
do
%span
=
_
(
'Metrics'
)
...
...
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