mumuki-laboratory 9.0.5 → 9.1.3
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/codemirror.js +10 -2
- data/app/assets/javascripts/mumuki_laboratory/application/discussions.js +10 -10
- data/app/assets/javascripts/mumuki_laboratory/application/gamification.js +3 -3
- data/app/assets/javascripts/mumuki_laboratory/application/kids.js +11 -7
- data/app/assets/javascripts/mumuki_laboratory/application/kindergarten.js +3 -3
- data/app/assets/javascripts/mumuki_laboratory/application/messages.js +3 -3
- data/app/assets/javascripts/mumuki_laboratory/application/mu-modal-carrousel.js +4 -4
- data/app/assets/javascripts/mumuki_laboratory/application/multiple-files.js +18 -5
- data/app/assets/javascripts/mumuki_laboratory/application/multiple-scenarios.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/primary.js +4 -4
- data/app/assets/javascripts/mumuki_laboratory/application/profile.js +0 -6
- data/app/assets/javascripts/mumuki_laboratory/application/progress.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/speech-bubble-renderer.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/submission.js +4 -3
- data/app/assets/javascripts/mumuki_laboratory/application/toast.js +3 -0
- data/app/assets/javascripts/mumuki_laboratory/application/tooltip.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/upload.js +2 -2
- data/app/assets/stylesheets/mumuki_laboratory/application.scss +0 -1
- data/app/assets/stylesheets/mumuki_laboratory/application/_errors.scss +1 -1
- data/app/assets/stylesheets/mumuki_laboratory/application/_layout.scss +1 -27
- data/app/assets/stylesheets/mumuki_laboratory/application/_modules.scss +0 -2
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_activity.scss +7 -5
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_avatar.scss +5 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_breadcrumb.scss +2 -2
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_datepicker.scss +0 -4
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_discussion.scss +38 -60
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_editor.scss +16 -18
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_exercise_assignment.scss +2 -11
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_exercise_results.scss +1 -7
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_faqs.scss +3 -3
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_flash.scss +7 -46
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids.scss +19 -4
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids_results.scss +18 -23
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kindergarten.scss +1 -9
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_overlap.scss +1 -1
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_progress_bar.scss +5 -5
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_terms.scss +3 -2
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_timer.scss +1 -3
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_user_menu.scss +13 -6
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_user_profile.scss +0 -2
- data/app/controllers/application_controller.rb +4 -2
- data/app/controllers/discussions_messages_controller.rb +3 -1
- data/app/helpers/application_helper.rb +5 -5
- data/app/helpers/assignment_result_helper.rb +3 -2
- data/app/helpers/assistance_box_helper.rb +1 -1
- data/app/helpers/concerns/with_student_path_navigation.rb +8 -3
- data/app/helpers/concerns/with_student_path_navigation/continue_navigation.rb +1 -1
- data/app/helpers/concerns/with_student_path_navigation/finish_navigation.rb +1 -1
- data/app/helpers/concerns/with_student_path_navigation/next_parent_navigation.rb +7 -0
- data/app/helpers/concerns/with_student_path_navigation/revisit_navigation.rb +1 -1
- data/app/helpers/discussions_helper.rb +61 -24
- data/app/helpers/editor_tabs_helper.rb +10 -6
- data/app/helpers/email_helper.rb +2 -2
- data/app/helpers/exercise_input_helper.rb +2 -3
- data/app/helpers/links_helper.rb +12 -9
- data/app/helpers/menu_bar_helper.rb +1 -1
- data/app/helpers/messages_helper.rb +1 -1
- data/app/helpers/multiple_file_editor_helper.rb +2 -1
- data/app/helpers/overlapped_buttons_helper.rb +22 -12
- data/app/helpers/profile_helper.rb +3 -3
- data/app/helpers/toast_helper.rb +27 -0
- data/app/helpers/user_activity_helper.rb +1 -1
- data/app/views/book/show.html.erb +2 -2
- data/app/views/certificates/verify.html.erb +1 -1
- data/app/views/chapters/show.html.erb +2 -2
- data/app/views/discussions/_message.html.erb +31 -6
- data/app/views/discussions/_new_message.html.erb +4 -4
- data/app/views/discussions/index.html.erb +8 -10
- data/app/views/discussions/new.html.erb +1 -1
- data/app/views/discussions/show.html.erb +20 -12
- data/app/views/exam_registrations/show.html.erb +10 -11
- data/app/views/exercise_solutions/_assistant_rules_box.html.erb +1 -1
- data/app/views/exercise_solutions/_contextualization_results_body.html.erb +1 -1
- data/app/views/exercise_solutions/_contextualization_results_container.html.erb +1 -1
- data/app/views/exercise_solutions/_kids_results_button.html.erb +2 -2
- data/app/views/exercise_solutions/_results.html.erb +1 -1
- data/app/views/exercises/_exercise_assignment.html.erb +2 -2
- data/app/views/exercises/_exercise_skipped.html.erb +1 -1
- data/app/views/exercises/_read_only.html.erb +108 -105
- data/app/views/exercises/show.html.erb +7 -7
- data/app/views/guides/_guide.html.erb +1 -1
- data/app/views/guides/_guide_container.html.erb +4 -4
- data/app/views/invitations/_invitation_form.html.erb +5 -4
- data/app/views/layouts/_authoring.html.erb +1 -1
- data/app/views/layouts/_discussions.html.erb +7 -7
- data/app/views/layouts/_kids.html.erb +5 -5
- data/app/views/layouts/_kindergarten.html.erb +10 -6
- data/app/views/layouts/_main.html.erb +6 -10
- data/app/views/layouts/_organizations_listing.html.erb +2 -2
- data/app/views/layouts/_progress_bar.html.erb +2 -0
- data/app/views/layouts/_submission_result_error.html.erb +1 -1
- data/app/views/layouts/_test_results.html.erb +1 -1
- data/app/views/layouts/_timer.html.erb +1 -1
- data/app/views/layouts/_user_menu.html.erb +3 -3
- data/app/views/layouts/application.html.erb +39 -42
- data/app/views/layouts/exercise_inputs/editors/_code.html.erb +4 -4
- data/app/views/layouts/exercise_inputs/editors/_free_form.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/editors/_multiple_choice.html.erb +7 -9
- data/app/views/layouts/exercise_inputs/editors/_multiple_files.html.erb +10 -10
- data/app/views/layouts/exercise_inputs/editors/_single_choice.html.erb +6 -8
- data/app/views/layouts/exercise_inputs/editors/_text.html.erb +2 -3
- data/app/views/layouts/exercise_inputs/editors/_upload.html.erb +5 -5
- data/app/views/layouts/exercise_inputs/forms/_form.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/forms/_interactive_form.html.erb +2 -2
- data/app/views/layouts/exercise_inputs/forms/_kids_form.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/forms/_playground_form.html.erb +2 -2
- data/app/views/layouts/exercise_inputs/forms/_problem_form.html.erb +13 -9
- data/app/views/layouts/exercise_inputs/layouts/_input_primary.html.erb +2 -2
- data/app/views/layouts/exercise_inputs/layouts/_input_right.html.erb +2 -2
- data/app/views/layouts/exercise_inputs/read_only_editors/_code.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/read_only_editors/_free_form.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/read_only_editors/_multiple_choice.html.erb +4 -4
- data/app/views/layouts/exercise_inputs/read_only_editors/_multiple_files.html.erb +2 -2
- data/app/views/layouts/exercise_inputs/read_only_editors/_single_choice.html.erb +4 -4
- data/app/views/layouts/exercise_inputs/read_only_editors/_text.erb +1 -1
- data/app/views/layouts/modals/_avatar_picker.html.erb +2 -5
- data/app/views/layouts/modals/_guide_corollary.html.erb +4 -8
- data/app/views/layouts/modals/_kids_context.html.erb +7 -5
- data/app/views/layouts/modals/_kids_results.html.erb +2 -2
- data/app/views/layouts/modals/_kids_results_aborted.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 +2 -5
- data/app/views/layouts/modals/_new_message.html.erb +5 -5
- data/app/views/notifications/_dropdown.html.erb +3 -3
- data/app/views/users/_activity_indicator.html.erb +14 -14
- data/app/views/users/_edit_user_form.html.erb +6 -6
- data/app/views/users/_profile_fields.html.erb +6 -6
- data/app/views/users/_user_form.html.erb +2 -2
- data/app/views/users/activity.html.erb +29 -29
- data/app/views/users/certificates.html.erb +26 -24
- data/app/views/users/discussions.html.erb +23 -21
- data/app/views/users/messages.html.erb +22 -20
- data/app/views/users/show.html.erb +5 -3
- data/app/views/users/terms.html.erb +4 -2
- data/config/initializers/inflections.rb +3 -0
- data/lib/mumuki/laboratory.rb +1 -1
- data/lib/mumuki/laboratory/locales/en.yml +15 -1
- data/lib/mumuki/laboratory/locales/es-CL.yml +15 -1
- data/lib/mumuki/laboratory/locales/es.yml +15 -1
- data/lib/mumuki/laboratory/locales/pt.yml +15 -2
- data/lib/mumuki/laboratory/version.rb +1 -1
- data/spec/capybara_helper.rb +1 -0
- data/spec/controllers/discussions_messages_controller_spec.rb +64 -2
- data/spec/dummy/db/schema.rb +20 -3
- data/spec/features/discussion_flow_spec.rb +20 -2
- data/spec/features/exercise_flow_spec.rb +1 -1
- data/spec/features/guide_reset_spec.rb +1 -1
- data/spec/features/terms_flow_spec.rb +1 -2
- data/spec/helpers/breadcrumbs_helper_spec.rb +2 -2
- data/spec/helpers/with_navigation_spec.rb +51 -13
- data/spec/javascripts/editors-spec.js +3 -3
- data/spec/javascripts/kids-button-spec.js +2 -2
- data/spec/javascripts/upload-spec.js +8 -8
- metadata +118 -117
- data/app/assets/stylesheets/mumuki_laboratory/application/hovers.scss +0 -12
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_checkboxes.scss +0 -34
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_guide_corollary.scss +0 -9
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="modal new-message-modal" tabindex="-1" role="dialog" aria-hidden="true"
|
1
|
+
<div class="modal new-message-modal d-block" tabindex="-1" role="dialog" aria-hidden="true">
|
2
2
|
<div class="modal-dialog">
|
3
3
|
<%= form_for(Message.new, html: {role: 'form'}) do |f| %>
|
4
4
|
<div class="modal-content">
|
@@ -19,16 +19,16 @@
|
|
19
19
|
</small>
|
20
20
|
</div>
|
21
21
|
</div>
|
22
|
-
<div class="modal-body
|
22
|
+
<div class="modal-body d-none">
|
23
23
|
<div class="container-fluid">
|
24
24
|
<div class="row">
|
25
25
|
<%= f.text_area :content, class: 'form-control mu-message-textarea', placeholder: t(:new_message_placeholder) %>
|
26
|
-
<%= f.text_field :exercise_id, value: exercise.id, class: '
|
26
|
+
<%= f.text_field :exercise_id, value: exercise.id, class: 'd-none' %>
|
27
27
|
</div>
|
28
28
|
</div>
|
29
29
|
</div>
|
30
|
-
<div class="modal-footer
|
31
|
-
<button class="btn btn-
|
30
|
+
<div class="modal-footer d-none">
|
31
|
+
<button class="btn btn-complementary w-100"> <%= t :send %> </button>
|
32
32
|
</div>
|
33
33
|
</div>
|
34
34
|
<% end %>
|
@@ -1,9 +1,9 @@
|
|
1
|
-
<div class="dropdown mu-navbar-element notifications-box <%= '
|
2
|
-
<div id="notificationsDropdown" class="profile-dropdown" data-toggle="dropdown" aria-label="<%= t(:notifications) %>" role="menu" tabindex="0">
|
1
|
+
<div class="dropdown mu-navbar-element notifications-box <%= 'd-none' unless has_notifications? %>">
|
2
|
+
<div id="notificationsDropdown" class="profile-dropdown" data-bs-toggle="dropdown" aria-label="<%= t(:notifications) %>" role="menu" tabindex="0">
|
3
3
|
<i class="fas fa-bell fa-fw fa-2x mu-navbar-icon"></i>
|
4
4
|
<span class="badge badge-notifications"><%= notifications_count %></span>
|
5
5
|
</div>
|
6
|
-
<ul id="notificationsPanel" class="dropdown-menu dropdown-menu-
|
6
|
+
<ul id="notificationsPanel" class="dropdown-menu dropdown-menu-end" aria-labelledby="notificationsDropdown">
|
7
7
|
<% notifications.each do |it| %>
|
8
8
|
<li>
|
9
9
|
<%= notification_preview_for it.target %>
|
@@ -1,17 +1,17 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="
|
3
|
-
<
|
1
|
+
<div class="mb-3">
|
2
|
+
<div class="row">
|
3
|
+
<div class="col-md-12">
|
4
|
+
<h3><%= title %></h3>
|
5
|
+
</div>
|
4
6
|
</div>
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<p><%= s[:name].downcase %></p>
|
13
|
-
</h1>
|
7
|
+
<div class="row">
|
8
|
+
<% stats.each do |s| %>
|
9
|
+
<div class="col-md-6">
|
10
|
+
<div class="mu-user-activity-indicator bg-light">
|
11
|
+
<h1 class="display-1"><%= s[:value] %></h1>
|
12
|
+
<h4><%= s[:name].downcase %></h4>
|
13
|
+
</div>
|
14
14
|
</div>
|
15
|
-
|
16
|
-
|
15
|
+
<% end %>
|
16
|
+
</div>
|
17
17
|
</div>
|
@@ -1,22 +1,22 @@
|
|
1
|
-
<%= form_for :user, url: user_path, :html => { id: 'mu-user-form' }, method: :put do |f| %>
|
1
|
+
<%= form_for :user, url: user_path, :html => { id: 'mu-user-form', class: 'mu-form' }, method: :put do |f| %>
|
2
2
|
<div class="mu-user-header">
|
3
3
|
<h1><%= t(:edit_profile) %></h1>
|
4
|
-
<div class="mu-profile-actions
|
4
|
+
<div class="mu-profile-actions d-none d-md-block">
|
5
5
|
<%= cancel_edit_profile_button %>
|
6
6
|
<%= save_edit_profile_button f %>
|
7
7
|
</div>
|
8
8
|
</div>
|
9
9
|
<div class="row mu-tab-body">
|
10
|
-
<div class="col-md-4
|
10
|
+
<div class="col-md-6 col-lg-4 mu-user-avatar-container">
|
11
11
|
<%= profile_picture_for(@user, id: 'mu-user-avatar', class: 'mu-user-avatar') %>
|
12
|
-
<
|
12
|
+
<button class="fas fa-pencil-alt fa-2x btn mu-edit-avatar" type="button" data-bs-toggle="modal" data-bs-target="#mu-avatar-picker" tabindex="0"></button>
|
13
13
|
</div>
|
14
|
-
<div class="col-md-8">
|
14
|
+
<div class="col-md-6 col-lg-8">
|
15
15
|
<%= render partial: 'profile_fields', locals: {form: f} %>
|
16
16
|
<%= render partial: 'layouts/terms_acceptance_disclaimer', locals: {user: @user} %>
|
17
17
|
</div>
|
18
18
|
</div>
|
19
|
-
<div class="mu-profile-actions mobile
|
19
|
+
<div class="mu-profile-actions mobile d-block d-md-none">
|
20
20
|
<%= cancel_edit_profile_button %>
|
21
21
|
<%= save_edit_profile_button f %>
|
22
22
|
</div>
|
@@ -1,20 +1,20 @@
|
|
1
|
-
<fieldset
|
1
|
+
<fieldset>
|
2
2
|
<div><%= form.label(t :first_name) %></div>
|
3
3
|
<div><%= form.text_field :first_name, required: true, class: 'form-control' %></div>
|
4
4
|
</fieldset>
|
5
|
-
<fieldset
|
5
|
+
<fieldset>
|
6
6
|
<div><%= form.label(t :last_name) %></div>
|
7
7
|
<div><%= form.text_field :last_name, required: true, class: 'form-control' %></div>
|
8
8
|
</fieldset>
|
9
|
-
<fieldset
|
9
|
+
<fieldset>
|
10
10
|
<div><%= form.label(t :gender) %></div>
|
11
|
-
<div><%= form.select :gender, options_for_select(User.genders.map { |gender, _| [t(gender), gender] }, @user.gender), {}, required: true, class: 'form-control' %></div>
|
11
|
+
<div><%= form.select :gender, options_for_select(User.genders.map { |gender, _| [t(gender), gender] }, @user.gender), {}, required: true, class: 'form-control form-select' %></div>
|
12
12
|
</fieldset>
|
13
|
-
<fieldset
|
13
|
+
<fieldset>
|
14
14
|
<div><%= form.label(t :birthdate) %></div>
|
15
15
|
<div><%= form.date_field :birthdate, min: Date.new(1900), max: 3.years.ago.end_of_year, required: true, class: 'form-control' %></div>
|
16
16
|
</fieldset>
|
17
|
-
<fieldset
|
17
|
+
<fieldset>
|
18
18
|
<div><%= form.label(t :email) %></div>
|
19
19
|
<div><%= form.text_field :email, readonly: true, class: 'form-control' %></div>
|
20
20
|
</fieldset>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div class="mu-user-header">
|
2
2
|
<h1><%= t(:my_profile) %></h1>
|
3
|
-
<div class="mu-profile-actions
|
3
|
+
<div class="mu-profile-actions d-none d-md-block">
|
4
4
|
<%= edit_profile_button %>
|
5
5
|
</div>
|
6
6
|
</div>
|
@@ -35,6 +35,6 @@
|
|
35
35
|
</div>
|
36
36
|
</div>
|
37
37
|
</div>
|
38
|
-
<div class="mu-profile-actions mobile
|
38
|
+
<div class="mu-profile-actions mobile d-block d-md-none">
|
39
39
|
<%= edit_profile_button %>
|
40
40
|
</div>
|
@@ -2,36 +2,36 @@
|
|
2
2
|
<%= breadcrumbs_for_my_account %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
-
|
5
|
+
<div class="row">
|
6
|
+
<%= render partial: 'layouts/user_menu' %>
|
6
7
|
|
7
|
-
<div class="col-md-9
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
<%= render partial: 'activity_indicator',
|
19
|
-
locals: {
|
20
|
-
title: t(:forum),
|
21
|
-
stats: messages_activity_stats
|
22
|
-
} %>
|
23
|
-
</div>
|
8
|
+
<div class="col-md-9">
|
9
|
+
<div class="mu-user-header">
|
10
|
+
<h1><%= t(:activity) %></h1>
|
11
|
+
</div>
|
12
|
+
<div class="row">
|
13
|
+
<div class="col-lg-8 mu-tab-body">
|
14
|
+
<%= render partial: 'activity_indicator',
|
15
|
+
locals: {
|
16
|
+
title: t(:exercises),
|
17
|
+
stats: exercises_activity_stats
|
18
|
+
} %>
|
24
19
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
20
|
+
<%= render partial: 'activity_indicator',
|
21
|
+
locals: {
|
22
|
+
title: t(:forum),
|
23
|
+
stats: messages_activity_stats
|
24
|
+
} %>
|
25
|
+
</div>
|
26
|
+
<div class="col-lg-4 mu-tab-body">
|
27
|
+
<div class="nav nav-pills flex-column">
|
28
|
+
<%= link_to t(:total), activity_user_path, class: "mu-user-activity-week-selector #{mark_period_if_active(nil)}" %>
|
29
|
+
<% activity_selector_week_range_for.each do |(week_start, week_end)| %>
|
30
|
+
<%= link_to t(:week_of, date: l(week_start)), activity_user_path(date_from: week_start, date_to: week_end),
|
31
|
+
class: "mu-user-activity-week-selector #{mark_period_if_active(week_start)}" %>
|
32
|
+
<% end %>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
36
|
</div>
|
37
37
|
</div>
|
@@ -2,31 +2,33 @@
|
|
2
2
|
<%= breadcrumbs_for_my_account %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
-
|
5
|
+
<div class="row">
|
6
|
+
<%= render partial: 'layouts/user_menu' %>
|
6
7
|
|
7
|
-
<div class="col-md-9 mu-tab-body">
|
8
|
-
|
9
|
-
|
10
|
-
</div>
|
11
|
-
<% if @certificates.empty? %>
|
12
|
-
<div class="mu-tab-body">
|
13
|
-
<%= t :certificates_will_be_here %>
|
8
|
+
<div class="col-md-9 mu-tab-body">
|
9
|
+
<div class="mu-user-header">
|
10
|
+
<h1><%= t(:certificates) %></h1>
|
14
11
|
</div>
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
<% @certificates.each do |certificate| %>
|
19
|
-
<span class="mu-list-group-item">
|
20
|
-
<a href="<%= download_certificate_path certificate.code %>" target="_blank"><i class="fas fa-fw fa-download"></i></a>
|
21
|
-
<span class="mu-divider-vertical"></span>
|
22
|
-
<a href="<%= linkedin_post_url certificate %>" target="_blank"><i class="fab fa-fw fa-linkedin"></i></a>
|
23
|
-
<span class="mu-divider-vertical"></span>
|
24
|
-
<a href="<%= verify_certificate_path certificate.code %>" target="_blank">
|
25
|
-
<span class="mu-text-capitalize"><%= certificate.title %> - <%= certificate.description %></span>
|
26
|
-
</a>
|
27
|
-
</span>
|
28
|
-
<% end %>
|
12
|
+
<% if @certificates.empty? %>
|
13
|
+
<div class="mu-tab-body">
|
14
|
+
<%= t :certificates_will_be_here %>
|
29
15
|
</div>
|
30
|
-
|
31
|
-
|
16
|
+
<% else %>
|
17
|
+
<div class="col-md-12">
|
18
|
+
<div class="mu-list-group">
|
19
|
+
<% @certificates.each do |certificate| %>
|
20
|
+
<span class="mu-list-group-item">
|
21
|
+
<a href="<%= download_certificate_path certificate.code %>" target="_blank"><i class="fas fa-fw fa-download"></i></a>
|
22
|
+
<span class="mu-divider-vertical"></span>
|
23
|
+
<a href="<%= linkedin_post_url certificate %>" target="_blank"><i class="fab fa-fw fa-linkedin"></i></a>
|
24
|
+
<span class="mu-divider-vertical"></span>
|
25
|
+
<a href="<%= verify_certificate_path certificate.code %>" target="_blank">
|
26
|
+
<span class="mu-text-capitalize"><%= certificate.title %> - <%= certificate.description %></span>
|
27
|
+
</a>
|
28
|
+
</span>
|
29
|
+
<% end %>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<% end %>
|
33
|
+
</div>
|
32
34
|
</div>
|
@@ -2,27 +2,29 @@
|
|
2
2
|
<%= breadcrumbs_for_my_account %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
-
|
5
|
+
<div class="row">
|
6
|
+
<%= render partial: 'layouts/user_menu' %>
|
6
7
|
|
7
|
-
<div class="col-md-9 mu-tab-body">
|
8
|
-
|
9
|
-
|
10
|
-
</div>
|
11
|
-
<% if @watched_discussions.empty? %>
|
12
|
-
<div class="mu-tab-body">
|
13
|
-
<%= t :discussions_will_be_here %>
|
8
|
+
<div class="col-md-9 mu-tab-body">
|
9
|
+
<div class="mu-user-header">
|
10
|
+
<h1><%= t(:discussions) %></h1>
|
14
11
|
</div>
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
<
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
12
|
+
<% if @watched_discussions.empty? %>
|
13
|
+
<div class="mu-tab-body">
|
14
|
+
<%= t :discussions_will_be_here %>
|
15
|
+
</div>
|
16
|
+
<% else %>
|
17
|
+
<table class="table table-striped">
|
18
|
+
<% @watched_discussions.each do |discussion| %>
|
19
|
+
<tr>
|
20
|
+
<td>
|
21
|
+
<%= icon_for_read(discussion.read_by?(@user)) %>
|
22
|
+
</td>
|
23
|
+
<td><%= link_to discussion.item.name, item_discussion_path(discussion) %></td>
|
24
|
+
<td><%= time_ago_in_words discussion.last_message_date %></td>
|
25
|
+
</tr>
|
26
|
+
<% end %>
|
27
|
+
</table>
|
28
|
+
<% end %>
|
29
|
+
</div>
|
28
30
|
</div>
|
@@ -2,26 +2,28 @@
|
|
2
2
|
<%= breadcrumbs_for_my_account %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
-
|
5
|
+
<div class="row">
|
6
|
+
<%= render partial: 'layouts/user_menu' %>
|
6
7
|
|
7
|
-
<div class="col-md-9 mu-tab-body">
|
8
|
-
|
9
|
-
|
10
|
-
</div>
|
11
|
-
<% if @messages.empty? %>
|
12
|
-
<div class="mu-tab-body">
|
13
|
-
<%= t :no_messages %>
|
8
|
+
<div class="col-md-9 mu-tab-body">
|
9
|
+
<div class="mu-user-header">
|
10
|
+
<h1><%= t(:messages) %></h1>
|
14
11
|
</div>
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
<
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
12
|
+
<% if @messages.empty? %>
|
13
|
+
<div class="mu-tab-body">
|
14
|
+
<%= t :no_messages %>
|
15
|
+
</div>
|
16
|
+
<% else %>
|
17
|
+
<table class="table table-striped">
|
18
|
+
<% @messages.each do |message| %>
|
19
|
+
<tr>
|
20
|
+
<td><%= icon_for_read(message.read?) %></td>
|
21
|
+
<td><%= link_to message.exercise.name, exercise_path(message.exercise.id) %></td>
|
22
|
+
<td><%= mail_to message.sender %></td>
|
23
|
+
<td><%= time_ago_in_words message.created_at %></td>
|
24
|
+
</tr>
|
25
|
+
<% end %>
|
26
|
+
</table>
|
27
|
+
<% end %>
|
28
|
+
</div>
|
27
29
|
</div>
|
@@ -2,8 +2,10 @@
|
|
2
2
|
<%= breadcrumbs_for_my_account %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
-
|
5
|
+
<div class="row">
|
6
|
+
<%= render partial: 'layouts/user_menu' %>
|
6
7
|
|
7
|
-
<div class="col-md-9 mu-tab-body">
|
8
|
-
|
8
|
+
<div class="col-md-9 mu-tab-body">
|
9
|
+
<%= render partial: 'user_form' %>
|
10
|
+
</div>
|
9
11
|
</div>
|
@@ -20,10 +20,12 @@
|
|
20
20
|
<div class="terms-acceptance">
|
21
21
|
<%= form_for :user, url: terms_user_path, method: :post do |f| %>
|
22
22
|
<span class="terms-acceptance-checkbox">
|
23
|
-
<%= f.check_box :terms_of_service, required: true,
|
23
|
+
<%= f.check_box :terms_of_service, required: true, class: 'form-check-input',
|
24
|
+
onInvalid: "this.setCustomValidity('#{t(:terms_and_conditions_must_be_accepted)}')",
|
25
|
+
onChange: "this.setCustomValidity(validity.valueMissing ? '#{t(:terms_and_conditions_must_be_accepted)}' : '')" %>
|
24
26
|
<%= t(:accept_terms) %>
|
25
27
|
</span>
|
26
|
-
<%= f.submit t(:accept), class: 'btn btn-
|
28
|
+
<%= f.submit t(:accept), class: 'btn btn-complementary terms-acceptance-btn' %>
|
27
29
|
<% end %>
|
28
30
|
</div>
|
29
31
|
<% end %>
|
data/lib/mumuki/laboratory.rb
CHANGED
@@ -66,6 +66,18 @@ en:
|
|
66
66
|
create_submission: Submit
|
67
67
|
created_at: Created at
|
68
68
|
date: Date
|
69
|
+
deleted_by: Deleted by %{deleter}
|
70
|
+
deleted_message_warning: If you repeateadly violate these or other rules, you may be prohibited from accessing the forum or you may suffer more severe consequences, such as being expulsed from the course.
|
71
|
+
deletion_motive:
|
72
|
+
inappropriate_content:
|
73
|
+
present: Includes inappropriate content
|
74
|
+
past: Included inappropriate content
|
75
|
+
shares_solution:
|
76
|
+
present: Shares the correct solution
|
77
|
+
past: Shared the correct solution
|
78
|
+
discloses_personal_information:
|
79
|
+
present: Discloses personal information
|
80
|
+
past: Disclosed personal information
|
69
81
|
description: Description
|
70
82
|
destroy: Destroy
|
71
83
|
destroy_message: delete the message
|
@@ -176,6 +188,7 @@ en:
|
|
176
188
|
one: 1 message
|
177
189
|
other: '%{count} messages'
|
178
190
|
message: Message
|
191
|
+
message_deleted: This message was deleted because it %{motive}, which violates the %{forum_terms}.
|
179
192
|
messages: Messages
|
180
193
|
messages_error: Previous messages are unavailable. Please try again later.
|
181
194
|
moderation: Mentoring
|
@@ -254,6 +267,7 @@ en:
|
|
254
267
|
select_file: Select file
|
255
268
|
sending_solution: Sending solution
|
256
269
|
show: Show
|
270
|
+
show_message: Show message
|
257
271
|
sign_in: Sign in
|
258
272
|
sign_in_action: sign in
|
259
273
|
sign_out: Sign Out
|
@@ -319,7 +333,7 @@ en:
|
|
319
333
|
user_data_updated: Your data was updated successfully
|
320
334
|
username: Username
|
321
335
|
view_details: View details
|
322
|
-
want_permissions: The
|
336
|
+
want_permissions: The following user requires permissions for the organization
|
323
337
|
we_miss_you: We miss you!
|
324
338
|
week_of: Week of %{date}
|
325
339
|
welcome: Welcome to %{name}!
|