Sha256: 4df0b009be9986fee655c75cb120fa97879e72037b48f4bcfde1c521da21a48e

Contents?: true

Size: 765 Bytes

Versions: 25

Compression:

Stored size: 765 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

25 entries across 25 versions & 1 rubygems

Version Path
avo-3.11.7 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.11.6 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.11.5 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.11.4 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.11.3 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.11.2 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.11.1 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.11.0 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.10.10 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.10.9 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.10.8 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.10.7 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.10.6 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.10.5 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.10.4 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.10.3 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.10.2 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.10.1 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.10.0 app/components/avo/fields/common/files/controls_component.html.erb
avo-3.9.2 app/components/avo/fields/common/files/controls_component.html.erb