Permalink
Browse files

added favicon and fixed search pagination

  • Loading branch information...
1 parent b445b70 commit d0b4e67dadb956d03fbcdbafb32fbedda7c675fe @chrismatthieu committed Aug 7, 2011
View
BIN .DS_Store
Binary file not shown.
@@ -93,7 +93,9 @@ def search
else
conditions = ["poddesc ILIKE ? or podname ILIKE ?", @keywords, @keywords] unless @keywords == ""
end
- @podcasts = Podcast.find(:all, :conditions => conditions, :order => 'created_at desc')
+ # @podcasts = Podcast.find(:all, :conditions => conditions, :order => 'created_at desc')
+ @podcasts = Podcast.paginate :page => params[:page], :per_page => 3, :order => 'created_at DESC', :conditions => conditions
+
render :action => 'index'
end
@@ -52,7 +52,9 @@
<br />
<% if @current_user && @current_user.admin %>
+<div class="entry">
<%= link_to 'New podcast', :action => 'new' %>
+</div>
<% end %>
@@ -48,7 +48,9 @@
<br />
<% if @current_user && @current_user.admin %>
+<div class="entry">
<%= link_to 'New podcast', :action => 'new' %>
+</div>
<% end %>
View
BIN public/favicon.ico 100644 → 100755
Binary file not shown.

0 comments on commit d0b4e67

Please sign in to comment.