Sha256: a21d384235fc9eacd2a6df4f6a0c7fb146840f6bae28013044778b3c24fcaa86

Contents?: true

Size: 1.77 KB

Versions: 2

Compression:

Stored size: 1.77 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', 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 »', 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", 
        @pagination.params_for_resort_url('count', params), :class => "sort_change numeric") %>
    <% elsif @pagination.sort == 'count' -%>
      <%=  link_to("A-Z Sort", @pagination.params_for_resort_url('index', params), 
          :class => "sort_change az") %><span class="disabled numeric">Numerical Sort</span>
    <% end -%>    
  </div>


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sufia-0.0.1.pre2 app/views/dashboard/_facet_pagination.html.erb
sufia-0.0.1.pre1 app/views/dashboard/_facet_pagination.html.erb