-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip * overzealous with the replace all * showing works, file sets and collections on the exporter page, paginated by 30 * move work, collection and file set tabs on the im/exporter show pages into their own partials * fix the file set entries tab file
- Loading branch information
Showing
6 changed files
with
140 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<div role="tabpanel" class="tab-pane bulkrax-nav-tab-table-left-align" id="collection-entries"> | ||
<table class='table table-striped'> | ||
<thead> | ||
<tr> | ||
<th>Identifier</th> | ||
<th>Entry ID</th> | ||
<th>Status</th> | ||
<th>Errors</th> | ||
<th>Status Set At</th> | ||
<th>Actions</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% entries.each do |e| %> | ||
<% entry_path = item.class.to_s.include?('Importer') ? bulkrax.importer_entry_path(item.id, e.id) : bulkrax.exporter_entry_path(item.id, e.id) %> | ||
<tr> | ||
<td><%= link_to e.identifier, entry_path %></td> | ||
<td><%= e.id %></td> | ||
<% if e.status == "Complete" %> | ||
<td><span class="glyphicon glyphicon-ok" style="color: green;"></span> <%= e.status %></td> | ||
<% elsif e.status == "Pending" %> | ||
<td><span class="glyphicon glyphicon-option-horizontal" style="color: blue;"></span> <%= e.status %></td> | ||
<% else %> | ||
<td><span class="glyphicon glyphicon-remove" style="color: <%= e.status == 'Deleted' ? 'green' : 'red' %>;"></span> <%= e.status %></td> | ||
<% end %> | ||
<% if e.last_error.present? %> | ||
<td><%= link_to e.last_error.dig("error_class"), entry_path %></td> | ||
<% else %> | ||
<td></td> | ||
<% end %> | ||
<td><%= e.status_at %></td> | ||
<td><%= link_to raw('<span class="glyphicon glyphicon-info-sign"></span>'), entry_path %></td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
<%= page_entries_info(entries) %><br /> | ||
<%= paginate(entries, theme: 'blacklight', param_name: :collections_entries_page, params: { anchor: 'collection-entries' }) %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<div role="tabpanel" class="tab-pane bulkrax-nav-tab-table-left-align" id="file-set-entries"> | ||
<table class='table table-striped'> | ||
<thead> | ||
<tr> | ||
<th>Identifier</th> | ||
<th>Entry ID</th> | ||
<th>Status</th> | ||
<th>Errors</th> | ||
<th>Status Set At</th> | ||
<th>Actions</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% entries.each do |e| %> | ||
<% entry_path = item.class.to_s.include?('Importer') ? bulkrax.importer_entry_path(item.id, e.id) : bulkrax.exporter_entry_path(item.id, e.id) %> | ||
<tr> | ||
<td><%= link_to e.identifier, bulkrax.importer_entry_path(item.id, e.id) %></td> | ||
<td><%= e.id %></td> | ||
<% if e.status == "Complete" %> | ||
<td><span class="glyphicon glyphicon-ok" style="color: green;"></span> <%= e.status %></td> | ||
<% elsif e.status == "Pending" %> | ||
<td><span class="glyphicon glyphicon-option-horizontal" style="color: blue;"></span> <%= e.status %></td> | ||
<% else %> | ||
<td><span class="glyphicon glyphicon-remove" style="color: <%= e.status == 'Deleted' ? 'green' : 'red' %>;"></span> <%= e.status %></td> | ||
<% end %> | ||
<% if e.last_error.present? %> | ||
<td><%= link_to e.last_error.dig("error_class"), bulkrax.importer_entry_path(item.id, e.id) %></td> | ||
<% else %> | ||
<td></td> | ||
<% end %> | ||
<td><%= e.status_at %></td> | ||
<td><%= link_to raw('<span class="glyphicon glyphicon-info-sign"></span>'), bulkrax.importer_entry_path(item.id, e.id) %></td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
<%= page_entries_info(entries) %><br /> | ||
<%= paginate(entries, theme: 'blacklight', param_name: :file_set_entries_page, params: { anchor: 'file-set-entries' }) %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<div role="tabpanel" class="tab-pane active bulkrax-nav-tab-table-left-align" id="work-entries"> | ||
<table class='table table-striped'> | ||
<thead> | ||
<tr> | ||
<th>Identifier</th> | ||
<th>Entry ID</th> | ||
<th>Status</th> | ||
<th>Errors</th> | ||
<th>Status Set At</th> | ||
<th>Actions</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% entries.each do |e| %> | ||
<% entry_path = item.class.to_s.include?('Importer') ? bulkrax.importer_entry_path(item.id, e.id) : bulkrax.exporter_entry_path(item.id, e.id) %> | ||
<tr> | ||
<td><%= link_to e.identifier, entry_path %></td> | ||
<td><%= e.id %></td> | ||
<% if e.status == "Complete" %> | ||
<td><span class="glyphicon glyphicon-ok" style="color: green;"></span> <%= e.status %></td> | ||
<% elsif e.status == "Pending" %> | ||
<td><span class="glyphicon glyphicon-option-horizontal" style="color: blue;"></span> <%= e.status %></td> | ||
<% else %> | ||
<td><span class="glyphicon glyphicon-remove" style="color: <%= e.status == 'Deleted' ? 'green' : 'red' %>;"></span> <%= e.status %></td> | ||
<% end %> | ||
<% if e.last_error.present? %> | ||
<td><%= link_to e.last_error.dig("error_class"), entry_path %></td> | ||
<% else %> | ||
<td></td> | ||
<% end %> | ||
<td><%= e.status_at %></td> | ||
<td><%= link_to raw('<span class="glyphicon glyphicon-info-sign"></span>'), entry_path %></td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
<%= page_entries_info(entries) %><br /> | ||
<%= paginate(entries, theme: 'blacklight', param_name: :work_entries_page, params: { anchor: 'work-entries' }) %> | ||
</div> |