mumuki-laboratory 8.1.3 → 8.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -8
- data/app/assets/javascripts/mumuki_laboratory/application/bridge.js +2 -1
- data/app/assets/javascripts/mumuki_laboratory/application/button.js +2 -4
- data/app/assets/javascripts/mumuki_laboratory/application/codemirror-builder.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/codemirror.js +2 -2
- data/app/assets/javascripts/mumuki_laboratory/application/i18n.js +73 -0
- data/app/assets/javascripts/mumuki_laboratory/application/kids.js +22 -1
- data/app/assets/javascripts/mumuki_laboratory/application/kindergarten.js +6 -1
- data/app/assets/javascripts/mumuki_laboratory/application/primary.js +5 -3
- data/app/assets/javascripts/mumuki_laboratory/application/results-renderer.js +28 -1
- data/app/assets/javascripts/mumuki_laboratory/application/submission.js +72 -48
- data/app/assets/stylesheets/mumuki_laboratory/application.scss +1 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/_codemirror-themes.scss +1 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/codemirror-themes/_mu-light.scss +3 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids.scss +4 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids_results.scss +1 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_overlap.scss +0 -4
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_terms.scss +4 -0
- data/app/controllers/chapters_controller.rb +9 -5
- data/app/controllers/guide_container_controller.rb +2 -7
- data/app/helpers/assignment_result_helper.rb +1 -1
- data/app/helpers/contextualization_result_helper.rb +0 -8
- data/app/helpers/discussions_helper.rb +12 -4
- data/app/helpers/editor_tabs_helper.rb +1 -1
- data/app/helpers/icons_helper.rb +1 -1
- data/app/helpers/links_helper.rb +1 -1
- data/app/helpers/menu_bar_helper.rb +9 -1
- data/app/helpers/overlapped_buttons_helper.rb +13 -5
- data/app/views/book/show.html.erb +1 -1
- data/app/views/book_discussions/index.html.erb +3 -1
- data/app/views/chapters/show.html.erb +21 -9
- data/app/views/complements/show.html.erb +1 -1
- data/app/views/discussions/_message.html.erb +2 -2
- data/app/views/discussions/index.html.erb +11 -4
- data/app/views/exams/show.html.erb +1 -1
- data/app/views/exercise_solutions/_kids_level_up.html.erb +1 -1
- 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 +2 -2
- data/app/views/layouts/_discussions.html.erb +0 -4
- data/app/views/layouts/_guide.html.erb +9 -36
- data/app/views/layouts/_guide_container.html.erb +28 -0
- data/app/views/layouts/_guide_title_icons.html.erb +9 -0
- data/app/views/layouts/_kids.html.erb +4 -4
- data/app/views/layouts/_kindergarten.html.erb +5 -5
- 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 +7 -5
- 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/exercise_inputs/layouts/_input_kindergarten.html.erb +1 -1
- data/app/views/layouts/modals/_guide_corollary.html.erb +13 -3
- data/app/views/layouts/modals/_kids_results.html.erb +2 -2
- data/app/views/layouts/modals/_kindergarten_context.html.erb +3 -3
- data/app/views/layouts/modals/_kindergarten_results.html.erb +3 -3
- data/app/views/layouts/modals/_kindergarten_results_aborted.html.erb +2 -2
- data/app/views/layouts/modals/_level_up.html.erb +1 -1
- data/app/views/lessons/show.html.erb +1 -1
- data/app/views/users/_edit_user_form.html.erb +1 -1
- data/app/views/users/_term.html.erb +1 -1
- data/app/views/users/_user_form.html.erb +1 -1
- data/lib/mumuki/laboratory/controllers/results_rendering.rb +2 -1
- data/lib/mumuki/laboratory/engine.rb +1 -1
- data/lib/mumuki/laboratory/locales/en.yml +6 -8
- data/lib/mumuki/laboratory/locales/es-CL.yml +6 -3
- data/lib/mumuki/laboratory/locales/es.yml +9 -10
- data/lib/mumuki/laboratory/locales/pt.yml +6 -8
- data/lib/mumuki/laboratory/version.rb +1 -1
- data/spec/controllers/exercise_solutions_controller_spec.rb +3 -2
- data/spec/dummy/db/schema.rb +50 -1
- data/spec/dummy/public/character/animations.json +1 -0
- data/{public → spec/dummy/public}/character/kibi/context.svg +0 -0
- data/{public → spec/dummy/public}/character/kibi/failure.svg +0 -0
- data/{public → spec/dummy/public}/character/kibi/jump.svg +0 -0
- data/spec/dummy/public/character/kibi/passed_with_warnings.svg +4 -0
- data/{public → spec/dummy/public}/character/kibi/success2_l.svg +0 -0
- data/{public → spec/dummy/public}/character/kibi/success_l.svg +0 -0
- data/{public → spec/dummy/public}/character/magnifying_glass/apparition.svg +0 -0
- data/{public → spec/dummy/public}/character/magnifying_glass/loop.svg +0 -0
- data/spec/features/chapters_flow_spec.rb +112 -0
- data/spec/features/login_flow_spec.rb +1 -1
- data/spec/features/terms_flow_spec.rb +2 -0
- data/spec/features/topic_flow_spec.rb +0 -1
- 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/bridge-spec.js +2 -2
- data/spec/javascripts/csrf-token-spec.js +2 -2
- data/spec/javascripts/editors-spec.js +7 -9
- data/spec/javascripts/elipsis-spec.js +4 -4
- data/spec/javascripts/events-spec.js +7 -7
- data/spec/javascripts/exercise-spec.js +7 -8
- data/spec/javascripts/gamification-spec.js +2 -2
- data/spec/javascripts/global-spec.js +3 -3
- data/spec/javascripts/i18n-spec.js +82 -0
- data/spec/javascripts/kids-button-spec.js +34 -0
- data/spec/javascripts/results-renderers-spec.js +5 -5
- data/spec/javascripts/speech-bubble-renderer-spec.js +2 -3
- data/spec/javascripts/submissions-store-spec.js +14 -14
- data/spec/javascripts/sync-mode-spec.js +3 -3
- data/spec/javascripts/timeout-spec.js +2 -2
- data/spec/javascripts/timer-spec.js +2 -2
- metadata +140 -117
- data/spec/dummy/config/database.travis.yml +0 -4
- data/spec/features/chapter_spec.rb +0 -70
@@ -0,0 +1 @@
|
|
1
|
+
@import "codemirror-themes/mu-light";
|
@@ -10,6 +10,10 @@ $kids-speech-border: 1px solid $kids-speech-border-color;
|
|
10
10
|
|
11
11
|
$kids-speech-tabs-width: 40px;
|
12
12
|
|
13
|
+
.mu-kids-exercise-workspace.mu-submitless-exercise .mu-kids-submit-button {
|
14
|
+
display: none;
|
15
|
+
}
|
16
|
+
|
13
17
|
.mu-kids-exercise {
|
14
18
|
height: $kids-height;
|
15
19
|
min-height: $kids-height;
|
@@ -131,6 +131,7 @@ $capital-animation-width: 135px;
|
|
131
131
|
'success': $mu-color-success,
|
132
132
|
'warning': $mu-color-warning,
|
133
133
|
'passed': $mu-color-success,
|
134
|
+
'passed_with_warnings': $mu-color-warning,
|
134
135
|
'passed-with-warnings': $mu-color-warning,
|
135
136
|
'failed': $mu-color-danger,
|
136
137
|
'errored': $mu-color-broken,
|
@@ -15,11 +15,15 @@
|
|
15
15
|
}
|
16
16
|
.terms-card-header {
|
17
17
|
cursor: pointer;
|
18
|
+
outline: 0;
|
18
19
|
font-weight: bold;
|
19
20
|
padding: .75rem 1.25rem;
|
20
21
|
margin-bottom: 0;
|
21
22
|
background-color: rgba(0,0,0,.03);
|
22
23
|
border-bottom: 1px solid rgba(0,0,0,.125);
|
24
|
+
&::-webkit-details-marker {
|
25
|
+
display:none;
|
26
|
+
}
|
23
27
|
}
|
24
28
|
&:first-child .terms-card-header{
|
25
29
|
border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0;
|
@@ -1,13 +1,17 @@
|
|
1
1
|
require 'addressable/uri'
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
# It acts as a guide container in monolesson contexts
|
4
|
+
class ChaptersController < GuideContainerController
|
5
5
|
include Mumuki::Laboratory::Controllers::ImmersiveNavigation
|
6
6
|
|
7
|
-
def show
|
8
|
-
end
|
9
|
-
|
10
7
|
def subject
|
11
8
|
@chapter ||= Chapter.find_by(id: params[:id])
|
12
9
|
end
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def set_guide
|
14
|
+
@monolesson = subject.monolesson
|
15
|
+
@guide = @monolesson&.guide
|
16
|
+
end
|
13
17
|
end
|
@@ -4,18 +4,13 @@ class GuideContainerController < ApplicationController
|
|
4
4
|
before_action :set_guide
|
5
5
|
|
6
6
|
def show
|
7
|
-
|
8
|
-
|
9
|
-
@next_exercise = subject.next_exercise(current_user)
|
10
|
-
else
|
11
|
-
@next_exercise = subject.first_exercise
|
12
|
-
end
|
7
|
+
@stats = subject.stats_for(current_user)
|
8
|
+
@next_exercise = subject.next_exercise(current_user)
|
13
9
|
end
|
14
10
|
|
15
11
|
private
|
16
12
|
|
17
13
|
def set_guide
|
18
|
-
raise Mumuki::Domain::NotFoundError if subject.nil?
|
19
14
|
@guide = subject.guide
|
20
15
|
end
|
21
16
|
end
|
@@ -15,7 +15,7 @@ module AssignmentResultHelper
|
|
15
15
|
|
16
16
|
def render_community_link
|
17
17
|
if community_link?
|
18
|
-
link_to fa_icon(
|
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
|
|
@@ -16,14 +16,6 @@ module ContextualizationResultHelper
|
|
16
16
|
:hidden_done
|
17
17
|
elsif contextualization.exercise.choice?
|
18
18
|
contextualization.solved? ? :correct_answer : :wrong_answer
|
19
|
-
else
|
20
|
-
contextualization_status_translation_key contextualization
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
def contextualization_status_translation_key(contextualization)
|
25
|
-
if contextualization.exercise.input_kindergarten?
|
26
|
-
"kindergarten_#{contextualization.submission_status}"
|
27
19
|
else
|
28
20
|
contextualization.submission_status
|
29
21
|
end
|
@@ -52,6 +52,14 @@ module DiscussionsHelper
|
|
52
52
|
profile_picture_for(user, class: image_class)
|
53
53
|
end
|
54
54
|
|
55
|
+
def forum_terms_link
|
56
|
+
%Q{
|
57
|
+
<span>
|
58
|
+
#{ t(:forum_terms_link, terms_link: link_to_forum_terms).html_safe }
|
59
|
+
</span>
|
60
|
+
}.html_safe
|
61
|
+
end
|
62
|
+
|
55
63
|
def discussions_link_with_teaser(item)
|
56
64
|
%Q{
|
57
65
|
<div>
|
@@ -67,8 +75,8 @@ module DiscussionsHelper
|
|
67
75
|
def discussion_messages_icon(discussion)
|
68
76
|
%Q{
|
69
77
|
<span class="discussion-icon fa-stack fa-xs">
|
70
|
-
<i class="
|
71
|
-
<i class="
|
78
|
+
<i class="far fa-comment fa-stack-2x"></i>
|
79
|
+
<i class="fas fa-stack-1x">#{discussion.validated_messages_count}</i>
|
72
80
|
</span>
|
73
81
|
}.html_safe
|
74
82
|
end
|
@@ -77,8 +85,8 @@ module DiscussionsHelper
|
|
77
85
|
if discussion.upvotes_count > 0
|
78
86
|
%Q{
|
79
87
|
<span class="discussion-icon fa-stack fa-xs">
|
80
|
-
<i class="
|
81
|
-
<i class="
|
88
|
+
<i class="far fa-star fa-stack-2x"></i>
|
89
|
+
<i class="fas fa-stack-1x">#{discussion.upvotes_count}</i>
|
82
90
|
</span>
|
83
91
|
}.html_safe
|
84
92
|
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
|
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
|
data/app/helpers/icons_helper.rb
CHANGED
data/app/helpers/links_helper.rb
CHANGED
@@ -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(
|
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
|
-
|
21
|
+
menu_item('user', :profile, user_path)
|
22
22
|
end
|
23
23
|
|
24
24
|
def link_to_classroom
|
@@ -35,7 +35,15 @@ 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
|
45
|
+
|
46
|
+
def any_menu_bar_links?
|
47
|
+
menu_bar_links.any?
|
48
|
+
end
|
41
49
|
end
|
@@ -1,6 +1,10 @@
|
|
1
1
|
module OverlappedButtonsHelper
|
2
|
-
def
|
3
|
-
overlapped_button_icon :
|
2
|
+
def expand_icon
|
3
|
+
overlapped_button_icon :fullscreen, :expand
|
4
|
+
end
|
5
|
+
|
6
|
+
def restart_icon(data_placement='left')
|
7
|
+
overlapped_button_icon :restart, :undo, data_placement
|
4
8
|
end
|
5
9
|
|
6
10
|
def format_icon
|
@@ -8,10 +12,14 @@ module OverlappedButtonsHelper
|
|
8
12
|
end
|
9
13
|
|
10
14
|
def restart_guide_link(guide)
|
11
|
-
link_to restart_icon
|
15
|
+
link_to restart_icon('top'),
|
16
|
+
guide_progress_path(guide),
|
17
|
+
class: 'mu-content-toolbar-item mu-restart-guide',
|
18
|
+
data: {confirm: t(:confirm_restart)},
|
19
|
+
method: :delete
|
12
20
|
end
|
13
21
|
|
14
|
-
def overlapped_button_icon(key, icon)
|
15
|
-
fa_icon(icon, title: t(key), class: 'fa-fw', role: 'button', 'aria-label': t(key))
|
22
|
+
def overlapped_button_icon(key, icon, data_placement='left')
|
23
|
+
fa_icon(icon, title: t(key), class: 'fa-fw', role: 'button', 'aria-label': t(key), 'data-placement': data_placement)
|
16
24
|
end
|
17
25
|
end
|
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
<div class="row">
|
12
12
|
<div class="mu-inline-block-left">
|
13
|
-
<h1><%=
|
13
|
+
<h1><%= t :forum %></h1>
|
14
14
|
</div>
|
15
15
|
</div>
|
16
16
|
|
@@ -21,3 +21,5 @@
|
|
21
21
|
<%= render partial: 'layouts/discussions' %>
|
22
22
|
<% end %>
|
23
23
|
</div>
|
24
|
+
|
25
|
+
<%= forum_terms_link %>
|
@@ -3,9 +3,14 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<div class="chapter-description">
|
6
|
-
<h1>
|
7
|
-
<span class="hidden-xs"><%= t(:chapter_number, number: @chapter.number) %>: </span>
|
8
|
-
<span><%= @chapter.name %></span>
|
6
|
+
<h1 class="pull-left">
|
7
|
+
<span class="hidden-xs pull-left"><%= t(:chapter_number, number: @chapter.number) %>: </span>
|
8
|
+
<span class="pull-left"><%= @chapter.name %></span>
|
9
|
+
<% if @chapter.monolesson? %>
|
10
|
+
<div class="mu-monolesson pull-left">
|
11
|
+
<%= render partial: 'layouts/guide_title_icons' %>
|
12
|
+
</div>
|
13
|
+
<% end %>
|
9
14
|
</h1>
|
10
15
|
|
11
16
|
<%= @chapter.description_html %>
|
@@ -13,14 +18,21 @@
|
|
13
18
|
</div>
|
14
19
|
|
15
20
|
<% if @chapter.lessons.present? %>
|
16
|
-
|
17
|
-
|
21
|
+
<% if @chapter.monolesson? %>
|
22
|
+
<div class="mu-monolesson">
|
23
|
+
<%= render partial: 'layouts/guide', locals: { subject: @monolesson } %>
|
24
|
+
</div>
|
25
|
+
<% else %>
|
26
|
+
<div>
|
27
|
+
<h3><%= t(:lessons) %></h3>
|
18
28
|
|
19
|
-
|
20
|
-
|
21
|
-
|
29
|
+
<% @chapter.lessons.each do |lesson| %>
|
30
|
+
<h4><%= lesson.number %>. <%= link_to_path_element lesson, mode: :plain %></h4>
|
31
|
+
<%= render partial: 'layouts/progress_listing', locals: { exercises: lesson.exercises } %>
|
32
|
+
<% end %>
|
33
|
+
</div>
|
22
34
|
<% end %>
|
23
|
-
|
35
|
+
|
24
36
|
<% end %>
|
25
37
|
|
26
38
|
<% if @chapter.appendix.present? %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render partial: "layouts/
|
1
|
+
<%= render partial: "layouts/guide_container", locals: { subject: @complement }%>
|
@@ -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
|
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-
|
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">
|
@@ -2,17 +2,22 @@
|
|
2
2
|
<%= breadcrumbs(@debatable, t(:discussions)) %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
+
<div class="row">
|
6
|
+
<div class="mu-inline-block-left">
|
7
|
+
<h1><%= t :forum %></h1>
|
8
|
+
</div>
|
9
|
+
</div>
|
5
10
|
<div class="row">
|
6
11
|
<% if @debatable.respond_to? :language %>
|
7
12
|
<div class="mu-inline-block-right hidden-xs">
|
8
|
-
<
|
13
|
+
<h3><%= language_icon @debatable.language %></h3>
|
9
14
|
</div>
|
10
15
|
<% end %>
|
11
16
|
<div class="mu-inline-block-left">
|
12
|
-
<
|
17
|
+
<h3>
|
13
18
|
<span class="hidden-xs"><%= t("#{@debatable_class.downcase}_number", number: @debatable.number) %>: </span>
|
14
19
|
<span><%= @debatable.name %></span>
|
15
|
-
</
|
20
|
+
</h3>
|
16
21
|
</div>
|
17
22
|
</div>
|
18
23
|
|
@@ -23,7 +28,9 @@
|
|
23
28
|
<%= new_discussion_link(:no_useful_result, :ask_a_question) %>
|
24
29
|
<% end %>
|
25
30
|
|
26
|
-
|
31
|
+
<%= content_for :no_container do %>
|
27
32
|
<% end if current_user? %>
|
28
33
|
|
34
|
+
<%= forum_terms_link %>
|
35
|
+
|
29
36
|
|
@@ -1 +1 @@
|
|
1
|
-
<%= render partial: "layouts/
|
1
|
+
<%= render partial: "layouts/guide_container", locals: { subject: @exam }%>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<%= t :level_up %>
|
4
4
|
</h3>
|
5
5
|
<div class="text-center mu-level">
|
6
|
-
<i class="
|
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
|
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-
|
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 %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
<%= render partial: 'layouts/authoring', locals: {guide: @guide} %>
|
8
8
|
|
9
|
-
<% @stats = @exercise.
|
9
|
+
<% @stats = @exercise.stats_for(current_user) %>
|
10
10
|
|
11
11
|
<% if @exercise.navigable_parent.timed? && !current_user.teacher? %>
|
12
12
|
<%= render partial: 'layouts/timer', locals: {end_time: @exercise.navigable_parent.real_end_time(current_user)} %>
|
@@ -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="
|
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>
|