think_feel_do_engine 3.15.1 → 3.15.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98cd362cdd365ee781003dd4ac033d0e66818a13
4
- data.tar.gz: 9d953e3770991efb7990311e261918c50ea7df4b
3
+ metadata.gz: 3e83ae6fd9a710a062c4abad4f5294fd8fa398be
4
+ data.tar.gz: 30db304fb47b40b0c49dfe62fe6ac93190f29d3f
5
5
  SHA512:
6
- metadata.gz: 599ec1b68ef5fe36783b364fcf795c70131e051eab30fedc021920a0255f5f17f8d0c11c983a0c5c9bf1c095b42cd3c2f1a32b99473cfd88b26f48c942509789
7
- data.tar.gz: 48109709021c70f1cb0485f1d39c3e1b94444c456bb0970500881a67d5f6eed0f606aa12a0207f51157813343af1dacc2430dfa316092ffeabf60306df379e4d
6
+ metadata.gz: 7f37cee0fb9d4c0b54951d1e4df53cd2d6840c261dda81c2c20218ee27725db866c23c1f472a2d6489c638b24b74a19ae3fcea9106ad9cbe2e6ffd387939e6fe
7
+ data.tar.gz: 0d4676397eea5e1ce4a3873abe315adb4d49098c54177efd3cd7c063944f19e1c860fca8677ea197bdf185c593e31b09da45151d41f43ae47dde3f111c589442
@@ -3,25 +3,16 @@ module ContentProviders
3
3
  # Allows participants view past positive experiences/events
4
4
  class IndexProvider < BitCore::ContentProvider
5
5
  def render_current(options)
6
- options.view_context.render(
6
+ view_context = options.view_context
7
+
8
+ view_context.render(
7
9
  template: "think_feel_do_engine/experiences/index_provider",
8
10
  locals: {
9
- new_link: options.view_context.navigator_location_path(
10
- module_id: first_new_provider
11
- .try(:bit_core_content_module_id),
12
- provider_id: first_new_provider
13
- .try(:id),
14
- content_position: 1),
15
- experiences: options
16
- .view_context.current_participant.experiences
11
+ experiences: view_context
12
+ .current_participant
13
+ .experiences
17
14
  })
18
15
  end
19
-
20
- private
21
-
22
- def first_new_provider
23
- NewProvider.first
24
- end
25
16
  end
26
17
  end
27
18
  end
@@ -28,13 +28,17 @@ module ThinkFeelDoEngine
28
28
  .to_a.select do |e|
29
29
  lessons.keys.include?(e.current_url.gsub(URL_ROOT_RE, "")) ||
30
30
  lessons_default
31
- .keys.include?(e.current_url.gsub(URL_ROOT_RE, ""))
31
+ .keys.include?(e.current_url.gsub(URL_ROOT_RE, "")) ||
32
+ lessons_default
33
+ .keys.include?(e.current_url.gsub(URL_ROOT_RE, "")[0...-1])
32
34
  end
33
35
 
34
36
  lesson_select_events.map do |e|
35
37
  lesson_id = lessons[e.current_url.gsub(URL_ROOT_RE, "")] ||
36
38
  lessons_default[e.current_url
37
- .gsub(URL_ROOT_RE, "")]
39
+ .gsub(URL_ROOT_RE, "")] ||
40
+ lessons_default[e.current_url
41
+ .gsub(URL_ROOT_RE, "")[0...-1]]
38
42
  last_page_opened = last_page_opened(e, lesson_id)
39
43
  event_hash(participant, lesson_id, e, last_page_opened)
40
44
  end
@@ -1,9 +1,5 @@
1
1
  <h2>Experiences</h2>
2
2
 
3
- <div class="btn-toolbar">
4
- <%= link_to "New", new_link, class: "btn btn-primary" %>
5
- </div>
6
-
7
3
  <ul class="list-group">
8
4
  <% experiences.each do |experience| %>
9
5
  <li class="list-group-item">
@@ -1,4 +1,4 @@
1
1
  # nodoc
2
2
  module ThinkFeelDoEngine
3
- VERSION = "3.15.1"
3
+ VERSION = "3.15.2"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: think_feel_do_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.15.1
4
+ version: 3.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Carty-Fickes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-13 00:00:00.000000000 Z
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails