Sha256: d6d43de6c755580d4f0014ba315157fc3ab71339e3dcbf4b9356e878215486ce

Contents?: true

Size: 533 Bytes

Versions: 1

Compression:

Stored size: 533 Bytes

Contents

<h2><%= singular %></h2>

<div class="processing">
  <h3>Processando: <%= resource %></h3>

  <p id="processing_count" class="ui-helper-hidden"></p>

  <p>
    <%= image_tag 'loading.gif' %>
  </p>
</div>

<%= link_to 'Voltar', collection_path, :class => 'button' %>

<script>
  $(function() {
    var refresh = function() {
      $.get('<%= resource_path(:format => :json) %>', function(resource) {
        if (resource.job_status != 'processing') location.reload();
      });
    }

    setInterval(refresh, 4000);
  });
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unico-training-7.8.0 app/views/similarity_controls/processing.html.erb