Permalink
Browse files

prev page for search results

  • Loading branch information...
1 parent 7c78918 commit e725210342d05886f923c34d72ef4cd7f7920298 @pedro pedro committed with hone Aug 26, 2010
Showing with 11 additions and 0 deletions.
  1. +7 −0 views/css.erb
  2. +4 −0 views/search.erb
View
@@ -213,8 +213,15 @@ h3 {
margin:25px 0 15px 0;
}
+#prev_section {
+ margin: 40px 0;
+ font-size: 20px;
+ color: #777;
+}
+
#next_section {
margin: 40px 0;
+ float: right;
text-align: right;
font-size: 20px;
color: #777;
View
@@ -12,3 +12,7 @@
<% if next_page %>
<div id="next_section"><a href="/search?q=<%= query %>&page=<%= next_page %>">Next Page &rarr;</a></div>
<% end %>
+
+<% if prev_page %>
+ <div id="prev_section"><a href="/search?q=<%= query %>&page=<%= prev_page %>">&larr; Prev Page</a></div>
+<% end %>

0 comments on commit e725210

Please sign in to comment.