Skip to content

Commit

Permalink
added favicon and fixed search pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismatthieu committed Aug 7, 2011
1 parent b445b70 commit d0b4e67
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 3 additions & 1 deletion app/controllers/podcasts_controller.rb
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions app/views/podcasts/index.html.erb
Expand Up @@ -52,7 +52,9 @@
<br />

<% if @current_user && @current_user.admin %>
<div class="entry">
<%= link_to 'New podcast', :action => 'new' %>
</div>
<% end %>


Expand Down
2 changes: 2 additions & 0 deletions app/views/podcasts/show.html.erb
Expand Up @@ -48,7 +48,9 @@
<br />

<% if @current_user && @current_user.admin %>
<div class="entry">
<%= link_to 'New podcast', :action => 'new' %>
</div>
<% end %>


Binary file modified public/favicon.ico 100644 → 100755
Binary file not shown.

0 comments on commit d0b4e67

Please sign in to comment.