mumuki-laboratory 6.4.0 → 6.4.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74f37222cfbd2062f66b0734673a6d1703db85abf107e8d9a1bcdce89e00d007
4
- data.tar.gz: 7ecb6822446436ea233a5a3491464bd87fa66ad8150ba6896ebd4ff50dac78a9
3
+ metadata.gz: b5f61c0972720fad49773ce961e0d22bf5ccbe278227acf8c774b96c2496c700
4
+ data.tar.gz: 6a0f37e73b932e93103875147c87a26655db669ca3bc8596b07e7c7f088f9de0
5
5
  SHA512:
6
- metadata.gz: 2c806d54fec0d78d19de80c35b4402819e8c8364ab22e8e38fb717ac013ef73d0f076b7ad35b47f691009a6bfc3d1c51049994beafb1cb18b5d96f189c2cf352
7
- data.tar.gz: bb6d056380dbae62c810f5ceca81b1ef22ecb383132d2454edc385985271f4b2f85ad3564141560e0c48391d820956c9de233f4ea4eb94dae9b9ac9ba8f96876
6
+ metadata.gz: 41e106589d3de950b94ccdc08c61c391426a24d0221ade64ad360bf05f475f40105aa669ecc79e01f4af988103e393efe7ed0515800d24b62def8df4dd193dee
7
+ data.tar.gz: 06fac5ebb2ee4bf166b9fd05d137d79ad8b2d9c00178b43fbef3496f697ef025c778dbebe380c12af3ffe3485617871d89069d274c059ae598afdcb9ca811ab8
@@ -198,6 +198,7 @@ mumuki.load(function () {
198
198
  results_kids_modal.find('.modal-header').first().html(data.title_html);
199
199
  results_kids_modal.find('.modal-footer').first().html(data.button_html);
200
200
  mumuki.kids._showCorollaryCharacter();
201
+ $('.mu-close-modal').click(() => $('#kids-results').modal('hide'));
201
202
  }
202
203
  }, 1000 * 4);
203
204
  },
@@ -14,7 +14,7 @@ module OrganizationsControllerTemplate
14
14
  end
15
15
 
16
16
  def set_organization!
17
- @organization = Organization.find_by! name: params[:id]
17
+ @organization = Organization.locate! params[:id]
18
18
  end
19
19
 
20
20
  def protection_slug
@@ -18,7 +18,7 @@ module UsersControllerTemplate
18
18
  end
19
19
 
20
20
  def set_user!
21
- @user = User.find_by uid: params[:id]
21
+ @user = User.locate! params[:id]
22
22
  end
23
23
 
24
24
  def set_new_user!
@@ -12,4 +12,8 @@ module WithStudentPathNavigation
12
12
  def next_exercise_button(exercise)
13
13
  next_button(exercise) || next_button(exercise.guide.lesson)
14
14
  end
15
+
16
+ def close_modal_button
17
+ %Q{<button class="btn btn-success btn-block mu-close-modal">#{t :keep_learning}</button>}.html_safe
18
+ end
15
19
  end
@@ -2,7 +2,7 @@
2
2
  <div class="col-md-12">
3
3
  <div class="actions">
4
4
  <% if assignment.passed? %>
5
- <%= next_exercise_button(@exercise) %>
5
+ <%= next_exercise_button(@exercise) || close_modal_button %>
6
6
  <% else %>
7
7
  <button class="btn btn-success btn-block submission-control" id="kids-btn-retry" data-dismiss="modal" aria-label="<%= t :retry_exercise %>"> <%= t :retry_exercise %> </button>
8
8
  <% end %>
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Laboratory
3
- VERSION = '6.4.0'
3
+ VERSION = '6.4.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-laboratory
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.0
4
+ version: 6.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-24 00:00:00.000000000 Z
11
+ date: 2019-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails