- 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")