- @activities = resource.activities
- if @activities.empty?
  = boot_alert(t('activities.alerts.empty'))
  .activities.collection

- else
  = render 'activities/list', :collection => resource.activities unless @activities.empty?

- @activities = resource.activities
- if @activities.empty?
  = boot_alert(t('activities.alerts.empty'))
  .activities.collection

- else
  = render 'activities/list', :collection => @activities unless @activities.empty?

Use @activities instance variable in all usages in show_activities view.
Use @activities instance variable in all usages in show_activities view.
