mumuki-laboratory 9.8.2 → 9.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/mumuki_laboratory/application/bridge.js +15 -9
  3. data/app/assets/javascripts/mumuki_laboratory/application/confirmation.js +10 -8
  4. data/app/assets/javascripts/mumuki_laboratory/application/editors.js +5 -3
  5. data/app/assets/javascripts/mumuki_laboratory/application/messages.js +1 -30
  6. data/app/assets/javascripts/mumuki_laboratory/application/progress.js +4 -4
  7. data/app/assets/javascripts/mumuki_laboratory/application/results-renderer.js +12 -1
  8. data/app/assets/javascripts/mumuki_laboratory/application/submissions-store.js +8 -2
  9. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_discussion.scss +32 -34
  10. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_dropdown.scss +11 -0
  11. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_editor.scss +3 -0
  12. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_faqs.scss +1 -1
  13. data/app/controllers/application_controller.rb +1 -1
  14. data/app/controllers/messages_controller.rb +2 -5
  15. data/app/controllers/users_controller.rb +38 -1
  16. data/app/helpers/application_helper.rb +6 -2
  17. data/app/helpers/discussions_helper.rb +11 -4
  18. data/app/helpers/exam_registration_helper.rb +0 -4
  19. data/app/helpers/icons_helper.rb +1 -1
  20. data/app/helpers/menu_bar_helper.rb +7 -3
  21. data/app/helpers/messages_helper.rb +4 -8
  22. data/app/helpers/notifications_helper.rb +13 -0
  23. data/app/helpers/profile_helper.rb +4 -0
  24. data/app/helpers/time_zone_helper.rb +5 -0
  25. data/app/helpers/user_discussions_helper.rb +38 -0
  26. data/app/helpers/user_menu_helper.rb +4 -0
  27. data/app/mailers/user_mailer.rb +11 -1
  28. data/app/views/discussions/new.html.erb +1 -1
  29. data/app/views/layouts/_copyright.html.erb +1 -1
  30. data/app/views/layouts/_discussions.html.erb +1 -37
  31. data/app/views/layouts/_discussions_list.html.erb +38 -0
  32. data/app/views/layouts/_messages.html.erb +1 -7
  33. data/app/views/layouts/_user_menu.html.erb +1 -0
  34. data/app/views/layouts/exercise_inputs/forms/_interactive_form.html.erb +1 -1
  35. data/app/views/layouts/exercise_inputs/forms/_problem_form.html.erb +1 -1
  36. data/app/views/layouts/exercise_inputs/read_only_editors/_code.html.erb +1 -1
  37. data/app/views/layouts/exercise_inputs/read_only_editors/_multiple_files.html.erb +4 -4
  38. data/app/views/layouts/mailer.html.erb +7 -1
  39. data/app/views/notifications/_custom.html.erb +1 -0
  40. data/app/views/notifications/_dropdown.html.erb +2 -2
  41. data/app/views/notifications/_exam_authorization_request_updated.html.erb +2 -0
  42. data/app/views/notifications/_exam_registration.html.erb +2 -1
  43. data/app/views/notifications/previews/_custom.html.erb +1 -0
  44. data/app/views/notifications/previews/_discussion.html.erb +2 -0
  45. data/app/views/notifications/previews/_exam_authorization_request_updated.html.erb +2 -0
  46. data/app/views/notifications/previews/_exam_registration.html.erb +2 -0
  47. data/app/views/notifications/previews/_message.html.erb +2 -0
  48. data/app/views/user_mailer/1st_reminder.html.erb +7 -349
  49. data/app/views/user_mailer/1st_reminder.text.erb +1 -5
  50. data/app/views/user_mailer/2nd_reminder.html.erb +7 -349
  51. data/app/views/user_mailer/2nd_reminder.text.erb +1 -5
  52. data/app/views/user_mailer/3rd_reminder.html.erb +7 -349
  53. data/app/views/user_mailer/3rd_reminder.text.erb +1 -5
  54. data/app/views/user_mailer/_mail_template.erb +336 -0
  55. data/app/views/user_mailer/certificate.html.erb +7 -335
  56. data/app/views/user_mailer/certificate.text.erb +1 -4
  57. data/app/views/user_mailer/no_submissions_reminder.html.erb +7 -349
  58. data/app/views/user_mailer/no_submissions_reminder.text.erb +1 -5
  59. data/app/views/user_mailer/notification.html.erb +1 -0
  60. data/app/views/user_mailer/notification.text.erb +6 -0
  61. data/app/views/user_mailer/notifications/_custom.html.erb +11 -0
  62. data/app/views/user_mailer/notifications/_exam_authorization_request_updated.html.erb +1 -0
  63. data/app/views/user_mailer/notifications/_exam_registration.html.erb +7 -0
  64. data/app/views/user_mailer/notifications/exam_authorization_request_updated/_approved.html.erb +7 -0
  65. data/app/views/user_mailer/notifications/exam_authorization_request_updated/_rejected.html.erb +7 -0
  66. data/app/views/users/_basic_profile_fields.html.erb +30 -0
  67. data/app/views/users/_profile_fields.html.erb +1 -20
  68. data/app/views/users/discussions.html.erb +19 -11
  69. data/app/views/users/manage_notifications.html.erb +26 -0
  70. data/app/views/users/messages.html.erb +1 -1
  71. data/app/views/users/notifications.html.erb +54 -0
  72. data/config/routes.rb +4 -1
  73. data/lib/mumuki/laboratory.rb +1 -0
  74. data/lib/mumuki/laboratory/controllers/notifications.rb +2 -2
  75. data/lib/mumuki/laboratory/locales/en.yml +47 -7
  76. data/lib/mumuki/laboratory/locales/es-CL.yml +48 -7
  77. data/lib/mumuki/laboratory/locales/es.yml +49 -9
  78. data/lib/mumuki/laboratory/locales/pt.yml +46 -6
  79. data/lib/mumuki/laboratory/mailers/message_delivery.rb +15 -0
  80. data/lib/mumuki/laboratory/version.rb +1 -1
  81. data/spec/controllers/organizations_api_controller_spec.rb +6 -1
  82. data/spec/controllers/students_api_controller_spec.rb +1 -1
  83. data/spec/controllers/users_controller_spec.rb +48 -0
  84. data/spec/dummy/db/schema.rb +9 -1
  85. data/spec/features/not_found_public_flow_spec.rb +1 -1
  86. data/spec/features/notifications_flow_spec.rb +2 -1
  87. data/spec/features/profile_flow_spec.rb +1 -1
  88. data/spec/javascripts/editors-spec.js +21 -3
  89. data/spec/javascripts/submissions-store-spec.js +11 -0
  90. data/spec/mailers/previews/user_mailer_preview.rb +87 -1
  91. metadata +134 -115
  92. data/app/views/messages/errors.html.erb +0 -1
  93. data/app/views/notifications/_discussion.html.erb +0 -1
  94. data/app/views/notifications/_exam_authorization_request.html.erb +0 -1
  95. data/app/views/notifications/_message.html.erb +0 -1
@@ -1 +0,0 @@
1
- <p> <%= t :messages_error %> </p>
@@ -1 +0,0 @@
1
- <%= menu_item :comments, :new_discussion_message, url_for([target.item, target]), { title: target.item.name.truncate_words(3) } %>
@@ -1 +0,0 @@
1
- <%= menu_item :book_open, :exam_authorization_request_updated, exam_authorizations_user_path, { description: target.exam_registration.description } %>
@@ -1 +0,0 @@
1
- <%= menu_item :envelope, :new_message_received, url_for(target.exercise), { sender: target.sender } %>