BigW Consortium Gitlab

_metrics_button.html.haml 257 Bytes
Newer Older
1 2
- environment = local_assigns.fetch(:environment)

3
- return unless can?(current_user, :read_environment, environment)
4 5 6

= link_to environment_metrics_path(environment), title: 'See metrics', class: 'btn metrics-button' do
  = icon('area-chart')
7
  Monitoring