28 lines
852 B
Plaintext
28 lines
852 B
Plaintext
<% if @cur_url == "/recent" %>
|
|
<div class="box" id="leader">
|
|
<em>The <a href="/newest">newest</a> stories with a random sampling of
|
|
recently submitted stories that have not yet reached the front page.</em>
|
|
</div>
|
|
<% end %>
|
|
|
|
<ol class="stories list <%= @cur_url == "/hidden" ? "show_hidden" : "" %>">
|
|
<%= render :partial => "stories/listdetail", :collection => @stories,
|
|
:as => :story %>
|
|
</ol>
|
|
|
|
<div class="morelink">
|
|
<% if @page && @page > 1 %>
|
|
<a href="<%= @cur_url %><%= @cur_url == "/" ? "" : "/" %><%=
|
|
@page == 2 ? "" : "page/#{@page - 1}" %>"><< Page
|
|
<%= @page - 1 %></a>
|
|
<% end %>
|
|
|
|
<% if @show_more %>
|
|
<% if @page && @page > 1 %>
|
|
|
|
|
<% end %>
|
|
<a href="<%= @cur_url %><%= @cur_url == "/" ? "" : "/" %>page/<%=
|
|
@page + 1 %>">Page <%= @page + 1 %> >></a>
|
|
<% end %>
|
|
</div>
|