diff --git a/app/assets/stylesheets/bulkrax/import_export.scss b/app/assets/stylesheets/bulkrax/import_export.scss new file mode 100644 index 00000000..8f3660e0 --- /dev/null +++ b/app/assets/stylesheets/bulkrax/import_export.scss @@ -0,0 +1,38 @@ +div.importer_parser_fields_file_style span.radio { + display: inline; + margin-right: 20px; +} + +div#file_upload, +div#file_path { + display: none; +} + +div.hide-required-tag .required-tag { + display: none; +} + +div#s2id_exporter_export_source_collection { + border: none; + padding: 0; +} + +.bulkrax-nav-tab-top-margin { + margin-top: 20px !important; +} + +.bulkrax-nav-tab-bottom-margin { + margin-bottom: 20px; +} + +.bulkrax-nav-tab-table-left-align { + margin-left: 10px; +} + +.bulkrax-p-align { + margin: 15px 0 10px 15px; +} + +.bulkrax-clear-toggles { + clear: both; +} diff --git a/app/assets/stylesheets/hyku.scss b/app/assets/stylesheets/hyku.scss index 8a6f50a2..a50c9ce0 100644 --- a/app/assets/stylesheets/hyku.scss +++ b/app/assets/stylesheets/hyku.scss @@ -10,10 +10,10 @@ .navbar-right { margin-right: 10px; } +} - .glyphicon { - display: none; - } +.glyphicon { + position: relative; } @media (min-width: $screen-sm-min) { @@ -36,7 +36,7 @@ } #banner.jumbotron { - background: image_url('white-cloud-background.jpg') no-repeat; + background: image_url("white-cloud-background.jpg") no-repeat; background-color: $gray-lighter; background-position: center; border: 0; @@ -60,7 +60,11 @@ } .btn-sign-up { - @include button-variant($classic-white, $jumbotron-button-background-color, $jumbotron-button-background-color); + @include button-variant( + $classic-white, + $jumbotron-button-background-color, + $jumbotron-button-background-color + ); border-radius: 3px; font-size: 0.7em; margin-top: 15px; @@ -319,7 +323,6 @@ footer.navbar { padding: 0; } - #users > .panel { .panel-body { padding-left: 0px; @@ -394,4 +397,3 @@ a.restore-default-color { } } } - diff --git a/app/views/bulkrax/exporters/index.html.erb b/app/views/bulkrax/exporters/index.html.erb new file mode 100644 index 00000000..c309e6fe --- /dev/null +++ b/app/views/bulkrax/exporters/index.html.erb @@ -0,0 +1,67 @@ +<% provide :page_header do %> +

Exporters

+
+ <%= link_to new_exporter_path, class: 'btn btn-primary' do %> + <%= t(:'helpers.action.exporter.new') %> + <% end %> +
+<% end %> + +
+
+ <% if @exporters.present? %> +
+ + + + + + + + + + + + + + <% @exporters.each do |exporter| %> + + + + + + + + + + <% end %> + +
NameStatusDate ExportedDownloadInfoEditDelete
<%= link_to exporter.name, exporter_path(exporter) %><%= exporter.status %><%= exporter.created_at %> + <% if File.exist?(exporter.exporter_export_zip_path) %> + <%= link_to raw(''), exporter_download_path(exporter) %> + <% end%> + <%= link_to raw(''), exporter_path(exporter) %><%= link_to raw(''), edit_exporter_path(exporter) %><%= link_to raw(''), exporter, method: :delete, data: { confirm: 'Are you sure?' } %>
+
+ <% else %> +

No exporters have been created.

+ <% end %> +
+
+ + \ No newline at end of file diff --git a/app/views/bulkrax/importers/index.html.erb b/app/views/bulkrax/importers/index.html.erb new file mode 100644 index 00000000..91a0ce9f --- /dev/null +++ b/app/views/bulkrax/importers/index.html.erb @@ -0,0 +1,78 @@ +<% provide :page_header do %> +

Importers

+
+ <%= link_to new_importer_path, class: 'btn btn-primary' do %> + <%= t(:'helpers.action.importer.new') %> + <% end %> +
+<% end %> + +
+
+ <% if @importers.present? %> +
+ + + + + + + + + + + + + + + + + + + + <% @importers.each do |importer| %> + + + + + + + + + + + + +
+
+ + + + + <% end %> + +
NameStatusLast RunNext RunEntries EnqueuedEntries ProcessedEntries FailedEntries Deleted UpstreamTotal Collection EntriesTotal Work EntriesInfoEditDelete
<%= link_to importer.name, importer_path(importer) %><%= importer.status %><%= importer.last_imported_at.strftime("%b %d, %Y") if importer.last_imported_at %><%= importer.next_import_at.strftime("%b %d, %Y") if importer.next_import_at %><%= importer.importer_runs.last&.enqueued_records %><%= (importer.importer_runs.last&.processed_collections || 0) + (importer.importer_runs.last&.processed_records || 0) %><%= (importer.importer_runs.last&.failed_collections || 0) + (importer.importer_runs.last&.failed_records || 0) %><%= importer.importer_runs.last&.deleted_records %><%= importer.importer_runs.last&.total_collection_entries %><%= importer.importer_runs.last&.total_work_entries %><%= link_to raw(''), importer_path(importer) %><%= link_to raw(''), edit_importer_path(importer) %><%= link_to raw(''), importer, method: :delete, data: { confirm: 'Are you sure?' } %>
+
+ <% else %> +

No importers have been created.

+ <% end %> +
+
+ + \ No newline at end of file