blob: acbac1869fdb7fee2e1f7ffd6c7ac3f4ea0e48fe (
plain)
1
2
3
4
5
6
|
- environment = local_assigns.fetch(:environment)
- return unless environment.has_metrics? && can?(current_user, :read_environment, environment)
= link_to environment_metrics_path(environment), title: 'See metrics', class: 'btn metrics-button' do
= icon('area-chart')
|