gitlab-org--gitlab-foss/app/views/projects/environments/_metrics_button.html.haml
2018-06-27 11:58:26 +03:00

7 lines
259 B
Text

- environment = local_assigns.fetch(:environment)
- return unless can?(current_user, :read_environment, environment)
= link_to environment_metrics_path(environment), title: 'See metrics', class: 'btn metrics-button' do
= sprite_icon('chart')
Monitoring