Tapes are now Clips, also they have categories
This commit is contained in:
parent
86c489be72
commit
c8732b6332
41 changed files with 347 additions and 148 deletions
2
app/helpers/categories_helper.rb
Normal file
2
app/helpers/categories_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
module CategoriesHelper
|
||||
end
|
||||
9
app/helpers/clips_helper.rb
Normal file
9
app/helpers/clips_helper.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
module ClipsHelper
|
||||
def seconds_to_time(seconds)
|
||||
if seconds >= 3600 then
|
||||
Time.at(seconds.round).utc.strftime("%H:%M:%S") #=> "01:00:00"
|
||||
else
|
||||
Time.at(seconds.round).utc.strftime("%M:%S") #=> "01:00:00"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
module TapesHelper
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue