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
211b26af
Commit
211b26af
authored
Jun 27, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update environments nav controls icons
parent
87f7597a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
4 deletions
+9
-4
app/views/projects/environments/_external_url.html.haml
app/views/projects/environments/_external_url.html.haml
+1
-1
app/views/projects/environments/_metrics_button.html.haml
app/views/projects/environments/_metrics_button.html.haml
+1
-1
app/views/projects/environments/_terminal_button.html.haml
app/views/projects/environments/_terminal_button.html.haml
+1
-1
app/views/projects/environments/terminal.html.haml
app/views/projects/environments/terminal.html.haml
+1
-1
changelogs/unreleased/update-environments-nav-controls.yml
changelogs/unreleased/update-environments-nav-controls.yml
+5
-0
No files found.
app/views/projects/environments/_external_url.html.haml
View file @
211b26af
-
if
environment
.
external_url
&&
can?
(
current_user
,
:read_environment
,
environment
)
=
link_to
environment
.
external_url
,
target:
'_blank'
,
rel:
'noopener noreferrer'
,
class:
'btn external-url'
do
=
icon
(
'external-link'
)
=
sprite_
icon
(
'external-link'
)
View deployment
app/views/projects/environments/_metrics_button.html.haml
View file @
211b26af
...
...
@@ -3,5 +3,5 @@
-
return
unless
can?
(
current_user
,
:read_environment
,
environment
)
=
link_to
environment_metrics_path
(
environment
),
title:
'See metrics'
,
class:
'btn metrics-button'
do
=
icon
(
'area-
chart'
)
=
sprite_icon
(
'
chart'
)
Monitoring
app/views/projects/environments/_terminal_button.html.haml
View file @
211b26af
-
if
environment
.
has_terminals?
&&
can?
(
current_user
,
:admin_environment
,
@project
)
=
link_to
terminal_project_environment_path
(
@project
,
environment
),
class:
'btn terminal-button'
do
=
icon
(
'terminal'
)
=
sprite_
icon
(
'terminal'
)
app/views/projects/environments/terminal.html.haml
View file @
211b26af
...
...
@@ -16,7 +16,7 @@
.nav-controls
-
if
@environment
.
external_url
.
present?
=
link_to
@environment
.
external_url
,
class:
'btn btn-default'
,
target:
'_blank'
,
rel:
'noopener noreferrer nofollow'
do
=
icon
(
'external-link'
)
=
sprite_
icon
(
'external-link'
)
=
render
'projects/deployments/actions'
,
deployment:
@environment
.
last_deployment
.terminal-container
{
class:
container_class
}
...
...
changelogs/unreleased/update-environments-nav-controls.yml
0 → 100644
View file @
211b26af
---
title
:
Update environments nav controls icons
merge_request
:
20199
author
:
George Tsiolis
type
:
changed
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