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.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/mumuki_laboratory/application/codemirror.js +10 -2
  3. data/app/assets/javascripts/mumuki_laboratory/application/discussions.js +10 -10
  4. data/app/assets/javascripts/mumuki_laboratory/application/gamification.js +3 -3
  5. data/app/assets/javascripts/mumuki_laboratory/application/kids.js +11 -7
  6. data/app/assets/javascripts/mumuki_laboratory/application/kindergarten.js +3 -3
  7. data/app/assets/javascripts/mumuki_laboratory/application/messages.js +3 -3
  8. data/app/assets/javascripts/mumuki_laboratory/application/mu-modal-carrousel.js +4 -4
  9. data/app/assets/javascripts/mumuki_laboratory/application/multiple-files.js +18 -5
  10. data/app/assets/javascripts/mumuki_laboratory/application/multiple-scenarios.js +1 -1
  11. data/app/assets/javascripts/mumuki_laboratory/application/primary.js +4 -4
  12. data/app/assets/javascripts/mumuki_laboratory/application/profile.js +0 -6
  13. data/app/assets/javascripts/mumuki_laboratory/application/progress.js +1 -1
  14. data/app/assets/javascripts/mumuki_laboratory/application/speech-bubble-renderer.js +1 -1
  15. data/app/assets/javascripts/mumuki_laboratory/application/submission.js +4 -3
  16. data/app/assets/javascripts/mumuki_laboratory/application/toast.js +3 -0
  17. data/app/assets/javascripts/mumuki_laboratory/application/tooltip.js +1 -1
  18. data/app/assets/javascripts/mumuki_laboratory/application/upload.js +2 -2
  19. data/app/assets/stylesheets/mumuki_laboratory/application.scss +0 -1
  20. data/app/assets/stylesheets/mumuki_laboratory/application/_errors.scss +1 -1
  21. data/app/assets/stylesheets/mumuki_laboratory/application/_layout.scss +1 -27
  22. data/app/assets/stylesheets/mumuki_laboratory/application/_modules.scss +0 -2
  23. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_activity.scss +7 -5
  24. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_avatar.scss +5 -0
  25. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_breadcrumb.scss +2 -2
  26. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_datepicker.scss +0 -4
  27. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_discussion.scss +38 -60
  28. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_editor.scss +16 -18
  29. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_exercise_assignment.scss +2 -11
  30. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_exercise_results.scss +1 -7
  31. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_faqs.scss +3 -3
  32. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_flash.scss +7 -46
  33. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids.scss +19 -4
  34. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids_results.scss +18 -23
  35. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kindergarten.scss +1 -9
  36. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_overlap.scss +1 -1
  37. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_progress_bar.scss +5 -5
  38. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_terms.scss +3 -2
  39. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_timer.scss +1 -3
  40. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_user_menu.scss +13 -6
  41. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_user_profile.scss +0 -2
  42. data/app/controllers/application_controller.rb +4 -2
  43. data/app/controllers/discussions_messages_controller.rb +3 -1
  44. data/app/helpers/application_helper.rb +5 -5
  45. data/app/helpers/assignment_result_helper.rb +3 -2
  46. data/app/helpers/assistance_box_helper.rb +1 -1
  47. data/app/helpers/concerns/with_student_path_navigation.rb +8 -3
  48. data/app/helpers/concerns/with_student_path_navigation/continue_navigation.rb +1 -1
  49. data/app/helpers/concerns/with_student_path_navigation/finish_navigation.rb +1 -1
  50. data/app/helpers/concerns/with_student_path_navigation/next_parent_navigation.rb +7 -0
  51. data/app/helpers/concerns/with_student_path_navigation/revisit_navigation.rb +1 -1
  52. data/app/helpers/discussions_helper.rb +61 -24
  53. data/app/helpers/editor_tabs_helper.rb +10 -6
  54. data/app/helpers/email_helper.rb +2 -2
  55. data/app/helpers/exercise_input_helper.rb +2 -3
  56. data/app/helpers/links_helper.rb +12 -9
  57. data/app/helpers/menu_bar_helper.rb +1 -1
  58. data/app/helpers/messages_helper.rb +1 -1
  59. data/app/helpers/multiple_file_editor_helper.rb +2 -1
  60. data/app/helpers/overlapped_buttons_helper.rb +22 -12
  61. data/app/helpers/profile_helper.rb +3 -3
  62. data/app/helpers/toast_helper.rb +27 -0
  63. data/app/helpers/user_activity_helper.rb +1 -1
  64. data/app/views/book/show.html.erb +2 -2
  65. data/app/views/certificates/verify.html.erb +1 -1
  66. data/app/views/chapters/show.html.erb +2 -2
  67. data/app/views/discussions/_message.html.erb +31 -6
  68. data/app/views/discussions/_new_message.html.erb +4 -4
  69. data/app/views/discussions/index.html.erb +8 -10
  70. data/app/views/discussions/new.html.erb +1 -1
  71. data/app/views/discussions/show.html.erb +20 -12
  72. data/app/views/exam_registrations/show.html.erb +10 -11
  73. data/app/views/exercise_solutions/_assistant_rules_box.html.erb +1 -1
  74. data/app/views/exercise_solutions/_contextualization_results_body.html.erb +1 -1
  75. data/app/views/exercise_solutions/_contextualization_results_container.html.erb +1 -1
  76. data/app/views/exercise_solutions/_kids_results_button.html.erb +2 -2
  77. data/app/views/exercise_solutions/_results.html.erb +1 -1
  78. data/app/views/exercises/_exercise_assignment.html.erb +2 -2
  79. data/app/views/exercises/_exercise_skipped.html.erb +1 -1
  80. data/app/views/exercises/_read_only.html.erb +108 -105
  81. data/app/views/exercises/show.html.erb +7 -7
  82. data/app/views/guides/_guide.html.erb +1 -1
  83. data/app/views/guides/_guide_container.html.erb +4 -4
  84. data/app/views/invitations/_invitation_form.html.erb +5 -4
  85. data/app/views/layouts/_authoring.html.erb +1 -1
  86. data/app/views/layouts/_discussions.html.erb +7 -7
  87. data/app/views/layouts/_kids.html.erb +5 -5
  88. data/app/views/layouts/_kindergarten.html.erb +10 -6
  89. data/app/views/layouts/_main.html.erb +6 -10
  90. data/app/views/layouts/_organizations_listing.html.erb +2 -2
  91. data/app/views/layouts/_progress_bar.html.erb +2 -0
  92. data/app/views/layouts/_submission_result_error.html.erb +1 -1
  93. data/app/views/layouts/_test_results.html.erb +1 -1
  94. data/app/views/layouts/_timer.html.erb +1 -1
  95. data/app/views/layouts/_user_menu.html.erb +3 -3
  96. data/app/views/layouts/application.html.erb +39 -42
  97. data/app/views/layouts/exercise_inputs/editors/_code.html.erb +4 -4
  98. data/app/views/layouts/exercise_inputs/editors/_free_form.html.erb +1 -1
  99. data/app/views/layouts/exercise_inputs/editors/_multiple_choice.html.erb +7 -9
  100. data/app/views/layouts/exercise_inputs/editors/_multiple_files.html.erb +10 -10
  101. data/app/views/layouts/exercise_inputs/editors/_single_choice.html.erb +6 -8
  102. data/app/views/layouts/exercise_inputs/editors/_text.html.erb +2 -3
  103. data/app/views/layouts/exercise_inputs/editors/_upload.html.erb +5 -5
  104. data/app/views/layouts/exercise_inputs/forms/_form.html.erb +1 -1
  105. data/app/views/layouts/exercise_inputs/forms/_interactive_form.html.erb +2 -2
  106. data/app/views/layouts/exercise_inputs/forms/_kids_form.html.erb +1 -1
  107. data/app/views/layouts/exercise_inputs/forms/_playground_form.html.erb +2 -2
  108. data/app/views/layouts/exercise_inputs/forms/_problem_form.html.erb +13 -9
  109. data/app/views/layouts/exercise_inputs/layouts/_input_primary.html.erb +2 -2
  110. data/app/views/layouts/exercise_inputs/layouts/_input_right.html.erb +2 -2
  111. data/app/views/layouts/exercise_inputs/read_only_editors/_code.html.erb +1 -1
  112. data/app/views/layouts/exercise_inputs/read_only_editors/_free_form.html.erb +1 -1
  113. data/app/views/layouts/exercise_inputs/read_only_editors/_multiple_choice.html.erb +4 -4
  114. data/app/views/layouts/exercise_inputs/read_only_editors/_multiple_files.html.erb +2 -2
  115. data/app/views/layouts/exercise_inputs/read_only_editors/_single_choice.html.erb +4 -4
  116. data/app/views/layouts/exercise_inputs/read_only_editors/_text.erb +1 -1
  117. data/app/views/layouts/modals/_avatar_picker.html.erb +2 -5
  118. data/app/views/layouts/modals/_guide_corollary.html.erb +4 -8
  119. data/app/views/layouts/modals/_kids_context.html.erb +7 -5
  120. data/app/views/layouts/modals/_kids_results.html.erb +2 -2
  121. data/app/views/layouts/modals/_kids_results_aborted.html.erb +2 -2
  122. data/app/views/layouts/modals/_kindergarten_context.html.erb +3 -3
  123. data/app/views/layouts/modals/_kindergarten_results.html.erb +3 -3
  124. data/app/views/layouts/modals/_kindergarten_results_aborted.html.erb +2 -2
  125. data/app/views/layouts/modals/_level_up.html.erb +2 -5
  126. data/app/views/layouts/modals/_new_message.html.erb +5 -5
  127. data/app/views/notifications/_dropdown.html.erb +3 -3
  128. data/app/views/users/_activity_indicator.html.erb +14 -14
  129. data/app/views/users/_edit_user_form.html.erb +6 -6
  130. data/app/views/users/_profile_fields.html.erb +6 -6
  131. data/app/views/users/_user_form.html.erb +2 -2
  132. data/app/views/users/activity.html.erb +29 -29
  133. data/app/views/users/certificates.html.erb +26 -24
  134. data/app/views/users/discussions.html.erb +23 -21
  135. data/app/views/users/messages.html.erb +22 -20
  136. data/app/views/users/show.html.erb +5 -3
  137. data/app/views/users/terms.html.erb +4 -2
  138. data/config/initializers/inflections.rb +3 -0
  139. data/lib/mumuki/laboratory.rb +1 -1
  140. data/lib/mumuki/laboratory/locales/en.yml +15 -1
  141. data/lib/mumuki/laboratory/locales/es-CL.yml +15 -1
  142. data/lib/mumuki/laboratory/locales/es.yml +15 -1
  143. data/lib/mumuki/laboratory/locales/pt.yml +15 -2
  144. data/lib/mumuki/laboratory/version.rb +1 -1
  145. data/spec/capybara_helper.rb +1 -0
  146. data/spec/controllers/discussions_messages_controller_spec.rb +64 -2
  147. data/spec/dummy/db/schema.rb +20 -3
  148. data/spec/features/discussion_flow_spec.rb +20 -2
  149. data/spec/features/exercise_flow_spec.rb +1 -1
  150. data/spec/features/guide_reset_spec.rb +1 -1
  151. data/spec/features/terms_flow_spec.rb +1 -2
  152. data/spec/helpers/breadcrumbs_helper_spec.rb +2 -2
  153. data/spec/helpers/with_navigation_spec.rb +51 -13
  154. data/spec/javascripts/editors-spec.js +3 -3
  155. data/spec/javascripts/kids-button-spec.js +2 -2
  156. data/spec/javascripts/upload-spec.js +8 -8
  157. metadata +118 -117
  158. data/app/assets/stylesheets/mumuki_laboratory/application/hovers.scss +0 -12
  159. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_checkboxes.scss +0 -34
  160. 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" style="display:block">
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 hidden">
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: 'hidden' %>
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 hidden">
31
- <button class="btn btn-success btn-block"> <%= t :send %> </button>
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 <%= 'notifications-box-empty' unless has_notifications? %>">
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-right" aria-labelledby="notificationsDropdown">
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="row">
2
- <div class="col-md-12">
3
- <h3><%= title %></h3>
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
- </div>
6
- <div class="row">
7
- <% stats.each do |s| %>
8
- <div class="col-md-6">
9
- <div class="jumbotron mu-user-activity-indicator">
10
- <h1>
11
- <%= s[:value] %>
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
- </div>
16
- <% end %>
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 hidden-xs">
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 text-center">
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
- <i class="fas fa-pencil-alt fa-2x pointer mu-edit-avatar" id="mu-edit-avatar-icon" tabindex="0"></i>
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 visible-xs">
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 class="form-group">
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 class="form-group">
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 class="form-group">
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 class="form-group">
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 class="form-group">
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 hidden-xs">
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 visible-xs">
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
- <%= render partial: 'layouts/user_menu' %>
5
+ <div class="row">
6
+ <%= render partial: 'layouts/user_menu' %>
6
7
 
