mumuki-laboratory 8.0.0 → 8.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/mumuki_laboratory/application/bridge.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/button.js +4 -4
- data/app/assets/javascripts/mumuki_laboratory/application/codemirror-builder.js +3 -3
- data/app/assets/javascripts/mumuki_laboratory/application/codemirror.js +6 -6
- data/app/assets/javascripts/mumuki_laboratory/application/console.js +2 -2
- data/app/assets/javascripts/mumuki_laboratory/application/discussions.js +7 -7
- data/app/assets/javascripts/mumuki_laboratory/application/editors.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/elipsis.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/events.js +2 -2
- data/app/assets/javascripts/mumuki_laboratory/application/exercise.js +2 -2
- data/app/assets/javascripts/mumuki_laboratory/application/gamification.js +99 -11
- data/app/assets/javascripts/mumuki_laboratory/application/inputs.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/kids.js +20 -8
- data/app/assets/javascripts/mumuki_laboratory/application/kindergarten.js +16 -57
- data/app/assets/javascripts/mumuki_laboratory/application/messages.js +6 -6
- data/app/assets/javascripts/mumuki_laboratory/application/mu-modal-carrousel.js +63 -0
- data/app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/multiple-files.js +3 -3
- data/app/assets/javascripts/mumuki_laboratory/application/multiple-scenarios.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/number-counter.js +18 -0
- data/app/assets/javascripts/mumuki_laboratory/application/pin.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/primary.js +3 -2
- data/app/assets/javascripts/mumuki_laboratory/application/progress.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/results-renderer.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/speech-bubble-renderer.js +4 -4
- data/app/assets/javascripts/mumuki_laboratory/application/submission.js +3 -3
- data/app/assets/javascripts/mumuki_laboratory/application/submissions-store.js +3 -3
- data/app/assets/javascripts/mumuki_laboratory/application/sync-mode.js +2 -2
- data/app/assets/javascripts/mumuki_laboratory/application/timer.js +1 -1
- data/app/assets/stylesheets/mumuki_laboratory/application/_layout.scss +7 -7
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids.scss +5 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids_results.scss +117 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kindergarten.scss +45 -131
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_overlap.scss +0 -4
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_terms.scss +9 -12
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_user_profile.scss +31 -3
- data/app/controllers/application_controller.rb +41 -8
- data/app/controllers/assets_controller.rb +1 -0
- data/app/controllers/book_discussions_controller.rb +1 -1
- data/app/controllers/chapters_controller.rb +1 -0
- data/app/controllers/concerns/with_user_discussion_validation.rb +6 -0
- data/app/controllers/discussions_controller.rb +4 -6
- data/app/controllers/exercises_controller.rb +1 -0
- data/app/controllers/guides_controller.rb +2 -0
- data/app/controllers/invitations_controller.rb +1 -0
- data/app/controllers/lessons_controller.rb +1 -0
- data/app/controllers/login_controller.rb +1 -0
- data/app/controllers/users_controller.rb +9 -1
- data/app/helpers/assignment_result_helper.rb +1 -1
- data/app/helpers/assistance_box_helper.rb +7 -5
- data/app/helpers/discussions_helper.rb +4 -4
- data/app/helpers/editor_tabs_helper.rb +1 -1
- data/app/helpers/gamification_helper.rb +5 -0
- data/app/helpers/icons_helper.rb +1 -1
- data/app/helpers/links_helper.rb +3 -3
- data/app/helpers/menu_bar_helper.rb +5 -1
- data/app/helpers/overlapped_buttons_helper.rb +6 -2
- data/app/views/book/show.html.erb +2 -2
- data/app/views/discussions/_message.html.erb +2 -2
- data/app/views/exercise_solutions/_assistant_rules_box.html.erb +13 -0
- data/app/views/exercise_solutions/_contextualization_results_container.html.erb +9 -0
- data/app/views/exercise_solutions/_kids_level_up.html.erb +11 -0
- data/app/views/exercise_solutions/_results.html.erb +19 -19
- data/app/views/exercise_solutions/_results_title.html.erb +5 -0
- data/app/views/exercises/_exercise_assignment.html.erb +1 -1
- data/app/views/exercises/_read_only.html.erb +1 -1
- data/app/views/exercises/show.html.erb +5 -2
- data/app/views/layouts/_copyright.html.erb +1 -1
- data/app/views/layouts/_guide.html.erb +8 -6
- data/app/views/layouts/_kids.html.erb +4 -4
- data/app/views/layouts/_kindergarten.html.erb +6 -6
- data/app/views/layouts/_organizations_listing.html.erb +8 -12
- data/app/views/layouts/_social_media.html.erb +4 -4
- data/app/views/layouts/_timer.html.erb +1 -1
- data/app/views/layouts/application.html.erb +31 -23
- data/app/views/layouts/embedded.html.erb +14 -11
- data/app/views/layouts/exercise_inputs/editors/_code.html.erb +1 -6
- data/app/views/layouts/exercise_inputs/editors/_multiple_files.html.erb +4 -9
- data/app/views/layouts/exercise_inputs/forms/_problem_form.html.erb +1 -1
- data/app/views/layouts/modals/_guide_corollary.html.erb +13 -3
- data/app/views/layouts/modals/_kids_context.html.erb +1 -1
- data/app/views/layouts/modals/_kids_results.html.erb +16 -6
- data/app/views/layouts/modals/_kindergarten_context.html.erb +15 -15
- data/app/views/layouts/modals/_kindergarten_results.html.erb +20 -7
- data/app/views/layouts/modals/_kindergarten_results_aborted.html.erb +5 -5
- data/app/views/layouts/modals/_level_up.html.erb +27 -0
- data/app/views/users/_edit_user_form.html.erb +2 -2
- data/app/views/users/_user_form.html.erb +12 -2
- data/app/views/users/terms.html.erb +12 -0
- data/config/routes.rb +8 -8
- data/lib/mumuki/laboratory.rb +18 -5
- data/lib/mumuki/laboratory/controllers.rb +2 -0
- data/lib/mumuki/laboratory/controllers/action_redirector.rb +21 -0
- data/lib/mumuki/laboratory/controllers/immersive_navigation.rb +7 -0
- data/lib/mumuki/laboratory/controllers/results_rendering.rb +1 -0
- data/lib/mumuki/laboratory/engine.rb +1 -1
- data/lib/mumuki/laboratory/events/events.rb +0 -9
- data/lib/mumuki/laboratory/locales/en.yml +8 -1
- data/lib/mumuki/laboratory/locales/es-CL.yml +9 -2
- data/lib/mumuki/laboratory/locales/es.yml +11 -3
- data/lib/mumuki/laboratory/locales/pt.yml +9 -2
- data/lib/mumuki/laboratory/version.rb +1 -1
- data/spec/capybara_helper.rb +5 -1
- data/spec/controllers/discussions_controller_spec.rb +19 -0
- data/spec/controllers/exercise_solutions_controller_spec.rb +1 -1
- data/spec/dummy/db/schema.rb +2 -1
- data/spec/features/immersive_redirection_spec.rb +181 -0
- data/spec/features/profile_flow_spec.rb +35 -3
- data/spec/features/terms_flow_spec.rb +157 -0
- data/spec/helpers/icons_helper_spec.rb +3 -3
- data/spec/helpers/test_results_rendering_spec.rb +8 -8
- data/spec/helpers/with_navigation_spec.rb +14 -14
- data/spec/javascripts/gamification-spec.js +2 -2
- metadata +112 -98
- data/app/helpers/organization_list_helper.rb +0 -5
- data/spec/dummy/config/database.travis.yml +0 -4
- data/spec/features/choose_organization_spec.rb +0 -74
@@ -1,2 +1,2 @@
|
|
1
|
-
©
|
1
|
+
© 2015-<%= DateTime.now.year %>
|
2
2
|
<a href="http://mumuki.org/" class="mu-org-link"><span class="da da-mumuki-circle"></span> Mumuki</a>
|
@@ -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="
|
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="
|
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
|
16
|
-
<i class="mu-kids-next-speech
|
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>
|
@@ -4,11 +4,11 @@
|
|
4
4
|
<div class="mu-kindergarten-character-speech-bubble">
|
5
5
|
<span class="mu-kindergarten-exercise-description"><%= exercise.description_task %></span>
|
6
6
|
<div class="mu-kindergarten-buttons">
|
7
|
-
<button class="mu-kindergarten-show-context" onclick="mumuki.kids.context.
|
8
|
-
<img class="mu-kindergarten-button-image" src="https://mumuki.io/static/show-context.svg" alt="">
|
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="" 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="
|
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,14 +1,10 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
<div class="row">
|
6
|
-
<div class="col-md-6 organization-row">
|
7
|
-
<%= image_tag(org.banner_url, height: 50, class: 'pull-left') %>
|
8
|
-
</div>
|
9
|
-
<div class="col-md-6 organization-row">
|
10
|
-
<%= link_to(t(:go_to, organization: org.name), org.url, class: 'btn btn-success pull-right') %>
|
11
|
-
</div>
|
1
|
+
<% current_immersive_organizations.each do |organization| %>
|
2
|
+
<div class="row">
|
3
|
+
<div class="col-md-6 organization-row">
|
4
|
+
<%= image_tag(organization.banner_url, height: 50, class: 'pull-left') %>
|
12
5
|
</div>
|
13
|
-
|
6
|
+
<div class="col-md-6 organization-row">
|
7
|
+
<%= link_to(t(:go_to, organization: organization.name), current_immersive_path(organization), class: 'btn btn-success pull-right') %>
|
8
|
+
</div>
|
9
|
+
</div>
|
14
10
|
<% end %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<a class="
|
2
|
-
<a class="
|
3
|
-
<a class="
|
4
|
-
<a class="
|
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
|
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>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<%= content_for :navbar do %>
|
2
|
+
<%= hidden_field_tag("mu-current-exp", UserStats.exp_for(@current_user)) if in_gamified_context? %>
|
2
3
|
<div class="<%= exercise_container_type %>">
|
3
4
|
<nav class="mu-navbar">
|
4
5
|
<div class="mu-navbar-breadcrumb hidden-xs">
|
@@ -9,7 +10,7 @@
|
|
9
10
|
<div class="dropdown hamburguer-breadcrumb hidden-sm hidden-md hidden-lg">
|
10
11
|
<% if content_for? :breadcrumbs %>
|
11
12
|
<span class="hamburguer" id="profileDropdown" data-toggle="dropdown">
|
12
|
-
<i class="
|
13
|
+
<i class="fas fa-bars"></i>
|
13
14
|
</span>
|
14
15
|
<ul class="dropdown-menu dropdown-menu-left" aria-labelledby="profileDropdown">
|
15
16
|
<%= yield :breadcrumbs %>
|
@@ -18,15 +19,19 @@
|
|
18
19
|
</div>
|
19
20
|
<div class="mu-navbar-avatar">
|
20
21
|
<% if current_logged_user? %>
|
21
|
-
|
22
|
-
<
|
23
|
-
<
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
22
|
+
<% if in_gamified_context? %>
|
23
|
+
<div class="mu-navbar-element">
|
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
|
+
<span class="mu-level-number"></span>
|
26
|
+
</div>
|
27
|
+
<% end %>
|
28
|
+
<div class="dropdown mu-navbar-element notifications-box <%= 'notifications-box-empty' unless has_notifications? %>">
|
29
|
+
<a href=<%= "#{user_notifications_path}" %>>
|
30
|
+
<i class="fas fa-bell fa-fw fa-2x mu-navbar-icon"></i>
|
31
|
+
<span class="badge badge-notifications"><%= notifications_count %></span>
|
32
|
+
</a>
|
28
33
|
</div>
|
29
|
-
<div class="dropdown">
|
34
|
+
<div class="dropdown mu-navbar-element">
|
30
35
|
<div id="profileDropdown" class="profile-dropdown" data-toggle="dropdown" aria-label="<%= t(:user) %>" role="menu" tabindex="0">
|
31
36
|
<%= profile_picture_for current_user %>
|
32
37
|
<span class="caret"></span>
|
@@ -34,7 +39,7 @@
|
|
34
39
|
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="profileDropdown">
|
35
40
|
<%= menu_bar_list_items %>
|
36
41
|
<li class="divider"></li>
|
37
|
-
|
42
|
+
<%= logout_link %>
|
38
43
|
</ul>
|
39
44
|
</div>
|
40
45
|
<% else %>
|
@@ -47,32 +52,35 @@
|
|
47
52
|
|
48
53
|
<% content_for :footer do %>
|
49
54
|
<footer class="footer">
|
50
|
-
<div class="<%= exercise_container_type %>">
|
51
|
-
<
|
52
|
-
|
53
|
-
<div class="row">
|
54
|
-
<div class="col-md-12">
|
55
|
+
<div class="mu-footer <%= exercise_container_type %>">
|
56
|
+
<div class="mu-footer-row">
|
57
|
+
<div class="mu-footer-authoring">
|
55
58
|
<%= yield :authoring %>
|
56
59
|
</div>
|
57
60
|
</div>
|
58
61
|
|
59
|
-
<div
|
60
|
-
<div class="
|
61
|
-
|
62
|
-
<%= render partial: 'layouts/copyright' %>
|
63
|
-
</p>
|
62
|
+
<div class="mu-footer-row">
|
63
|
+
<div class="mu-footer-copyright">
|
64
|
+
<%= render partial: 'layouts/copyright' %>
|
64
65
|
</div>
|
65
66
|
|
66
|
-
<div class="
|
67
|
-
|
67
|
+
<div class="mu-footer-terms">
|
68
|
+
<div><%= link_to_profile_terms %></div>
|
69
|
+
<% if current_user&.can_discuss_here? %>
|
70
|
+
<div><%= link_to_forum_terms %></div>
|
71
|
+
<% end %>
|
68
72
|
</div>
|
69
73
|
|
70
|
-
|
74
|
+
<%= login_form.footer_html %>
|
75
|
+
|
76
|
+
<div id="footer-social" class="mu-footer-social" lang="en">
|
71
77
|
<%= render partial: 'layouts/social_media' %>
|
72
78
|
</div>
|
73
79
|
</div>
|
80
|
+
|
74
81
|
</div>
|
75
82
|
</footer>
|
76
83
|
<% end %>
|
77
84
|
|
78
85
|
<%= render partial: 'layouts/main' %>
|
86
|
+
|
@@ -1,22 +1,25 @@
|
|
1
1
|
<% content_for :footer do %>
|
2
2
|
<footer class="footer">
|
3
|
-
<div class="<%= exercise_container_type %>">
|
4
|
-
<
|
5
|
-
|
6
|
-
<div class="row">
|
7
|
-
<div class="col-md-12">
|
3
|
+
<div class="mu-footer <%= exercise_container_type %>">
|
4
|
+
<div class="mu-footer-row">
|
5
|
+
<div class="mu-footer-authoring">
|
8
6
|
<%= yield :authoring %>
|
9
7
|
</div>
|
10
8
|
</div>
|
11
9
|
|
12
|
-
<div
|
13
|
-
<div class="
|
14
|
-
|
15
|
-
|
16
|
-
|
10
|
+
<div class="mu-footer-row">
|
11
|
+
<div class="mu-footer-copyright">
|
12
|
+
<%= render partial: 'layouts/copyright' %>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="mu-footer-terms">
|
16
|
+
<div><%= link_to_profile_terms %></div>
|
17
|
+
<% if current_user&.can_discuss_here? %>
|
18
|
+
<div><%= link_to_forum_terms %></div>
|
19
|
+
<% end %>
|
17
20
|
</div>
|
18
21
|
|
19
|
-
<div id="footer-social" class="
|
22
|
+
<div id="footer-social" class="mu-footer-social" lang="en">
|
20
23
|
<%= render partial: 'layouts/social_media' %>
|
21
24
|
</div>
|
22
25
|
</div>
|
@@ -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"
|
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
|
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
|
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"
|
31
|
-
|
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 '
|
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" 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
|
-
|
6
|
-
<
|
12
|
+
<% if Organization.current.grown_ups? %>
|
13
|
+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
14
|
+
<span aria-hidden="true">×</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>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="modal fade mu-kids-context" id="mu-kids-context" tabindex="-1" role="dialog" aria-hidden="true">
|
1
|
+
<div class="modal fade mu-kids-context mu-kids-modal-border" id="mu-kids-context" tabindex="-1" role="dialog" aria-hidden="true">
|
2
2
|
<div class="modal-dialog">
|
3
3
|
<div class="modal-content">
|
4
4
|
<div class="modal-header">
|
@@ -1,17 +1,27 @@
|
|
1
|
-
<div class="modal fade mu-kids-results" id="kids-results" tabindex="-1" role="dialog" aria-hidden="true">
|
1
|
+
<div class="modal fade mu-kids-results mu-kids-modal-border" id="kids-results" tabindex="-1" role="dialog" aria-hidden="true">
|
2
2
|
<div class="modal-dialog">
|
3
|
-
<div class="modal-content">
|
4
|
-
<
|
3
|
+
<div class="modal-content success">
|
4
|
+
<button type="button" class="mu-kids-modal-button mu-previous hidden" onclick="mumuki.kids.resultsCarrousel.prevSlide()" aria-label="Previous">
|
5
|
+
<span aria-hidden="true">
|
6
|
+
<i class="fas fa-fw fa-arrow-left fa-3x"></i>
|
7
|
+
</span>
|
8
|
+
</button>
|
9
|
+
<button type="button" class="mu-kids-modal-button mu-next" onclick="mumuki.kids.resultsCarrousel.nextSlide()" aria-label="Next">
|
10
|
+
<span aria-hidden="true">
|
11
|
+
<i class="fas fa-fw fa-arrow-right fa-3x"></i>
|
12
|
+
</span>
|
13
|
+
</button>
|
14
|
+
<div class="modal-header text-center">
|
5
15
|
</div>
|
6
16
|
<div class="modal-body">
|
7
17
|
<div class="container-fluid">
|
8
18
|
<div class="row">
|
9
19
|
<div class="col-md-12">
|
10
|
-
<div class="
|
11
|
-
<div class="
|
20
|
+
<div class="mu-kids-results-carrousel">
|
21
|
+
<div class="active submission-results">
|
12
22
|
<% if current_user? && @assignment.solved? %>
|
13
23
|
<%= render partial: 'exercise_solutions/kids_results',
|
14
|
-
|
24
|
+
locals: {assignment: @assignment, guide_finished_by_solution: false} %>
|
15
25
|
<% end %>
|
16
26
|
</div>
|
17
27
|
</div>
|
@@ -1,22 +1,22 @@
|
|
1
|
-
<div class="modal fade mu-
|
1
|
+
<div class="modal fade mu-kids-modal-border" id="mu-kids-context" tabindex="-1" role="dialog" aria-hidden="true">
|
2
2
|
<div class="modal-dialog">
|
3
|
-
<div class="modal-content">
|
4
|
-
<button type="button" class="mu-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
<div class="modal-content kindergarten">
|
4
|
+
<button type="button" class="mu-kids-modal-button mu-close" data-waiting="" data-dismiss="modal" aria-label="Close">
|
5
|
+
<span aria-hidden="true">
|
6
|
+
<i class="fas fa-fw fa-times fa-3x"></i>
|
7
|
+
</span>
|
8
8
|
</button>
|
9
|
-
<button type="button" class="mu-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
<button type="button" class="mu-kids-modal-button mu-previous hidden" onclick="mumuki.kids.context.prevSlide()" aria-label="Previous">
|
10
|
+
<span aria-hidden="true">
|
11
|
+
<i class="fas fa-fw fa-arrow-left fa-3x"></i>
|
12
|
+
</span>
|
13
13
|
</button>
|
14
|
-
<button type="button" class="mu-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
<button type="button" class="mu-kids-modal-button mu-next" onclick="mumuki.kids.context.nextSlide()" aria-label="Next">
|
15
|
+
<span aria-hidden="true">
|
16
|
+
<i class="fas fa-fw fa-arrow-right fa-3x"></i>
|
17
|
+
</span>
|
18
18
|
</button>
|
19
|
-
<div class="modal-body">
|
19
|
+
<div class="modal-body mu-kids-context-body">
|
20
20
|
<div class="container-fluid">
|
21
21
|
<div class="row">
|
22
22
|
<div class="col-md-12">
|
@@ -1,17 +1,30 @@
|
|
1
|
-
<div class="modal fade mu-kids-results mu-
|
1
|
+
<div class="modal fade mu-kids-results mu-kids-modal-border" id="kids-results" tabindex="-1" role="dialog" aria-hidden="true">
|
2
2
|
<div class="modal-dialog">
|
3
|
-
<div class="modal-content">
|
4
|
-
<button type="button" class="mu-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
<div class="modal-content kindergarten">
|
4
|
+
<button type="button" class="mu-kids-modal-button mu-close" data-waiting="" data-dismiss="modal" aria-label="Close">
|
5
|
+
<span aria-hidden="true">
|
6
|
+
<i class="fas fa-fw fa-times fa-3x"></i>
|
7
|
+
</span>
|
8
|
+
</button>
|
9
|
+
<button type="button" class="mu-kids-modal-button mu-previous hidden" onclick="mumuki.kids.resultsCarrousel.prevSlide()" aria-label="Previous">
|
10
|
+
<span aria-hidden="true">
|
11
|
+
<i class="fas fa-fw fa-arrow-left fa-3x"></i>
|
12
|
+
</span>
|
13
|
+
</button>
|
14
|
+
<button type="button" class="mu-kids-modal-button mu-next" onclick="mumuki.kids.resultsCarrousel.nextSlide()" aria-label="Next">
|
15
|
+
<span aria-hidden="true">
|
16
|
+
<i class="fas fa-fw fa-arrow-right fa-3x"></i>
|
17
|
+
</span>
|
8
18
|
</button>
|
9
19
|
<div class="modal-header">
|
10
20
|
</div>
|
11
21
|
<div class="modal-body">
|
12
22
|
<div class="container-fluid">
|
13
23
|
<div class="row">
|
14
|
-
<div class="col-md-12
|
24
|
+
<div class="col-md-12">
|
25
|
+
<div class="mu-kids-results-carrousel">
|
26
|
+
<div class="active submission-results kindergarten"></div>
|
27
|
+
</div>
|
15
28
|
</div>
|
16
29
|
</div>
|
17
30
|
</div>
|