2011-04-03 16:21:05 +00:00
|
|
|
module ApplicationHelper
|
2011-04-20 23:05:32 +00:00
|
|
|
def navigation
|
|
|
|
|
|
|
|
end
|
2011-04-03 16:21:05 +00:00
|
|
|
end
|
2011-04-06 20:59:50 +00:00
|
|
|
|
|
|
|
class Numeric
|
|
|
|
def toSeconds
|
|
|
|
(self / 1000).round
|
|
|
|
end
|
|
|
|
|
|
|
|
def toTime
|
|
|
|
s = self.toSeconds
|
|
|
|
m = (s / 60).floor
|
|
|
|
s -= m * 60
|
|
|
|
m.to_s << ':' << (s < 10 ? '0' : '') << s.to_s
|
|
|
|
end
|
|
|
|
end
|