Sha256: 1a34fe5b06363ceda389f45127134a5ee52f4df33e5657bc0e970291d5eee46c

Contents?: true

Size: 1.81 KB

Versions: 3

Compression:

Stored size: 1.81 KB

Contents

<%#
Copyright © 2012 The Pennsylvania State University

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
%>

  <% if @pagination.has_previous? || @pagination.has_next? %>
    <div class="prev_next_links">
      <% if @pagination.has_previous? -%>        
        <%= link_to('« Previous', sufia.catalog_facet_path( @pagination.params_for_previous_url( params) ) , :class=>:prev_page)  %>
      <% else -%>
        <span class="disabled ui-state-active prev_page">« Previous</span> 
      <% end -%>
      
      <% if @pagination.has_next? -%>
        <%= link_to('Next »', sufia.catalog_facet_path( @pagination.params_for_next_url(params)), :class => :next_page ) %>
      <% else -%>
        <span class="disabled ui-state-active next_page">Next »</span> 
      <% end -%>
               
    </div>
  <% end %>

  <div class="sort_options">
    <% if @pagination.sort == 'index' -%>
      <span class="disabled az">A-Z Sort</span><%= link_to_unless(@pagination.sort == 'count', "Numerical Sort", 
        sufia.url_for(@pagination.params_for_resort_url('count', params)), :class => "sort_change numeric") %>
    <% elsif @pagination.sort == 'count' -%>
      <%=  link_to("A-Z Sort", sufia.url_for(@pagination.params_for_resort_url('index', params)), 
          :class => "sort_change az") %><span class="disabled numeric">Numerical Sort</span>
    <% end -%>    
  </div>


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sufia-0.0.3 app/views/dashboard/_facet_pagination.html.erb
sufia-0.0.2 app/views/dashboard/_facet_pagination.html.erb
sufia-0.0.1 app/views/dashboard/_facet_pagination.html.erb