major refactoring of post sets and pagination, incomplete
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
<div id="c-posts">
|
||||
<div id="a-index">
|
||||
<% if @post_set.suggestions.any? %>
|
||||
<div class="notice">
|
||||
Maybe you meant: <%= @post_set.suggestions.map {|x| link_to(x, posts_path(:tags => x), :class => "tag-type-#{Tag.type_name(x)}" )}.to_sentence(:last_word_connector => ", or ", :two_words_connector => " or ") %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<aside id="sidebar">
|
||||
<section id="search-box">
|
||||
<h1>Search</h1>
|
||||
|
||||
@@ -5,5 +5,7 @@
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="paginator">
|
||||
<%= post_set.presenter.pagination_html(self) %>
|
||||
<%= smart_paginator(post_set) do |page| %>
|
||||
<%= link_to(page, posts_path(:page => page, :tags => params[:tags])) %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user