0
@@ -34,6 +34,7 @@ class AssetsController < ApplicationController
0
@listens = @asset.listens.find(:all)
0
@comments = @asset.comments.find_all_by_spam(false)
0
+ @listeners = @asset.listeners.first(5)
0
@@ -44,21 +45,24 @@ class AssetsController < ApplicationController
0
- limit = (params[:latest] && params[:latest].to_i < 50) ? params[:latest] : 5
0
- @page_title = "Latest #{limit} uploaded mp3s on alonetone" if params[:latest]
0
- @assets = Asset.latest(limit)
0
- @popular = Asset.most_popular(limit)
0
- @playlists = Playlist.latest(6)
0
+ limit = (params[:latest] && params[:latest].to_i < 50) ? params[:latest] : 5
0
+ @page_title = "Latest #{limit} uploaded mp3s on alonetone" if params[:latest]
0
+ @assets = Asset.latest(limit)
0
+ @popular = Asset.find(:all, :limit => limit, :order => 'hotness DESC')
0
+ @playlists = Playlist.latest(6)
0
+ @assets = Asset.latest(50)
0
top = (params[:top] && params[:top].to_i < 50) ? params[:top] : 20
0
@page_title = "Top #{top} tracks on alonetone"
0
- @popular = Asset.
most_popular(top)
0
+ @popular = Asset.
find(:all, :limit => top, :order => 'hotness DESC')
0
wants.html { render :action => 'latest'}
0
@@ -126,7 +130,7 @@ class AssetsController < ApplicationController
0
if @asset.update_attributes(params[:asset])
0
flash[:ok] = 'Track updated!'
0
- format.html { redirect_to
edit_user_track_url(current_user, @asset) }
0
+ format.html { redirect_to
user_track_url(current_user, @asset) }
0
format.xml { head :ok }
0
format.html { render :action => "edit" }
Comments
No one has commented yet.