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.
@@ -36,6 +36,8 @@ class ContentItemPresenter < ExplicitDelegator
36
36
  'completed' if source.completed?
37
37
  end
38
38
 
39
+ private
40
+
39
41
  def source
40
42
  __getobj__
41
43
  end
@@ -26,15 +26,19 @@ module WoopleTheme
26
26
  end
27
27
 
28
28
  def render_completed_on(&block)
29
- yield(formatted_date)
29
+ yield(formatted_completed_on)
30
30
  end
31
31
 
32
- private
33
-
34
- def formatted_date
35
- WoopleThemeI18n.l(completed_on.to_date)
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}")
@@ -17,7 +17,7 @@ module WoopleTheme
17
17
  end
18
18
 
19
19
  def render_completed_on(&block)
20
- yield(formatted_date)
20
+ yield(formatted_date) unless completed_on.nil?
21
21
  end
22
22
 
23
23
  def render_essential_duration(&block)
@@ -81,6 +81,7 @@ en:
81
81
  title: Electives
82
82
  history_tab_name: History
83
83
  reason_points: Reason/Points
84
+ in_progress: In-Progress
84
85
 
85
86
  date:
86
87
  formats:
@@ -1,3 +1,3 @@
1
1
  module WoopleTheme
2
- VERSION = '0.5.12'
2
+ VERSION = '0.5.13'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: woople-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.12
4
+ version: 0.5.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: