previous = nil
paginator.linked_pages.each do |page|
if previous && previous != page - 1
- html << content_tag('li', content_tag('span', '...'), :class => 'spacer')
+ html << content_tag('li', content_tag('span', '…'.html_safe), :class => 'spacer')
end
if page == paginator.page
html << content_tag('li', content_tag('span', page.to_s), :class => 'current')
end
html << '</ul>'
- html << content_tag('span', "(#{paginator.first_item}-#{paginator.last_item}/#{paginator.item_count})", :class => 'items') + ' '
-
+ info = ''.html_safe
+ info << content_tag('span', "(#{paginator.first_item}-#{paginator.last_item}/#{paginator.item_count})", :class => 'items') + ' '
if per_page_links != false && links = per_page_links(paginator, &block)
- html << content_tag('span', links.to_s, :class => 'per-page')
+ info << content_tag('span', links.to_s, :class => 'per-page')
end
+ html << content_tag('span', info)
html.html_safe
end
border: 1px solid #ccc;
margin-left: -1px;
line-height: 2em;
+ margin-bottom: 1em;
+ white-space: nowrap;
+ text-align: center;
}
.pagination ul.pages li a,
.pagination ul.pages li span {
color: inherit;
text-decoration: inherit;
}
+span.pagination>span {white-space:nowrap;}
#search-form fieldset p {margin:0.2em 0;}
width: 100%;
}
}
+
+@media all and (max-width: 599px) {
+ .pagination ul.pages li {display:none;}
+ .pagination ul.pages li.current,
+ .pagination ul.pages li.previous,
+ .pagination ul.pages li.next {display:inline-block; width:32%; overflow:hidden;}
+}
+