mumuki-laboratory 9.9.0 → 9.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) 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/progress.js +4 -4
  6. data/app/assets/javascripts/mumuki_laboratory/application/results-renderer.js +12 -1
  7. data/app/assets/javascripts/mumuki_laboratory/application/submissions-store.js +8 -2
  8. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_discussion.scss +32 -34
  9. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_dropdown.scss +11 -0
  10. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_faqs.scss +1 -1
  11. data/app/controllers/application_controller.rb +1 -1
  12. data/app/controllers/users_controller.rb +38 -1
  13. data/app/helpers/application_helper.rb +2 -2
  14. data/app/helpers/discussions_helper.rb +11 -4
  15. data/app/helpers/icons_helper.rb +1 -1
  16. data/app/helpers/menu_bar_helper.rb +7 -3
  17. data/app/helpers/notifications_helper.rb +13 -0
  18. data/app/helpers/time_zone_helper.rb +5 -0
  19. data/app/helpers/user_discussions_helper.rb +38 -0
  20. data/app/helpers/user_menu_helper.rb +4 -0
  21. data/app/mailers/user_mailer.rb +11 -1
  22. data/app/views/discussions/new.html.erb +1 -1
  23. data/app/views/layouts/_discussions.html.erb +1 -37
  24. data/app/views/layouts/_discussions_list.html.erb +38 -0
  25. data/app/views/layouts/_user_menu.html.erb +1 -0
  26. data/app/views/layouts/exercise_inputs/read_only_editors/_code.html.erb +1 -1
  27. data/app/views/layouts/exercise_inputs/read_only_editors/_multiple_files.html.erb +4 -4
  28. data/app/views/layouts/mailer.html.erb +7 -1
  29. data/app/views/notifications/_custom.html.erb +1 -0
  30. data/app/views/notifications/_dropdown.html.erb +2 -2
  31. data/app/views/notifications/_exam_authorization_request_updated.html.erb +2 -0
  32. data/app/views/notifications/_exam_registration.html.erb +2 -1
  33. data/app/views/notifications/previews/_custom.html.erb +1 -0
  34. data/app/views/notifications/previews/_discussion.html.erb +2 -0
  35. data/app/views/notifications/previews/_exam_authorization_request_updated.html.erb +2 -0
  36. data/app/views/notifications/previews/_exam_registration.html.erb +2 -0
  37. data/app/views/notifications/previews/_message.html.erb +2 -0
  38. data/app/views/user_mailer/1st_reminder.html.erb +7 -349
  39. data/app/views/user_mailer/1st_reminder.text.erb +0 -4
  40. data/app/views/user_mailer/2nd_reminder.html.erb +7 -349
  41. data/app/views/user_mailer/2nd_reminder.text.erb +0 -4
  42. data/app/views/user_mailer/3rd_reminder.html.erb +7 -349
  43. data/app/views/user_mailer/3rd_reminder.text.erb +0 -4
  44. data/app/views/user_mailer/_mail_template.erb +336 -0
  45. data/app/views/user_mailer/certificate.html.erb +7 -335
  46. data/app/views/user_mailer/certificate.text.erb +0 -3
  47. data/app/views/user_mailer/no_submissions_reminder.html.erb +7 -349
  48. data/app/views/user_mailer/no_submissions_reminder.text.erb +0 -4
  49. data/app/views/user_mailer/notification.html.erb +1 -0
  50. data/app/views/user_mailer/notification.text.erb +6 -0
  51. data/app/views/user_mailer/notifications/_custom.html.erb +11 -0
  52. data/app/views/user_mailer/notifications/_exam_authorization_request_updated.html.erb +1 -0
  53. data/app/views/user_mailer/notifications/_exam_registration.html.erb +7 -0
  54. data/app/views/user_mailer/notifications/exam_authorization_request_updated/_approved.html.erb +7 -0
  55. data/app/views/user_mailer/notifications/exam_authorization_request_updated/_rejected.html.erb +7 -0
  56. data/app/views/users/discussions.html.erb +19 -11
  57. data/app/views/users/manage_notifications.html.erb +26 -0
  58. data/app/views/users/notifications.html.erb +54 -0
  59. data/config/routes.rb +4 -0
  60. data/lib/mumuki/laboratory.rb +1 -0
  61. data/lib/mumuki/laboratory/controllers/notifications.rb +2 -2
  62. data/lib/mumuki/laboratory/locales/en.yml +45 -5
  63. data/lib/mumuki/laboratory/locales/es-CL.yml +46 -5
  64. data/lib/mumuki/laboratory/locales/es.yml +47 -7
  65. data/lib/mumuki/laboratory/locales/pt.yml +44 -4
  66. data/lib/mumuki/laboratory/mailers/message_delivery.rb +15 -0
  67. data/lib/mumuki/laboratory/version.rb +1 -1
  68. data/spec/controllers/users_controller_spec.rb +48 -0
  69. data/spec/dummy/db/schema.rb +7 -1
  70. data/spec/features/notifications_flow_spec.rb +2 -1
  71. data/spec/javascripts/editors-spec.js +21 -3
  72. data/spec/javascripts/submissions-store-spec.js +11 -0
  73. data/spec/mailers/previews/user_mailer_preview.rb +87 -1
  74. metadata +135 -116
  75. data/app/views/notifications/_discussion.html.erb +0 -1
  76. data/app/views/notifications/_exam_authorization_request.html.erb +0 -1
  77. data/app/views/notifications/_message.html.erb +0 -1
@@ -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 } %>