Sha256: dfcff4ac9758a291256aaecf90306685e68c3659238bd1b64282c228580771fc

Contents?: true

Size: 799 Bytes

Versions: 134

Compression:

Stored size: 799 Bytes

Contents

<div class="flex">
  <% if can_download_file? %>
    <%= a_link Rails.application.routes.url_helpers.rails_blob_path(file, only_path: true, disposition: :attachment),
      icon: 'heroicons/outline/download',
      color: :primary,
      download: true,
      class: 'text-center',
      title: t('avo.download_file'),
      data: { tippy: :tooltip },
      compact: true,
      size: :xs %>
  <% end %>
</div>
<div>
  <% if can_delete_file? %>
    <%= a_link destroy_path,
      icon: 'heroicons/outline/trash',
      color: :red,
      compact: true,
      size: :xs,
      class: 'text-center',
      title: t('avo.delete_file', item: file.filename),
      data: {
        turbo_method: :delete,
        turbo_confirm: t('avo.are_you_sure'),
        tippy: :tooltip
      } %>
  <% end %>
</div>

Version data entries

134 entries across 134 versions & 1 rubygems

Version Path
avo-2.53.0 app/components/avo/fields/common/files/controls_component.html.erb
avo-2.52.0 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.6.4 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.6.3 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.6.2 app/components/avo/fields/common/files/controls_component.html.erb
avo-2.49.0 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.6.1 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.6.0 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.5.8 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.5.7 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.5.6 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.5.6.beta1 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.5.5 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.5.4 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.5.3 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.5.2 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.5.1 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.5.0 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.4.4 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.4.3 app/components/avo/fields/common/files/controls_component.html.erb