Sha256: 2dd98a6dd2b1c5ada40dbe5cc6ba6d338c618e7190ffac8dbb23e5baae227eff

Contents?: true

Size: 1.6 KB

Versions: 20

Compression:

Stored size: 1.6 KB

Contents

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

<%= bootstrap_form_for @export, :multipart => true, :layout => :horizontal, label_col: "col-sm-3", control_col: "col-sm-9" do |f| %>
  <%= f.select :file_type, options_for_select({
    t("txt.common.rdf_serialization.ttl") => :ttl,
    t("txt.common.rdf_serialization.nt") => :nt,
    t("txt.common.rdf_serialization.xml") => :xml})
  %>
  <%= f.text_field :default_namespace, :value => root_url(:format => nil, :lang => nil, :trailing_slash => true).gsub(/\/\/$/, "/") %>
  <%= f.form_group do %>
    <%= f.submit t('txt.views.export.request_export'), :class => 'btn btn-primary' %>
  <% end %>
<% end %>

<table class="table">
  <thead>
  <tr>
    <th>ID</th>
    <th><%= Export.human_attribute_name(:user) %></th>
    <th><%= Export.human_attribute_name(:file_type) %></th>
    <th><%= Export.human_attribute_name(:created_at) %></th>
    <th><%= Export.human_attribute_name(:finished_at) %></th>
    <th><%= Export.human_attribute_name(:success) %></th>
  </tr>
  </thead>
  <tbody>
  <% @exports.each do |export| %>
    <tr>
      <td><%= link_to export.id, export_path(:id => export) %></td>
      <td><%= export.user %></td>
      <td><%= t("txt.common.rdf_serialization.#{export.file_type}") %></td>
      <td><%= l(export.created_at, :format => :short) %></td>
      <td><%= export.finished_at? ? l(export.finished_at, :format => :short) : icon(:cog, 'fa-spin') %></td>
      <td><%= link_to('Download', export_download_url(export), :class => 'btn btn-primary btn-xs') if export.success? %></td>
    </tr>
  <% end %>
  </tbody>
</table>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
iqvoc-4.14.5 app/views/exports/index.html.erb
iqvoc-4.14.4 app/views/exports/index.html.erb
iqvoc-4.13.2 app/views/exports/index.html.erb
iqvoc-4.13.0 app/views/exports/index.html.erb
iqvoc-4.12.1 app/views/exports/index.html.erb
iqvoc-4.12.0 app/views/exports/index.html.erb
iqvoc-4.11.1 app/views/exports/index.html.erb
iqvoc-4.11.0 app/views/exports/index.html.erb
iqvoc-4.10.0 app/views/exports/index.html.erb
iqvoc-4.9.0 app/views/exports/index.html.erb
iqvoc-4.8.2 app/views/exports/index.html.erb
iqvoc-4.8.1 app/views/exports/index.html.erb
iqvoc-4.8.0 app/views/exports/index.html.erb
iqvoc-4.7.0 app/views/exports/index.html.erb
iqvoc-4.6.1 app/views/exports/index.html.erb
iqvoc-4.5.2 app/views/exports/index.html.erb
iqvoc-4.6.0 app/views/exports/index.html.erb
iqvoc-4.5.1 app/views/exports/index.html.erb
iqvoc-4.5.0 app/views/exports/index.html.erb
iqvoc-4.4.0 app/views/exports/index.html.erb