Fixing zero length tracks
This commit is contained in:
parent
0071d476ae
commit
1cdf75281e
@ -1,6 +1,6 @@
|
|||||||
class Album < ActiveRecord::Base
|
class Album < ActiveRecord::Base
|
||||||
belongs_to :artist
|
belongs_to :artist
|
||||||
has_many :tracks, :conditions => ['length > 0'], :order => 'bonus ASC, position ASC', :dependent => :destroy
|
has_many :tracks, :conditions => ['position > 0'], :order => 'bonus ASC, position ASC', :dependent => :destroy
|
||||||
has_many :album_formats
|
has_many :album_formats
|
||||||
has_many :release_formats, :through => :album_formats
|
has_many :release_formats, :through => :album_formats
|
||||||
|
|
||||||
|
@ -28,5 +28,5 @@
|
|||||||
%tr
|
%tr
|
||||||
%td.song-title= track[:name]
|
%td.song-title= track[:name]
|
||||||
%td.song-duration
|
%td.song-duration
|
||||||
.s-duration= track[:duration]
|
.s-duration= (track[:duration] unless track[:duration] == '0:00')
|
||||||
.s-add{ :data_id => track[:id] }= I18n.t 'player.add_one'
|
.s-add{ :data_id => track[:id] }= I18n.t 'player.add_one'
|
Loading…
x
Reference in New Issue
Block a user