debian-mirror-gitlab/app/views/projects/environments/_metrics_button.html.haml
2021-03-08 18:12:59 +05:30

7 lines
301 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: 'gl-button btn metrics-button' do
= sprite_icon('chart', css_class: 'gl-mr-2')
= _("Monitoring")