journalduhacker/app/views/home/index.html.erb

21 lines
589 B
Plaintext
Raw Normal View History

<ol class="stories list">
<%= render :partial => "stories/listdetail", :collection => @stories,
:as => :story %>
</ol>
2012-07-07 00:33:27 +02:00
<div class="morelink">
<% if @page && @page > 1 %>
2012-07-11 16:02:59 +02:00
<a href="<%= @tag ? "/t/#{@tag.tag}" : (@newest ? "/newest" : "/")
%><%= @page == 2 ? "" : "page/#{@page - 1}" %>">&lt;&lt; Page
2012-07-07 00:33:27 +02:00
<%= @page - 1 %></a>
<% end %>
<% if @show_more %>
<% if @page && @page > 1 %>
|
<% end %>
<a href="<%= @tag ? "/t/#{@tag.tag}" : (@newest ? "/newest" : "")
%>/page/<%= @page + 1 %>">Page <%= @page + 1 %> &gt;&gt;</a>
<% end %>
</div>