mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
pull pagination if randomizing
This commit is contained in:
parent
79ba7aa4f8
commit
279ffa4df1
1 changed files with 14 additions and 12 deletions
|
@ -49,19 +49,21 @@
|
|||
<% end %>
|
||||
</ul>
|
||||
|
||||
<% if @page_count > 1 %>
|
||||
<div style="font-size: 30pt">
|
||||
<% if @current_page != 1 %>
|
||||
<a href="#" onclick="getPage(<%= @current_page - 1 %>); return false"><i class="icon-arrow-left" style="text-decoration: none"></i></a>
|
||||
<% end %>
|
||||
<% if params[:sort_by] != 'random' %>
|
||||
<% if @page_count > 1 %>
|
||||
<div style="font-size: 30pt">
|
||||
<% if @current_page != 1 %>
|
||||
<a href="#" onclick="getPage(<%= @current_page - 1 %>); return false"><i class="icon-arrow-left" style="text-decoration: none"></i></a>
|
||||
<% end %>
|
||||
|
||||
<% 1.upto(@page_count) do |num| %>
|
||||
<a href="#" onclick="getPage(<%= num %>); return false" style="<%= "text-decoration: none" if num == @current_page %>"><%= num %></a>
|
||||
<% end %>
|
||||
<% 1.upto(@page_count) do |num| %>
|
||||
<a href="#" onclick="getPage(<%= num %>); return false" style="<%= "text-decoration: none" if num == @current_page %>"><%= num %></a>
|
||||
<% end %>
|
||||
|
||||
<% if @current_page != @page_count %>
|
||||
<a href="#" onclick="getPage(<%= @current_page + 1 %>); return false"><i class="icon-arrow-right" style="text-decoration: none"></i></a>
|
||||
<% end %>
|
||||
</div>
|
||||
<% if @current_page != @page_count %>
|
||||
<a href="#" onclick="getPage(<%= @current_page + 1 %>); return false"><i class="icon-arrow-right" style="text-decoration: none"></i></a>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div> <!-- end .content -->
|
Loading…
Add table
Reference in a new issue