think_feel_do_engine 3.14.5 → 3.14.6

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: e59b95ffeeb1d59fe8b52cb34f6b2f4fd54b3ff5
4
- data.tar.gz: 0d21a6b0f371c12617d5e1f865fa4d23c9855654
3
+ metadata.gz: 08e7a5e4921610620c52fac43b67cf51d7f28234
4
+ data.tar.gz: a8a70cae1d2a29a65b7a16aed85af54a71ec61d6
5
5
  SHA512:
6
- metadata.gz: efbc3e970c1676e73996abbd77ad07171101415778c0cc98325e8438c215e6a8a94967a684c289dd6fd5404a80fc2565488c14ef00e9b995b98ddec9c5795329
7
- data.tar.gz: 5c14feacac0c0a5f32abbf60847202604a058b04ccf32f6b028d4bf6e6c84b49af1b7a73a5283bf4553b3a3fb734923f4187c2afe0789267b12860f93b24625b
6
+ metadata.gz: 2a13657f4377dd27419d76480f745c94ec63a378833dd6d1db5c0e8824ef2937a9583881db5e6e871e1180e341bb6a68c62f05adfaf5058b365605734bd7eee7
7
+ data.tar.gz: 797ab24a7eff630f63249f454f3c2b39d4f0382fd3870a3996ae2985ec07305c4e58dc2b00e7237883c6059a5ab548c49f7541e2cf99ad32c8b00984de635b27
@@ -3,25 +3,16 @@ module ContentProviders
3
3
  # Allows participants to record a new gratitude recording
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/gratitude_recordings/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
- gratitude_recordings: options
16
- .view_context.current_participant.gratitude_recordings
11
+ gratitude_recordings: view_context
12
+ .current_participant
13
+ .gratitude_recordings
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
@@ -1,9 +1,5 @@
1
1
  <h2>Gratitude Recordings</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
  <% gratitude_recordings.each do |gratitude_recording| %>
9
5
  <li class="list-group-item clearfix">
@@ -1,4 +1,4 @@
1
1
  # nodoc
2
2
  module ThinkFeelDoEngine
3
- VERSION = "3.14.5"
3
+ VERSION = "3.14.6"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: think_feel_do_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.5
4
+ version: 3.14.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Carty-Fickes