mumuki-laboratory 8.1.3 → 8.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/mumuki_laboratory/application/button.js +2 -2
  3. data/app/assets/javascripts/mumuki_laboratory/application/codemirror-builder.js +1 -1
  4. data/app/assets/javascripts/mumuki_laboratory/application/codemirror.js +1 -1
  5. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids.scss +5 -0
  6. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_overlap.scss +0 -4
  7. data/app/helpers/assignment_result_helper.rb +1 -1
  8. data/app/helpers/discussions_helper.rb +4 -4
  9. data/app/helpers/editor_tabs_helper.rb +1 -1
  10. data/app/helpers/icons_helper.rb +1 -1
  11. data/app/helpers/links_helper.rb +1 -1
  12. data/app/helpers/menu_bar_helper.rb +5 -1
  13. data/app/helpers/overlapped_buttons_helper.rb +6 -2
  14. data/app/views/book/show.html.erb +1 -1
  15. data/app/views/discussions/_message.html.erb +2 -2
  16. data/app/views/exercise_solutions/_kids_level_up.html.erb +1 -1
  17. data/app/views/exercises/_exercise_assignment.html.erb +1 -1
  18. data/app/views/exercises/_read_only.html.erb +1 -1
  19. data/app/views/exercises/show.html.erb +1 -1
  20. data/app/views/layouts/_guide.html.erb +8 -6
  21. data/app/views/layouts/_kids.html.erb +4 -4
  22. data/app/views/layouts/_kindergarten.html.erb +5 -5
  23. data/app/views/layouts/_social_media.html.erb +4 -4
  24. data/app/views/layouts/_timer.html.erb +1 -1
  25. data/app/views/layouts/application.html.erb +4 -4
  26. data/app/views/layouts/exercise_inputs/editors/_code.html.erb +1 -6
  27. data/app/views/layouts/exercise_inputs/editors/_multiple_files.html.erb +4 -9
  28. data/app/views/layouts/exercise_inputs/forms/_problem_form.html.erb +1 -1
  29. data/app/views/layouts/modals/_guide_corollary.html.erb +13 -3
  30. data/app/views/layouts/modals/_kids_results.html.erb +2 -2
  31. data/app/views/layouts/modals/_kindergarten_context.html.erb +3 -3
  32. data/app/views/layouts/modals/_kindergarten_results.html.erb +3 -3
  33. data/app/views/layouts/modals/_kindergarten_results_aborted.html.erb +1 -1
  34. data/app/views/layouts/modals/_level_up.html.erb +1 -1
  35. data/app/views/users/_edit_user_form.html.erb +1 -1
  36. data/app/views/users/_user_form.html.erb +1 -1
  37. data/lib/mumuki/laboratory/engine.rb +1 -1
  38. data/lib/mumuki/laboratory/locales/en.yml +3 -0
  39. data/lib/mumuki/laboratory/locales/es-CL.yml +3 -0
  40. data/lib/mumuki/laboratory/locales/es.yml +4 -0
  41. data/lib/mumuki/laboratory/locales/pt.yml +3 -0
  42. data/lib/mumuki/laboratory/version.rb +1 -1
  43. data/spec/features/terms_flow_spec.rb +2 -0
  44. data/spec/helpers/icons_helper_spec.rb +3 -3
  45. data/spec/helpers/test_results_rendering_spec.rb +8 -8
  46. data/spec/helpers/with_navigation_spec.rb +14 -14
  47. data/spec/javascripts/gamification-spec.js +2 -2
  48. metadata +109 -104
  49. data/spec/dummy/config/database.travis.yml +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bcc70727fa140c5ad7c313f8b9e9a5e1f9a9e3b383b1add72556f64d4fed4e3
4
- data.tar.gz: 874a6b5d2f8a64249560dfb11f9f743d6f11267e8c73602e0d53abacb8e9c651
3
+ metadata.gz: ef8bf0f9bb9d5a3bc7daced2376fdb01ce52872178726bffc6d86def1081a2a4
4
+ data.tar.gz: e2e907a4cf38b75a7ccb18160b84bd1beab765d3ac5cc5b986341701a7b4845e
5
5
  SHA512:
6
- metadata.gz: 6c9b7889090c806dd880c5cd9d2730117d2d4927ef18765582b0d79010463f4596bdcf8f65f297b95e0bcec238ec7e36311bffe889d29460191cd79e929afdfb
7
- data.tar.gz: 2304d78fabb8a5268fb33f79737480d94550fdc22c9a94f9cd65f70ca02ed1e2dbb7d78089690503a85b99ec88dd845a70678970997a3bba4a3c644b2e90276e
6
+ metadata.gz: 57196182676bed18199d12a5b44901baebe03f0763088f217117fbc85c2c5e3ab2cc009de7fa32aa7f6b1c039b939cd072e58cff755179228b6f328aa3eee2ab
7
+ data.tar.gz: 268749a38da64dc28363ff6862c3ef566fe65aad62dc208f9629664d5f939414510e8005059fff43ebc6aa0817178362485996481206a442e9331a9295b22be7
@@ -106,11 +106,11 @@ mumuki.Button = class {
106
106
  }
107
107
 
108
108
  setWaitingText () {
109
- this.$button.html('<i class="fa fa-refresh fa-spin"></i> ' + this.$button.attr('data-waiting'));
109
+ this.$button.html('<i class="fas fa-sync-alt fa-spin"></i> ' + this.$button.attr('data-waiting'));
110
110
  }
111
111
 
112
112
  setRetryText() {
113
- this.$button.html('<i class="fa fa-undo"></i>');
113
+ this.$button.html('<i class="fas fa-undo"></i>');
114
114
  }
115
115
 
116
116
  setOriginalContent () {
@@ -1,7 +1,7 @@
1
1
  (() => {
2
2
  function submit() {
3
3
  $('body').removeClass('fullscreen');
4
- $('.editor-resize .fa-stack-1x').removeClass('fa-compress').addClass('fa-expand');
4
+ $('.editor-resize .fas').toggleClass('fa-expand fa-compress');
5
5
  $('.btn-submit').click();
6
6
  }
7
7
 
@@ -36,7 +36,7 @@ mumuki.page.editors = [];
36
36
 
37
37
  function toggleFullscreen() {
38
38
  $('body').toggleClass('fullscreen');
39
- $('.editor-resize .fa-stack-1x').toggleClass('fa-expand').toggleClass('fa-compress');
39
+ $('.editor-resize .fas').toggleClass('fa-expand fa-compress');
40
40
  }
41
41
 
42
42
  function indentWithSpaces(cm) {
@@ -10,6 +10,11 @@ $kids-speech-border: 1px solid $kids-speech-border-color;
10
10
 
11
11
  $kids-speech-tabs-width: 40px;
12
12
 
13
+ .mu-exercise-content {
14
+ border-radius: 10px;
15
+ border: 1px solid #dddddd;
16
+ }
17
+
13
18
  .mu-kids-exercise {
14
19
  height: $kids-height;
15
20
  min-height: $kids-height;
@@ -18,10 +18,6 @@
18
18
  }
19
19
  }
20
20
 
21
- .editor-resize {
22
- font-size: 0.5em;
23
- }
24
-
25
21
  body.fullscreen {
26
22
  .mu-overlapped a {
27
23
  margin-right: 15px;
@@ -15,7 +15,7 @@ module AssignmentResultHelper
15
15
 
16
16
  def render_community_link
17
17
  if community_link?
18
- link_to fa_icon(:facebook, text: I18n.t(:ask_community), class: 'fa-fw'), community_link, target: '_blank'
18
+ link_to fa_icon('facebook-f', type: :brand, text: I18n.t(:ask_community), class: 'fa-fw'), community_link, target: '_blank'
19
19
  end
20
20
  end
21
21
 
@@ -67,8 +67,8 @@ module DiscussionsHelper
67
67
  def discussion_messages_icon(discussion)
68
68
  %Q{
69
69
  <span class="discussion-icon fa-stack fa-xs">
70
- <i class="fa fa-comment-o fa-stack-2x"></i>
71
- <i class="fa fa-stack-1x">#{discussion.validated_messages_count}</i>
70
+ <i class="far fa-comment fa-stack-2x"></i>
71
+ <i class="fas fa-stack-1x">#{discussion.validated_messages_count}</i>
72
72
  </span>
73
73
  }.html_safe
74
74
  end
@@ -77,8 +77,8 @@ module DiscussionsHelper
77
77
  if discussion.upvotes_count > 0
78
78
  %Q{
79
79
  <span class="discussion-icon fa-stack fa-xs">
80
- <i class="fa fa-star-o fa-stack-2x"></i>
81
- <i class="fa fa-stack-1x">#{discussion.upvotes_count}</i>
80
+ <i class="far fa-star fa-stack-2x"></i>
81
+ <i class="fas fa-stack-1x">#{discussion.upvotes_count}</i>
82
82
  </span>
83
83
  }.html_safe
84
84
  end
@@ -14,7 +14,7 @@ module EditorTabsHelper
14
14
  def messages_tab(exercise, organization = Organization.current)
15
15
  "<li id='messages-tab' role='presentation'>
16
16
  <a data-target='#messages' tabindex='0' aria-controls='console' role='tab' data-toggle='tab' class='editor-tab'>
17
- #{fa_icon 'comments-o'} #{t :messages }
17
+ #{fa_icon 'comments', type: :regular} #{t :messages }
18
18
  </a>
19
19
  </li>".html_safe if organization.raise_hand_enabled? && exercise.has_messages_for?(current_user)
20
20
  end
@@ -58,6 +58,6 @@ module IconsHelper
58
58
  end
59
59
 
60
60
  def icon_for_read(read)
61
- tag('i', class: "fa fa-envelope#{read ? '-o' : ''}")
61
+ tag('i', class: "fa#{read ? 'r' : 's'} fa-envelope")
62
62
  end
63
63
  end
@@ -80,7 +80,7 @@ module LinksHelper
80
80
  return unless current_user&.writer?
81
81
 
82
82
  url = yield
83
- link_to fixed_fa_icon(:pencil), url, class: "mu-content-toolbar-item", target: "_blank", title: t(:edit)
83
+ link_to fixed_fa_icon('pencil-alt'), url, class: "mu-content-toolbar-item", target: "_blank", title: t(:edit)
84
84
  end
85
85
 
86
86
  def url_for_bibliotheca_guide(guide)
@@ -18,7 +18,7 @@ module MenuBarHelper
18
18
  end
19
19
 
20
20
  def link_to_profile
21
- li_tag menu_item('user-o', :profile, user_path)
21
+ menu_item('user', :profile, user_path)
22
22
  end
23
23
 
24
24
  def link_to_classroom
@@ -35,6 +35,10 @@ module MenuBarHelper
35
35
  menu_item icon, app_name, url
36
36
  end
37
37
 
38
+ def logout_link
39
+ li_tag menu_item('sign-out-alt', :sign_out, logout_path(origin: url_for))
40
+ end
41
+
38
42
  def menu_item(icon, name, url)
39
43
  link_to fixed_fa_icon(icon, text: t(name)), url, role: 'menuitem', tabindex: '-1'
40
44
  end
@@ -1,4 +1,8 @@
1
1
  module OverlappedButtonsHelper
2
+ def expand_icon
3
+ overlapped_button_icon :fullscreen, :expand, " (F11)"
4
+ end
5
+
2
6
  def restart_icon
3
7
  overlapped_button_icon :restart, :undo
4
8
  end
@@ -11,7 +15,7 @@ module OverlappedButtonsHelper
11
15
  link_to restart_icon, guide_progress_path(guide), class: 'mu-content-toolbar-item mu-restart-guide', data: {confirm: t(:confirm_restart)}, method: :delete
12
16
  end
13
17
 
14
- def overlapped_button_icon(key, icon)
15
- fa_icon(icon, title: t(key), class: 'fa-fw', role: 'button', 'aria-label': t(key))
18
+ def overlapped_button_icon(key, icon, extra_title='')
19
+ fa_icon(icon, title: t(key) + extra_title, class: 'fa-fw', role: 'button', 'aria-label': t(key), 'data-placement': 'left')
16
20
  end
17
21
  end
@@ -26,7 +26,7 @@
26
26
 
27
27
  <% unless enabled %>
28
28
  <div class="text-center mu-lock">
29
- <i class="fa fa-lock fa-5x"></i>
29
+ <i class="fas fa-lock fa-5x"></i>
30
30
  <p><%= t :locked_content %></p>
31
31
  </div>
32
32
  <% end %>
@@ -17,11 +17,11 @@
17
17
  </a>
18
18
  <% if message.from_initiator? %>
19
19
  <a class="discussion-message-not-actually-a-question <%= 'selected' if message.not_actually_a_question? %>" onclick="mumuki.Forum.discussionMessageToggleNotActuallyAQuestion('<%= question_discussion_message_url(@discussion, message) %>', $(this))">
20
- <%= fa_icon('question-circle-o', class: 'fa-xs') %>
20
+ <%= fa_icon('question-circle', type: 'regular', class: 'fa-xs') %>
21
21
  </a>
22
22
  <% end %>
23
23
  <% end %>
24
- <%= link_to fa_icon('trash-o'), discussion_message_path(@discussion, message), method: :delete, data: { confirm: t(:are_you_sure, action: t(:destroy_message)) } %>
24
+ <%= link_to fa_icon('trash-alt', type: :regular), discussion_message_path(@discussion, message), method: :delete, data: { confirm: t(:are_you_sure, action: t(:destroy_message)) } %>
25
25
  <% end %>
26
26
  <% if should_show_approved_for?(current_user, message) %>
27
27
  <span class="discussion-message-approved selected">
@@ -3,7 +3,7 @@
3
3
  <%= t :level_up %>
4
4
  </h3>
5
5
  <div class="text-center mu-level">
6
- <i class="fa fa-star fa-fw fa-4x"></i>
6
+ <i class="fas fa-star fa-fw fa-4x"></i>
7
7
  <span class="mu-level-number"></span>
8
8
  <p></p>
9
9
  <p id="mu-solve-more-exercises"> <%= (t :solve_more_exercises_to_level_up).html_safe %></p>
@@ -6,7 +6,7 @@
6
6
  <div class="hint-box <%= 'hidden' if exercise.hint.blank? %>">
7
7
  <% if exercise.hint.present? %>
8
8
  <a data-toggle="collapse" href="#hint-section" class="text-info">
9
- <%= fa_icon 'lightbulb-o' %> <%= t :need_a_hint %>
9
+ <%= fa_icon 'lightbulb', type: :regular %> <%= t :need_a_hint %>
10
10
  </a>
11
11
 
12
12
  <div id="hint-section" class="collapse">
@@ -36,7 +36,7 @@
36
36
  <% end %>
37
37
  <% if @discussion.solved? %>
38
38
  <a class="discussion-upvote" onclick="mumuki.Forum.discussionUpvote('<%= upvote_discussion_url(@discussion) %>')">
39
- <%= fa_icon('thumbs-o-up', class: 'fa-xs') %>
39
+ <%= fa_icon('thumbs-up', type: :regular, class: 'fa-xs') %>
40
40
  <%= span_toggle t(:upvote), t(:undo_upvote), current_user.upvoted?(@discussion), class: 'hidden-sm hidden-xs' %>
41
41
  </a>
42
42
  <% end %>
@@ -51,7 +51,7 @@
51
51
 
52
52
  <div style="display: none" id="processing-template">
53
53
  <div class="bs-callout bs-callout-info">
54
- <h4><i class="fa fa-refresh fa-spin"></i> <strong><%= t :processing_your_solution %></strong></h4>
54
+ <h4><i class="fas fa-sync-alt fa-spin"></i> <strong><%= t :processing_your_solution %></strong></h4>
55
55
  <%= t :refresh_or_wait %>
56
56
  </div>
57
57
  </div>
@@ -33,12 +33,6 @@
33
33
  <div class="col-md-12">
34
34
  <div class="text-box">
35
35
  <%= @guide.description_html %>
36
-
37
- <div class="actions">
38
- <% if !@stats.try(:done?) && @next_exercise %>
39
- <%= link_to t(lesson_practice_key_for(@stats)), exercise_path(@next_exercise), class: 'btn btn-success' %>
40
- <% end %>
41
- </div>
42
36
  </div>
43
37
  </div>
44
38
  </div>
@@ -63,6 +57,14 @@
63
57
  </div>
64
58
  <% end %>
65
59
 
60
+ <% if !@stats.try(:done?) && @next_exercise %>
61
+ <div class="text-box">
62
+ <div class="actions">
63
+ <%= link_to t(lesson_practice_key_for(@stats)), exercise_path(@next_exercise), class: 'btn btn-success' %>
64
+ </div>
65
+ </div>
66
+ <% end %>
67
+
66
68
  <% if @stats&.done? %>
67
69
  <div class="text-box">
68
70
  <div class="actions">
@@ -3,17 +3,17 @@
3
3
  <% if exercise.hint? %>
4
4
  <ul class="mu-kids-character-speech-bubble-tabs">
5
5
  <li class="mu-kids-description active" data-target="description" title="<%= t :task %>">
6
- <i class="fa fa-fw fa-file-text-o"></i>
6
+ <i class="far fa-fw fa-file-alt"></i>
7
7
  </li>
8
8
  <li class="separator"></li>
9
9
  <li class="mu-kids-hint blink" data-target="hint" title="<%= t :need_a_hint %>">
10
- <i class="fa fa-fw fa-lightbulb-o"></i>
10
+ <i class="far fa-fw fa-lightbulb"></i>
11
11
  </li>
12
12
  </ul>
13
13
  <% end %>
14
14
  <div class="mu-kids-character-speech-bubble-normal">
15
- <i class="mu-kids-prev-speech fa fa-fw fa-caret-up"></i>
16
- <i class="mu-kids-next-speech fa fa-fw fa-caret-down"></i>
15
+ <i class="mu-kids-prev-speech fas fa-fw fa-caret-up"></i>
16
+ <i class="mu-kids-next-speech fas fa-fw fa-caret-down"></i>
17
17
  <div class="description"><%= exercise.description_task %></div>
18
18
  <div class="hint" style="display: none"><%= exercise.hint_html %></div>
19
19
  </div>
@@ -5,10 +5,10 @@
5
5
  <span class="mu-kindergarten-exercise-description"><%= exercise.description_task %></span>
6
6
  <div class="mu-kindergarten-buttons">
7
7
  <button class="mu-kindergarten-show-context" onclick="mumuki.kids.context.show()">
8
- <img class="mu-kindergarten-button-image" src="https://mumuki.io/static/show-context.svg" alt="">
8
+ <img class="mu-kindergarten-button-image" src="https://mumuki.io/static/show-context.svg" alt="" title="<%= t :see_context %>">
9
9
  </button>
10
10
  <button class="mu-kindergarten-play-description" onclick="mumuki.kids.speech.click('.mu-kindergarten-exercise-description', '<%= exercise.locale %>')">
11
- <img class="mu-kindergarten-button-image mu-kindergarten-play" src="https://mumuki.io/static/audio-play.svg" alt="">
11
+ <img class="mu-kindergarten-button-image mu-kindergarten-play" src="https://mumuki.io/static/audio-play.svg" alt="" title="<%= t :listen_statement %>">
12
12
  <img class="mu-kindergarten-button-image mu-kindergarten-stop hidden" src="https://mumuki.io/static/audio-stop.svg" alt="">
13
13
  </button>
14
14
  </div>
@@ -17,18 +17,18 @@
17
17
  <div class="mu-kindergarten-hint">
18
18
  <% if exercise.hint? %>
19
19
  <button class="mu-hint-light" onclick="mumuki.kids.hint.toggle()">
20
- <img class="mu-hint-light on" src="https://mumuki.io/static/lamparita_on.svg" alt="">
20
+ <img class="mu-hint-light on" src="https://mumuki.io/static/lamparita_on.svg" alt="" title="<%= t :need_a_hint %>">
21
21
  </button>
22
22
  <div class="mu-kindergarten-light-speech-bubble">
23
23
  <span class="mu-kindergarten-exercise-hint">
24
24
  <%= exercise.hint.markdownified %>
25
25
  </span>
26
26
  <button class="expand-or-collapse-hint-media" onclick="mumuki.kids.hint.toggleMedia()">
27
- <i class="fa fa-fw fa-2x fa-caret-up"></i>
27
+ <i class="fas fa-fw fa-2x fa-caret-up"></i>
28
28
  </button>
29
29
  </div>
30
30
  <% else %>
31
- <img class="mu-hint-light off" src="https://mumuki.io/static/lamparita_off.svg" alt="">
31
+ <img class="mu-hint-light off" src="https://mumuki.io/static/lamparita_off.svg" alt="" title="<%= t :no_need_hint %>">
32
32
  <% end %>
33
33
  </div>
34
34
  </div>
@@ -1,4 +1,4 @@
1
- <a class="fa fa-facebook social-icon" aria-label="Facebook" href="https://www.facebook.com/MumukiOrg" target="_blank"></a>
2
- <a class="fa fa-twitter social-icon" aria-label="Twitter" href="https://twitter.com/MumukiOrg" target="_blank"></a>
3
- <a class="fa fa-github social-icon" aria-label="Github" href="https://github.com/mumuki" target="_blank"></a>
4
- <a class="fa fa-linkedin social-icon" aria-label="LinkedIn" href="https://www.linkedin.com/company/mumukiorg" target="_blank"></a>
1
+ <a class="fab fa-facebook-f social-icon" aria-label="Facebook" href="https://www.facebook.com/MumukiOrg" target="_blank"></a>
2
+ <a class="fab fa-twitter social-icon" aria-label="Twitter" href="https://twitter.com/MumukiOrg" target="_blank"></a>
3
+ <a class="fab fa-github social-icon" aria-label="Github" href="https://github.com/mumuki" target="_blank"></a>
4
+ <a class="fab fa-linkedin-in social-icon" aria-label="LinkedIn" href="https://www.linkedin.com/company/mumukiorg" target="_blank"></a>
@@ -1,6 +1,6 @@
1
1
  <div class="row">
2
2
  <div class="col-md-3 col-md-offset-5">
3
- <i class="timer text-center fa fa-clock-o"></i>
3
+ <i class="timer text-center far fa-clock"></i>
4
4
  <i class="timer timer-text text-center"><%= t :time_left %></i>
5
5
  <i id="timer" class="timer timer-text text-center"></i>
6
6
  <script>
@@ -10,7 +10,7 @@
10
10
  <div class="dropdown hamburguer-breadcrumb hidden-sm hidden-md hidden-lg">
11
11
  <% if content_for? :breadcrumbs %>
12
12
  <span class="hamburguer" id="profileDropdown" data-toggle="dropdown">
13
- <i class="fa fa-bars"></i>
13
+ <i class="fas fa-bars"></i>
14
14
  </span>
15
15
  <ul class="dropdown-menu dropdown-menu-left" aria-labelledby="profileDropdown">
16
16
  <%= yield :breadcrumbs %>
@@ -21,13 +21,13 @@
21
21
  <% if current_logged_user? %>
22
22
  <% if in_gamified_context? %>
23
23
  <div class="mu-navbar-element">
24
- <i class="fa fa-star fa-fw fa-2x mu-navbar-icon mu-level-tooltip" data-toggle="tooltip" data-placement="bottom" level="<%= t(:level) %>"></i>
24
+ <i class="fas fa-star fa-fw fa-2x mu-navbar-icon mu-level-tooltip" data-toggle="tooltip" data-placement="bottom" level="<%= t(:level) %>"></i>
25
25
  <span class="mu-level-number"></span>
26
26
  </div>
27
27
  <% end %>
28
28
  <div class="dropdown mu-navbar-element notifications-box <%= 'notifications-box-empty' unless has_notifications? %>">
29
29
  <a href=<%= "#{user_notifications_path}" %>>
30
- <i class="fa fa-bell fa-fw fa-2x mu-navbar-icon"></i>
30
+ <i class="fas fa-bell fa-fw fa-2x mu-navbar-icon"></i>
31
31
  <span class="badge badge-notifications"><%= notifications_count %></span>
32
32
  </a>
33
33
  </div>
@@ -39,7 +39,7 @@
39
39
  <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="profileDropdown">
40
40
  <%= menu_bar_list_items %>
41
41
  <li class="divider"></li>
42
- <li><%= link_to(t(:sign_out), logout_path(origin: url_for), role: 'menuitem') %></li>
42
+ <%= logout_link %>
43
43
  </ul>
44
44
  </div>
45
45
  <% else %>
@@ -5,12 +5,7 @@
5
5
  value: @current_content,
6
6
  data: {lines: 17} %>
7
7
  <div class="mu-overlapped">
8
- <a class="editor-resize" title="<%= t(:fullscreen) %> (F11)">
9
- <span class="fa-stack fa-lg">
10
- <i class="fa fa-square-o fa-stack-2x"></i>
11
- <i class="fa fa-expand fa-stack-1x"></i>
12
- </span>
13
- </a>
8
+ <a class="editor-resize"> <%= expand_icon %></a>
14
9
  <a class="editor-format"><%= format_icon %></a>
15
10
  <a class="editor-reset submission-reset" data-confirm="<%= t(:confirm_reset) %>"><%= restart_icon %></a>
16
11
  </div>
@@ -5,11 +5,11 @@
5
5
  <ul class="nav nav-tabs">
6
6
  <% @files.each_with_index do |file, index| %>
7
7
  <li role="presentation" class="file-tab <%= 'active' if index == 0 %>" data-target="#editor-file-<%= index %>" tabindex='0' data-toggle='tab'>
8
- <a class="file-name" href="#"><%= file.name %></a> <i class="delete-file-button fa fa-times"></i>
8
+ <a class="file-name" href="#"><%= file.name %></a> <i class="delete-file-button fas fa-times"></i>
9
9
  </li>
10
10
  <% end %>
11
11
  </ul>
12
- <i class="add-file-button fa fa-plus"></i>
12
+ <i class="add-file-button fas fa-plus"></i>
13
13
  </span>
14
14
 
15
15
  <%= multifile_hidden_inputs %>
@@ -27,14 +27,9 @@
27
27
  </div>
28
28
 
29
29
  <div class="mu-overlapped multiple-files">
30
- <a class="editor-resize" title="<%= t(:fullscreen) %> (F11)">
31
- <span class="fa-stack fa-lg">
32
- <i class="fa fa-square-o fa-stack-2x"></i>
33
- <i class="fa fa-expand fa-stack-1x"></i>
34
- </span>
35
- </a>
30
+ <a class="editor-resize"> <%= expand_icon %></a>
31
+ <a class="editor-format"><%= format_icon %></a>
36
32
  <!--<a class="editor-reset submission-reset" data-confirm="<%= t(:confirm_reset) %>"><%= restart_icon %></a> -->
37
33
  </div>
38
-
39
34
  </div>
40
35
  </div>
@@ -4,7 +4,7 @@
4
4
  <% if should_render_problem_tabs? exercise, current_user %>
5
5
  <ul class="nav nav-tabs" role="tablist">
6
6
  <li role="presentation" class="active">
7
- <a data-target="#editor" aria-controls="editor" tabindex="0" role="tab" data-toggle="tab" class="editor-tab"><%= fa_icon 'pencil-square' %> <%= t :solution %></a>
7
+ <a data-target="#editor" aria-controls="editor" tabindex="0" role="tab" data-toggle="tab" class="editor-tab"><%= fa_icon 'pen-square' %> <%= t :solution %></a>
8
8
  </li>
9
9
  <% if exercise.extra_visible? %>
10
10
  <%= extra_code_tab %>
@@ -1,9 +1,19 @@
1
- <div class="modal fade guide-corollary mu-kids-modal-border" id="guide-done" tabindex="-1" role="dialog" aria-hidden="true">
1
+ <div class="modal fade guide-corollary <%= 'mu-kids-modal-border' if Organization.current.kids? %>" id="guide-done" tabindex="-1" role="dialog" aria-hidden="true">
2
2
  <div class="modal-dialog">
3
3
  <div class="modal-content">
4
+ <% if Organization.current.kids? %>
5
+ <button type="button" class="mu-kids-modal-button mu-close" data-dismiss="modal" aria-label="Close">
6
+ <span aria-hidden="true">
7
+ <i class="fas fa-fw fa-times fa-3x"></i>
8
+ </span>
9
+ </button>
10
+ <% end %>
4
11
  <div class="modal-header">
5
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
6
- <span aria-hidden="true">&times;</span></button>
12
+ <% if Organization.current.grown_ups? %>
13
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
14
+ <span aria-hidden="true">&times;</span>
15
+ </button>
16
+ <% end %>
7
17
  <div class="guide-corollary-title">
8
18
  <h3 class="text-left" id="gridSystemModalLabel"><%= t :guide_finished, guide: guide.name %> </h3>
9
19
  </div>