debian-mirror-gitlab/app/views/projects/environments/_metrics_button.html.haml

8 lines
301 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- environment = local_assigns.fetch(:environment)
- return unless can?(current_user, :read_environment, environment)
2021-01-29 00:20:46 +05:30
= link_to environment_metrics_path(environment), title: _('See metrics'), class: 'gl-button btn metrics-button' do
2021-03-08 18:12:59 +05:30
= sprite_icon('chart', css_class: 'gl-mr-2')
2019-02-15 15:39:39 +05:30
= _("Monitoring")