Sha256: 8f12ab00346e43a7bd2fa71d9fdb8307b214d0b7c97a093a7a1b19bf25b154bd

Contents?: true

Size: 767 Bytes

Versions: 20

Compression:

Stored size: 767 Bytes

Contents

<div class="flex">
  <% if can_download_file? %>
    <%= a_link helpers.main_app.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: "avo/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

20 entries across 20 versions & 1 rubygems

Version Path
avo-3.15.1 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.15.0 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.14.5 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.14.4 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.14.3 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.14.2 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.14.1 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.14.0 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.13.7 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.13.6 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.13.5 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.13.4 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.13.3 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.13.2 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.13.1 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.13.0 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.12.0 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.11.10 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.11.9 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.11.8 app/components/avo/fields/common/files/controls_component.html.erb