20690: Remove workbench1 and testing/packaging references.
[arvados.git] / apps / workbench / app / views / application / _paging.html.erb
diff --git a/apps/workbench/app/views/application/_paging.html.erb b/apps/workbench/app/views/application/_paging.html.erb
deleted file mode 100644 (file)
index f5677f7..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-<% content_for :css do %>
-.index-paging {
-text-align: center;
-padding-left: 1em;
-padding-right: 1em;
-background-color: whitesmoke;
-}
-<% end %>
-
-<% if results.result_offset != nil and results.result_limit != nil and results.items_available != nil %>
-<div class="index-paging">
-
-<% if results.result_offset > 0 %>
-  <% if results.result_offset > results.result_limit %>
-    <% prev_offset = results.result_offset - results.result_limit %>
-  <% else %>
-    <% prev_offset = 0 %>
-  <% end %>
-<% else %>
-  <% prev_offset = nil %>
-<% end %>
-
-<% this_offset = results.result_offset %>
-<% this_page = results.result_offset / results.result_limit %>
-
-<% if (results.result_offset + results.result_limit) < results.items_available %>
-  <% next_offset = results.result_offset + results.result_limit %>
-<% else %>
-  <% next_offset = nil %>
-<% end %>
-
-<span class="pull-left">
-<% if results.result_offset > 0 %>
-  <%= link_to raw("<span class='glyphicon glyphicon-fast-backward'></span>"), {:id => object, :offset => 0, :limit => results.result_limit}  %>
-<% else %>
-  <span class='glyphicon glyphicon-fast-backward text-muted'></span>  
-<% end %>
-
-<% if prev_offset %>
-  <%= link_to raw("<span class='glyphicon glyphicon-step-backward'></span>"), {:id => object, :offset => prev_offset, :limit => results.result_limit}  %>
-<% else %>
-<span class='glyphicon glyphicon-step-backward text-muted'></span>
-<% end %>
-</span>
-
-<% n = this_page - 10 %>
-<% if n >= 0 %>
-  <% last = this_page + 10 %>
-  &hellip;
-<% else %>
-  <% n = 0 %>
-  <% last = 20 %>
-<% end %>
-
-<% i = n * results.result_limit %>
-<% while i < results.items_available and n < last %>
-<% if n != this_page %>
-  <%= link_to "#{n+1}", {:id => @object, :offset => i, :limit => results.result_limit} %>
-<% else %>
-  <%= n+1 %>
-<% end %>
-<% i += results.result_limit %>
-<% n += 1 %>
-<% end %>
-
-<% if i < results.items_available %>
-&hellip;
-<% end %>
-
-<span class="pull-right">
-<% if next_offset %>
-  <%= link_to raw("<span class='glyphicon glyphicon-step-forward'></span>"), {:id => @object, :offset => next_offset, :limit => results.result_limit}  %>
-<% else %>
-<span class='glyphicon glyphicon-forward text-muted'></span>
-<% end %>
-
-<% if (results.items_available - results.result_offset) >= results.result_limit %>
-  <%= link_to raw("<span class='glyphicon glyphicon-fast-forward'></span>"), {:id => @object, :offset => results.items_available - (results.items_available % results.result_limit), 
-        :limit => results.result_limit}  %>
-<% else %>
-  <span class='glyphicon glyphicon-fast-forward text-muted'></span>  
-<% end %>
-
-</span>
-
-</div>
-<% end %>