- if (can? :activate, location) && location.activated?
  = link_to t('shared.deactivate'), "/manage/#{location.model_name.route_key}/#{location.id}/deactivate", method: :patch, class: 'button -secondary'
- if (can? :deactivate, location) && location.deactivated?
  = link_to t('shared.activate'), "/manage/#{location.model_name.route_key}/#{location.id}/activate", method: :patch, class: 'button -secondary'

- if (can? :activate, location) && location.activated?
  = link_to t('shared.deactivate'), "/manage/#{location.model_name.route_key}/#{location.id}/deactivate", method: :patch, class: 'button -secondary'
- if (can? :deactivate, location) && location.deactivated?
  = link_to t('shared.activate'), "/manage/#{location.model_name.route_key}/#{location.id}/activate", method: :patch, class: 'button -type-a'

Change the Activate button styles
Change the Activate button styles

Vizzuality/undp_cabo_verde,Vizzuality/undp_cabo_verde,Vizzuality/undp_cabo_verde