7
- <div class="col-md-9 mu-tab-body">
8
- <div class="mu-user-header">
9
- <h1><%= t(:activity) %></h1>
10
- </div>
11
- <div class="col-md-8">
12
- <%= render partial: 'activity_indicator',
13
- locals: {
14
- title: t(:exercises),
15
- stats: exercises_activity_stats
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
- <div class="col-md-4">
26
- <ul class="nav nav-pills nav-stacked mu-user-activity-selector">
27
- <li <%= mark_period_if_active nil %>>
28
- <%= link_to t(:total), activity_user_path %>
29
- </li>
30
- <% activity_selector_week_range_for.each do |(week_start, week_end)| %>
31
- <li <%= mark_period_if_active week_start %>>
32
- <%= link_to t(:week_of, date: l(week_start)), activity_user_path(date_from: week_start, date_to: week_end) %>
33
- </li>
34
- <% end %>
35
- </ul>
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
- <%= render partial: 'layouts/user_menu' %>
5
+ <div class="row">
6
+ <%= render partial: 'layouts/user_menu' %>
6
7
 
7
- <div class="col-md-9 mu-tab-body">
8
- <div class="mu-user-header">
9
- <h1><%= t(:certificates) %></h1>
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
- <% else %>
16
- <div class="col-md-12">
17
- <div class="mu-list-group">
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
- </div>
31
- <% end %>
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
- <%= render partial: 'layouts/user_menu' %>
5
+ <div class="row">
6
+ <%= render partial: 'layouts/user_menu' %>
6
7
 
7
- <div class="col-md-9 mu-tab-body">
8
- <div class="mu-user-header">
9
- <h1><%= t(:discussions) %></h1>
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
- <% else %>
16
- <table class="table table-striped">
17
- <% @watched_discussions.each do |discussion| %>
18
- <tr>
19
- <td>
20
- <%= icon_for_read(discussion.read_by?(@user)) %>
21
- </td>
22
- <td><%= link_to discussion.item.name, item_discussion_path(discussion) %></td>
23
- <td><%= time_ago_in_words discussion.last_message_date %></td>
24
- </tr>
25
- <% end %>
26
- </table>
27
- <% end %>
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
- <%= render partial: 'layouts/user_menu' %>
5
+ <div class="row">
6
+ <%= render partial: 'layouts/user_menu' %>
6
7
 
7
- <div class="col-md-9 mu-tab-body">
8
- <div class="mu-user-header">
9
- <h1><%= t(:messages) %></h1>
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
- <% else %>
16
- <table class="table table-striped">
17
- <% @messages.each do |message| %>
18
- <tr>
19
- <td><%= icon_for_read(message.read?) %></td>
20
- <td><%= link_to message.exercise.name, exercise_path(message.exercise.id) %></td>
21
- <td><%= mail_to message.sender %></td>
22
- <td><%= time_ago_in_words message.created_at %></td>
23
- </tr>
24
- <% end %>
25
- </table>
26
- <% end %>
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
- <%= render partial: 'layouts/user_menu' %>
5
+ <div class="row">
6
+ <%= render partial: 'layouts/user_menu' %>
6
7
 
7
- <div class="col-md-9 mu-tab-body">
8
- <%= render partial: 'user_form' %>
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, onInvalid: "this.setCustomValidity('#{t(:terms_and_conditions_must_be_accepted)}')", onChange: "this.setCustomValidity(validity.valueMissing ? '#{t(:terms_and_conditions_must_be_accepted)}' : '')" %>
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-success terms-acceptance-btn' %>
28
+ <%= f.submit t(:accept), class: 'btn btn-complementary terms-acceptance-btn' %>
27
29
  <% end %>
28
30
  </div>
29
31
  <% end %>
@@ -0,0 +1,3 @@
1
+ ActiveSupport::Inflector.inflections(:en) do |inflect|
2
+ inflect.acronym 'FAQs'
3
+ end
@@ -14,7 +14,7 @@ require 'mumukit/nuntius'
14
14
  require 'mumukit/platform'
15
15
 
16
16
  require 'kaminari'
17
- require 'bootstrap-kaminari-views'
17
+ require 'bootstrap5-kaminari-views'
18
18
 
19
19
  Mumukit::Nuntius.configure do |config|
20
20
  config.app_name = 'laboratory'
@@ -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 next user requires permissions
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}!