woople-theme 0.5.12 → 0.5.13
Sign up to get free protection for your applications and to get access to all the features.
@@ -26,15 +26,19 @@ module WoopleTheme
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def render_completed_on(&block)
|
29
|
-
yield(
|
29
|
+
yield(formatted_completed_on)
|
30
30
|
end
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
32
|
+
def formatted_completed_on
|
33
|
+
if completed_on.nil?
|
34
|
+
I18n.t('woople_theme.dashboards.member.electives_section.in_progress')
|
35
|
+
else
|
36
|
+
WoopleThemeI18n.l(completed_on.to_date)
|
37
|
+
end
|
36
38
|
end
|
37
39
|
|
40
|
+
private
|
41
|
+
|
38
42
|
def points_metadata
|
39
43
|
if in_progress?
|
40
44
|
I18n.t('woople_theme.dashboards.member.points', count: total_points, points: "#{current_points}/#{total_points}")
|
data/config/locales/en.yml
CHANGED
data/lib/woople-theme/version.rb
CHANGED