Sha256: 9881382940a83e0486518b433032021db26833ddbf7832380c8f964878839839
Contents?: true
Size: 804 Bytes
Versions: 153
Compression:
Stored size: 804 Bytes
Contents
- num, size, field = parse_page(page) - num = num.to_i - total_nums = total_size.to_i / size.to_i - total_nums += 1 if total_size.to_i % size.to_i > 0 - start = [1, num - 2].max - eend = [total_nums, num + 2].min .table_pagination.pagination.ui.buttons %a.ui.compact.arrow.button.prev(href="#") « %a.ui.compact.arrow.button.next(href="#") » %a.ui.compact.all.button.all(href="#") all - if num - 2 > 1 %a.ui.compact.num.button(href="#") 1 - if num - 2 > 2 .ui.compact.disabled.button \... - (start..eend).each do |p| %a.ui.compact.num.button(class="#{p.to_s == num.to_s ? "active" : "" }" href="#")= p - if num + 3 < total_nums .ui.compact.disabled.button \... - if num + 2 < total_nums %a.ui.compact.num.button(href="#")= total_nums
Version data entries
153 entries across 153 versions & 1 rubygems