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; }
7878# main ul .failed li dl dd .error pre { margin-top : 3px ; line-height : 1.3 ;}
7979
8080# 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 ; }
8183# main p .pagination a .less { float : left;}
8284# main p .pagination a .more { float : right;}
8385
Original file line number Diff line number Diff line change 11<% if start - 20 >= 0 || start + 20 <= size %>
22 <p class ='pagination '>
3+ <% if start - 20 >= 0 %>
4+ < a href ="<%= current_page %> ?start=0 " class ='less separated-right '> ««</ a >
5+ <% end %>
36 <% if start - 20 >= 0 %>
47 < a href ="<%= current_page %> ?start= <%= start - 20 %> " class ='less '> « less</ a >
58 <% end %>
69 <% 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 >
812 <% end %>
13+ <% if start + 20 <= size %>
14+ < a href ="<%= current_page %> ?start= <%= start + 20 %> " class ='more '> more »</ a >
15+ <% end %>
916</ p >
1017<% end %>
You can’t perform that action at this time.
0 commit comments