Sha256: 6d2b003f70df589e2c6123d71fe7af40442dded5a095a5f8332ac287ac3dc3ef

Contents?: true

Size: 983 Bytes

Versions: 10

Compression:

Stored size: 983 Bytes

Contents

<h2 class='page-title'>
  <%= t('csv_import_magic.views.importers.show.title', model_translated: t("activemodel.models.#{@importer.source}.other")) %>
</h2>

<form style='text-align: center'>
  <div class='form-row' id="<%= @importer.status %>">
    <% if @importer.status == 'pending' %>
      <%= t('csv_import_magic.views.importers.show.waiting') %>
    <% else %>
      <%= @importer.message %>
    <% end %>
  </div>

  <% if @importer.status == 'pending' %>
    <span class='loading'></span>
  <% end %>

  <% if @importer.attachment_error.present? %>
    <%= link_to t('csv_import_magic.views.importers.show.buttons.error_file'), @importer.attachment_error.url, class: 'button button--secondary' %>
  <% end %>

  <%= link_to t('csv_import_magic.views.importers.show.buttons.back'), '/', class: 'button button--primary' %>
</form>

<script>
  if (document.getElementById('pending') != void 0) {
    setInterval(function(){
      location.reload();
    }, 5000);
  }
</script>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
csv_import_magic-0.0.11 app/views/csv_import_magic/importers/show.html.erb
csv_import_magic-0.0.10 app/views/csv_import_magic/importers/show.html.erb
csv_import_magic-0.0.8 app/views/csv_import_magic/importers/show.html.erb
csv_import_magic-0.0.7 app/views/csv_import_magic/importers/show.html.erb
csv_import_magic-0.0.6 app/views/csv_import_magic/importers/show.html.erb
csv_import_magic-0.0.5 app/views/csv_import_magic/importers/show.html.erb
csv_import_magic-0.0.4 app/views/csv_import_magic/importers/show.html.erb
csv_import_magic-0.0.3 app/views/csv_import_magic/importers/show.html.erb
csv_import_magic-0.0.2 app/views/csv_import_magic/importers/show.html.erb
csv_import_magic-0.0.1 app/views/csv_import_magic/importers/show.html.erb