forked from External/greenlight
		
	Duration is just shown as a number for now
This commit is contained in:
		@@ -140,14 +140,7 @@ class @Recordings
 | 
				
			|||||||
      if !@owner
 | 
					      if !@owner
 | 
				
			||||||
        table_api.column(-1).visible(false)
 | 
					        table_api.column(-1).visible(false)
 | 
				
			||||||
      for recording in data.recordings
 | 
					      for recording in data.recordings
 | 
				
			||||||
        hours = Math.floor(recording.length/60)
 | 
					        recording.duration = recording.length
 | 
				
			||||||
        minutes = recording.length % 60
 | 
					 | 
				
			||||||
        recording.duration =  if minutes>=60
 | 
					 | 
				
			||||||
                                hours+"hours and "+minutes+" minutes"
 | 
					 | 
				
			||||||
                              else if minutes>1
 | 
					 | 
				
			||||||
                                minutes+" minutes"
 | 
					 | 
				
			||||||
                              else
 | 
					 | 
				
			||||||
                                "< 1 minute"
 | 
					 | 
				
			||||||
      data.recordings.sort (a,b) ->
 | 
					      data.recordings.sort (a,b) ->
 | 
				
			||||||
        return new Date(b.start_time) - new Date(a.start_time)
 | 
					        return new Date(b.start_time) - new Date(a.start_time)
 | 
				
			||||||
      table_api.clear()
 | 
					      table_api.clear()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user