Sha256: 9bda4f548cea60259e079eabc0619e1098e3325811544e75e2f7b1cdfc1d3c04

Contents?: true

Size: 1.51 KB

Versions: 4

Compression:

Stored size: 1.51 KB

Contents

<%= page_header :title => t('txt.views.import.title') %>
<%= render 'dashboard/sidebar' %>

<%= form_tag imports_path, :method => :post, :multipart => true , :class => "form-horizontal" do %>
  <%= input_block :label => t('txt.views.import.file') do %>
    <%= file_field_tag 'ntriples_file' %>
  <% end %>

  <%= input_block :label => t('txt.views.import.namespace') do %>
    <%= text_field_tag 'default_namespace',
      root_url(:format => nil, :lang => nil, :trailing_slash => true).gsub(/\/\/$/, "/")  %>
  <% end %>

  <%= input_block :label => t('txt.views.import.publish') do %>
    <%= check_box_tag 'publish', '1', true %>
  <% end %>

  <div class="form-actions">
    <%= submit_tag t('txt.views.import.title'), :class => 'btn btn-primary' %>
  </div>
<% end %>

<table class="table">
  <thead>
    <tr>
      <th>ID</th>
      <th><%= Import.human_attribute_name(:user) %></th>
      <th><%= Import.human_attribute_name(:created_at) %></th>
      <th><%= Import.human_attribute_name(:finished_at) %></th>
      <th><%= Import.human_attribute_name(:success) %></th>
    </tr>
  </thead>
  <tbody>
    <% @imports.each do |import| %>
      <tr>
        <td><%= link_to import.id, import_path(:id => import) %></td>
        <td><%= import.user %></td>
        <td><%= l(import.created_at, :format => :short) %></td>
        <td><%= import.finished_at? ? l(import.finished_at, :format => :short) : icon(:cog, 'fa-spin') %></td>
        <td><%= icon('thumbs-o-up') if import.success? %></td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
iqvoc-4.3.3 app/views/imports/index.html.erb
iqvoc-4.3.2 app/views/imports/index.html.erb
iqvoc-4.3.1 app/views/imports/index.html.erb
iqvoc-4.3.0 app/views/imports/index.html.erb