mumuki-laboratory 8.4.0 → 9.0.1

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/upload.js +69 -14
  3. data/app/assets/stylesheets/mumuki_laboratory/application/_layout.scss +3 -0
  4. data/app/assets/stylesheets/mumuki_laboratory/application/_modules.scss +1 -0
  5. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_content_show.scss +15 -2
  6. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_discussion.scss +31 -8
  7. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_medal.scss +1 -1
  8. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_user_menu.scss +35 -0
  9. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_user_profile.scss +11 -0
  10. data/app/controllers/api/base_controller.rb +0 -1
  11. data/app/controllers/api/courses_controller.rb +1 -1
  12. data/app/controllers/api/organizations_controller.rb +5 -2
  13. data/app/controllers/api/roles_controller.rb +4 -0
  14. data/app/controllers/api/users_controller.rb +6 -1
  15. data/app/controllers/application_controller.rb +1 -1
  16. data/app/controllers/concerns/with_authorization.rb +1 -16
  17. data/app/controllers/concerns/with_user_params.rb +4 -0
  18. data/app/controllers/discussions_messages_controller.rb +0 -1
  19. data/app/controllers/exam_authorization_requests_controller.rb +26 -0
  20. data/app/controllers/exam_registrations_controller.rb +6 -0
  21. data/app/controllers/users_controller.rb +8 -5
  22. data/app/helpers/application_helper.rb +4 -0
  23. data/app/helpers/breadcrumbs_helper.rb +4 -0
  24. data/app/helpers/content_view_helper.rb +19 -0
  25. data/app/helpers/exercise_input_helper.rb +8 -17
  26. data/app/helpers/icons_helper.rb +3 -11
  27. data/app/helpers/links_helper.rb +3 -3
  28. data/app/helpers/menu_bar_helper.rb +3 -3
  29. data/app/helpers/progress_bar_helper.rb +2 -2
  30. data/app/helpers/user_menu_helper.rb +18 -0
  31. data/app/views/chapters/show.html.erb +17 -16
  32. data/app/views/complements/show.html.erb +1 -1
  33. data/app/views/discussions/_message.html.erb +7 -7
  34. data/app/views/exam_authorization_requests/show.html.erb +17 -0
  35. data/app/views/exam_registrations/show.html.erb +37 -0
  36. data/app/views/exams/show.html.erb +1 -1
  37. data/app/views/{layouts → exercises}/_exercise_skipped.html.erb +0 -0
  38. data/app/views/exercises/_exercise_title_icons.html.erb +4 -0
  39. data/app/views/exercises/show.html.erb +5 -8
  40. data/app/views/{layouts → guides}/_guide.html.erb +3 -3
  41. data/app/views/guides/_guide_container.html.erb +24 -0
  42. data/app/views/{layouts → guides}/_guide_title_icons.html.erb +1 -3
  43. data/app/views/layouts/_progress_bar.html.erb +9 -7
  44. data/app/views/layouts/_progress_listing.html.erb +5 -5
  45. data/app/views/layouts/_user_menu.html.erb +21 -0
  46. data/app/views/layouts/application.html.erb +1 -6
  47. data/app/views/layouts/exercise_inputs/editors/_upload.html.erb +11 -2
  48. data/app/views/lessons/show.html.erb +1 -1
  49. data/app/views/notifications/_discussion.html.erb +1 -0
  50. data/app/views/notifications/_dropdown.html.erb +13 -0
  51. data/app/views/notifications/_exam_authorization_request.html.erb +1 -0
  52. data/app/views/notifications/_exam_registration.html.erb +1 -0
  53. data/app/views/notifications/_message.html.erb +1 -0
  54. data/app/views/users/_user_form.html.erb +10 -8
  55. data/app/views/users/discussions.html.erb +28 -0
  56. data/app/views/users/edit.html.erb +1 -1
  57. data/app/views/users/messages.html.erb +27 -0
  58. data/app/views/users/show.html.erb +4 -51
  59. data/app/views/users/terms.html.erb +2 -2
  60. data/config/routes.rb +6 -0
  61. data/lib/mumuki/laboratory/controllers/notifications.rb +3 -22
  62. data/lib/mumuki/laboratory/locales/en.yml +34 -17
  63. data/lib/mumuki/laboratory/locales/es-CL.yml +25 -8
  64. data/lib/mumuki/laboratory/locales/es.yml +30 -14
  65. data/lib/mumuki/laboratory/locales/pt.yml +27 -10
  66. data/lib/mumuki/laboratory/version.rb +1 -1
  67. data/spec/controllers/exam_authorization_requests_controller_spec.rb +40 -0
  68. data/spec/controllers/exam_registrations_controller_spec.rb +19 -0
  69. data/spec/controllers/organizations_api_controller_spec.rb +16 -9
  70. data/spec/dummy/db/schema.rb +23 -0
  71. data/spec/features/exercise_flow_spec.rb +3 -3
  72. data/spec/features/login_flow_spec.rb +1 -1
  73. data/spec/features/menu_bar_spec.rb +24 -24
  74. data/spec/features/notifications_flow_spec.rb +46 -0
  75. data/spec/features/profile_flow_spec.rb +6 -9
  76. data/spec/features/terms_flow_spec.rb +30 -0
  77. data/spec/helpers/application_helper_spec.rb +10 -0
  78. data/spec/javascripts/bridge-spec.js +2 -2
  79. data/spec/javascripts/csrf-token-spec.js +2 -2
  80. data/spec/javascripts/editors-spec.js +7 -9
  81. data/spec/javascripts/elipsis-spec.js +4 -4
  82. data/spec/javascripts/events-spec.js +7 -7
  83. data/spec/javascripts/exercise-spec.js +7 -8
  84. data/spec/javascripts/global-spec.js +3 -3
  85. data/spec/javascripts/i18n-spec.js +23 -20
  86. data/spec/javascripts/kids-button-spec.js +6 -8
  87. data/spec/javascripts/results-renderers-spec.js +5 -5
  88. data/spec/javascripts/speech-bubble-renderer-spec.js +2 -3
  89. data/spec/javascripts/submissions-store-spec.js +14 -14
  90. data/spec/javascripts/sync-mode-spec.js +3 -3
  91. data/spec/javascripts/timeout-spec.js +2 -2
  92. data/spec/javascripts/timer-spec.js +2 -2
  93. data/spec/javascripts/upload-spec.js +80 -0
  94. metadata +132 -108
  95. data/app/views/layouts/_guide_container.html.erb +0 -28
@@ -1,28 +0,0 @@
1
- <%= content_for :breadcrumbs do %>
2
- <%= breadcrumbs subject %>
3
- <% end %>
4
-
5
- <%= render layout: 'layouts/guide', locals: { subject: subject } do %>
6
-
7
- <div class="row">
8
- <div class="mu-inline-block-right">
9
- <h1><%= language_icon @guide.language %></h1>
10
- </div>
11
- <div class="mu-inline-block-left guide-header">
12
- <h1 class="pull-left">
13
- <span class="pull-left">
14
- <%= subject.name %>
15
- </span>
16
- <%= render partial: 'layouts/guide_title_icons' %>
17
- </h1>
18
- </div>
19
- </div>
20
- <div class="row">
21
- <div class="col-md-12">
22
- <div class="text-box">
23
- <%= @guide.description_html %>
24
- </div>
25
- </div>
26
- </div>
27
-
28
- <% end %>