major refactoring of post sets and pagination, incomplete

This commit is contained in:
albert
2011-06-03 19:47:16 -04:00
parent ce0695c606
commit ca3e9bb6db
21 changed files with 475 additions and 204 deletions

View File

@@ -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>

View File

@@ -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>