.contextual
  = icon_link_to :new, [:new, resource, :attachment], :remote => true

- @attachments = resource.attachments
- if @attachments.empty?
  = boot_alert(t('attachments.alerts.empty'))
  .attachments.collection
- else
  = render 'attachments/list' unless @attachments.empty?

- @attachments = resource.attachments
- if @attachments.empty?
  = boot_alert(t('attachments.alerts.empty'))
  .attachments.collection
- else
  = render 'attachments/list' unless @attachments.empty?

.form-actions
  = icon_link_to :new, [:new, resource, :attachment], :remote => true

Use form-actions row instead of context action for new in attachments tab view.
Use form-actions row instead of context action for new in attachments tab view.
