forked from External/greenlight
* Fixed issue with recording length and sort * Made js run on any page with a table element on it * Scrutinizer fix
This commit is contained in:
committed by
Jesus Federico
parent
95a98f6574
commit
4d648534f7
@ -30,7 +30,7 @@ module RecordingsHelper
|
||||
|
||||
len = valid_playbacks.first[:length]
|
||||
if len > 60
|
||||
"#{(len / 60).round} hrs"
|
||||
"#{(len / 60).to_i} hrs #{len % 60} mins"
|
||||
elsif len == 0
|
||||
"< 1 min"
|
||||
else
|
||||
@ -42,4 +42,8 @@ module RecordingsHelper
|
||||
def safe_recording_images(images)
|
||||
Array.wrap(images)
|
||||
end
|
||||
|
||||
def room_uid_from_bbb(bbb_id)
|
||||
Room.find_by(bbb_id: bbb_id)[:uid]
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user