Sha256: f2086f9f152be8a3e41e254a8e7b51a62b369365b096ae4fb4208c675da529c9
Contents?: true
Size: 736 Bytes
Versions: 14
Compression:
Stored size: 736 Bytes
Contents
- unless @asset.trashed? %button.button.radius{ :'v-bind:class' => "{primary: !asset['new_record?'], success: asset['new_record?']}" } = ficon :check, '{{ saveButtonText }}' - unless @asset.new_record? .text-button.alert = link_to 'Delete media', push_type.asset_path(@asset), method: 'delete', data: { confirm: { body: 'Deleted media will be moved to the trash. You can restore trashed media later.' } } - else %button.button.radius.secondary= ficon :check, 'Save as trash' .text-button.success = link_to 'Restore media', push_type.restore_asset_path(@asset), method: 'put' .text-button.alert = link_to 'Permanently delete media', push_type.asset_path(@asset), method: 'delete', data: { confirm: true }
Version data entries
14 entries across 14 versions & 1 rubygems