File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,8 @@ body { padding:0; margin:0; }
78
78
# main ul .failed li dl dd .error pre { margin-top : 3px ; line-height : 1.3 ;}
79
79
80
80
# main p .pagination { background : # efefef ; padding : 10px ; overflow : hidden;}
81
+ # main p .pagination a .separated-right { padding-right : 10px ; }
82
+ # main p .pagination a .separated-left { padding-left : 10px ; }
81
83
# main p .pagination a .less { float : left;}
82
84
# main p .pagination a .more { float : right;}
83
85
Original file line number Diff line number Diff line change 1
1
<% if start - 20 >= 0 || start + 20 <= size %>
2
2
<p class ='pagination '>
3
+ <% if start - 20 >= 0 %>
4
+ < a href ="<%= current_page %> ?start=0 " class ='less separated-right '> ««</ a >
5
+ <% end %>
3
6
<% if start - 20 >= 0 %>
4
7
< a href ="<%= current_page %> ?start= <%= start - 20 %> " class ='less '> « less</ a >
5
8
<% end %>
6
9
<% if start + 20 <= size %>
7
- < a href ="<%= current_page %> ?start= <%= start + 20 %> " class ='more '> more »</ a >
10
+ <% page = ( size % 20 == 0 ? ( size -20 ) : ( ( size ) - ( size % 20 ) ) ) %>
11
+ < a href ="<%= current_page %> ?start= <%= page %> " class ='more separated-left '> »»</ a >
8
12
<% end %>
13
+ <% if start + 20 <= size %>
14
+ < a href ="<%= current_page %> ?start= <%= start + 20 %> " class ='more '> more »</ a >
15
+ <% end %>
9
16
</ p >
10
17
<% end %>
You can’t perform that action at this time.
0 commit comments