woople-theme 0.5.12 → 0.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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