woople-theme 0.5.11 → 0.5.12
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'duration'
|
2
1
|
require 'woople_theme_i18n'
|
3
2
|
|
4
3
|
module WoopleTheme
|
@@ -22,7 +21,7 @@ module WoopleTheme
|
|
22
21
|
end
|
23
22
|
|
24
23
|
def render_essential_duration(&block)
|
25
|
-
yield(
|
24
|
+
yield(time_total)
|
26
25
|
end
|
27
26
|
|
28
27
|
private
|
@@ -30,11 +29,6 @@ module WoopleTheme
|
|
30
29
|
def formatted_date
|
31
30
|
WoopleThemeI18n.l(completed_on.to_date)
|
32
31
|
end
|
33
|
-
|
34
|
-
def formatted_duration
|
35
|
-
Duration.format_time(time_total)
|
36
|
-
end
|
37
|
-
|
38
32
|
end
|
39
33
|
end
|
40
34
|
end
|
data/lib/woople-theme/version.rb
CHANGED