mumuki-laboratory 9.0.2 → 9.1.0
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 +49 -8
- data/app/assets/javascripts/mumuki_laboratory/application/faqs.js +14 -4
- 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/organization.js +32 -0
- 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/submissions-store.js +1 -1
- 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/javascripts/mumuki_laboratory/application/user.js +49 -5
- 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 +1 -2
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_activity.scss +14 -0
- 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 +49 -59
- 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 +30 -8
- 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 +38 -3
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_user_profile.scss +1 -2
- data/app/controllers/application_controller.rb +4 -2
- data/app/controllers/discussions_messages_controller.rb +9 -3
- data/app/controllers/users_controller.rb +13 -0
- 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 +64 -23
- 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 +48 -0
- data/app/helpers/user_menu_helper.rb +24 -6
- 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/_description_message.html.erb +1 -1
- data/app/views/discussions/_message.html.erb +32 -7
- data/app/views/discussions/_new_message.html.erb +13 -2
- data/app/views/discussions/index.html.erb +8 -10
- data/app/views/discussions/new.html.erb +2 -2
- 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/faqs/index.html.erb +5 -1
- 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 +10 -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 +13 -20
- 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 +17 -0
- 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 +37 -0
- 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/config/routes.rb +3 -0
- data/lib/mumuki/laboratory.rb +1 -1
- data/lib/mumuki/laboratory/extensions.rb +1 -0
- data/lib/mumuki/laboratory/extensions/date_and_time.rb +11 -0
- data/lib/mumuki/laboratory/locales/en.yml +28 -2
- data/lib/mumuki/laboratory/locales/es-CL.yml +33 -4
- data/lib/mumuki/laboratory/locales/es.yml +33 -4
- data/lib/mumuki/laboratory/locales/pt.yml +34 -3
- data/lib/mumuki/laboratory/version.rb +1 -1
- data/spec/capybara_helper.rb +1 -0
- data/spec/controllers/discussions_messages_controller_spec.rb +84 -3
- data/spec/dummy/db/schema.rb +23 -3
- data/spec/features/discussion_flow_spec.rb +22 -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/features/user_activity_flow_spec.rb +65 -0
- data/spec/helpers/breadcrumbs_helper_spec.rb +2 -2
- data/spec/helpers/user_activity_helper_spec.rb +32 -0
- data/spec/helpers/with_navigation_spec.rb +36 -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 +133 -123
- 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
@@ -13,6 +13,9 @@ es-CL:
|
|
13
13
|
appendix_teaser: ¿Quieres saber más? <a href="%{link}">Consulta el apéndice de este capítulo</a>
|
14
14
|
are_you_sure: '¿Estás seguro que quieres %{action}?'
|
15
15
|
ask_a_question: ¡Haz una pregunta!
|
16
|
+
approved_messages:
|
17
|
+
one: validado
|
18
|
+
other: validados
|
16
19
|
ask_community: Pregunta a la comunidad
|
17
20
|
ask_redirect: ¿Quieres que te llevemos ahí?
|
18
21
|
ask_the_first_question: ¡Haz la primera pregunta!
|
@@ -62,6 +65,18 @@ es-CL:
|
|
62
65
|
created_exercises: Ejercicios Creados
|
63
66
|
created_guides: Lecciones Creadas
|
64
67
|
date: Fecha
|
68
|
+
deleted_by: Eliminado por %{deleter}
|
69
|
+
deleted_message_warning: Si infringes reiteradamente estas u otras reglas del Espacio de Consultas, se te puede prohibir el acceso al mismo o podrás sufrir consecuencias más severas, como la expulsión del curso.
|
70
|
+
deletion_motive:
|
71
|
+
inappropriate_content:
|
72
|
+
present: Incluye contenido inapropiado
|
73
|
+
past: Incluía contenido inapropiado
|
74
|
+
shares_solution:
|
75
|
+
present: Comparte la solución correcta
|
76
|
+
past: Compartía la solución correcta
|
77
|
+
discloses_personal_information:
|
78
|
+
present: Divulga información personal
|
79
|
+
past: Divulgaba información personal
|
65
80
|
day: Día
|
66
81
|
days: Días
|
67
82
|
description: Descripción
|
@@ -77,6 +92,7 @@ es-CL:
|
|
77
92
|
dont_leave_us: ¡No nos abandones! Aprender a programar es divertido. Sólo tienes que seguir practicando.
|
78
93
|
download: "Descarga lo que hiciste"
|
79
94
|
edit: Editar
|
95
|
+
edit_message: Editar mensaje
|
80
96
|
editor_placeholder: "...escribe tu solución acá..."
|
81
97
|
email: Email
|
82
98
|
error_description: Esto es lo que se conoce como <span class="error-link">%{error}</span>.
|
@@ -172,8 +188,12 @@ es-CL:
|
|
172
188
|
one: 1 mensaje
|
173
189
|
other: '%{count} mensajes'
|
174
190
|
message: Mensaje
|
191
|
+
message_deleted: Este mensaje fue eliminado porque %{motive}, lo cual infringe las %{forum_terms}.
|
175
192
|
messages: Mensajes
|
176
193
|
messages_error: Los mensajes anteriores no están disponibles en este momento. ¡Vuelve a intentar más tarde!
|
194
|
+
messages_pluralized:
|
195
|
+
one: Mensaje
|
196
|
+
other: Mensajes
|
177
197
|
minute: minuto
|
178
198
|
minutes: minutos
|
179
199
|
moderation: Mentoría
|
@@ -230,6 +250,8 @@ es-CL:
|
|
230
250
|
permissions: Permisos
|
231
251
|
please_fill_profile_data: ¡Completa tus datos personales para continuar!
|
232
252
|
please_validate: 'Estás a punto de ingresar al curso. Para poder ofrecerte una mejor experiencia, por favor valida que tus datos a continuación sean reales y correctos.'
|
253
|
+
preview: Vista previa
|
254
|
+
preview_error: No se puede mostrar la vista previa. Revisa tu conexión a internet o prueba con un mensaje más corto.
|
233
255
|
previous_exercise: Anterior
|
234
256
|
problem_with_exercise: '[Mumuki] Error con el ejercicio: %{title}'
|
235
257
|
processing_your_solution: Estamos procesando tu solución
|
@@ -250,6 +272,7 @@ es-CL:
|
|
250
272
|
send: Enviar
|
251
273
|
sending_solution: Enviando solución
|
252
274
|
show: Mostrar
|
275
|
+
show_message: Mostrar mensaje
|
253
276
|
sign_in: Inicia sesión
|
254
277
|
sign_in_action: iniciar sesión
|
255
278
|
sign_out: Cerrar Sesión
|
@@ -260,15 +283,19 @@ es-CL:
|
|
260
283
|
skipped_solve_anyway: Resolver de todos modos
|
261
284
|
solution: Solución
|
262
285
|
solved: Resuelta
|
263
|
-
solved_count:
|
264
|
-
one: 1 resuelta
|
265
|
-
other: '%{count} resueltas'
|
266
286
|
solved_exercises: Ejercicios Resueltos
|
267
287
|
solve_doubts: Resuelve consultas
|
268
288
|
solve_more_exercises_to_level_up: Resuelve <span>number</span> ejercicios más para pasar al siguiente nivel.
|
269
289
|
solve_your_doubts: Consulta tus dudas
|
270
290
|
solve_your_doubts_teaser: ¿Tienes alguna consulta?
|
271
291
|
something_went_wrong: ¡Ups!, algo no anduvo bien...
|
292
|
+
solved_count:
|
293
|
+
one: 1 resuelta
|
294
|
+
other: '%{count} resueltas'
|
295
|
+
solved_exercises_count:
|
296
|
+
one: resuelto
|
297
|
+
other: resueltos
|
298
|
+
solved_exercises_percentage: realizado
|
272
299
|
sort: Ordenar
|
273
300
|
sources: Bibliografía
|
274
301
|
start_lesson: ¡Comienza esta lección!
|
@@ -300,6 +327,7 @@ es-CL:
|
|
300
327
|
to_pending_review: Resolver
|
301
328
|
to_solved: Resolver
|
302
329
|
unauthorized_explanation: ¡Ups! Esto es lo que se conoce como %{error}, es decir que no iniciaste sesión.
|
330
|
+
total: Total
|
303
331
|
uncategorized: No categorizado
|
304
332
|
undo_upvote: No es útil
|
305
333
|
unlocked_medal_as_avatar: ¡Obtuviste esta medalla! Ya puedes elegirla como avatar.
|
@@ -316,8 +344,9 @@ es-CL:
|
|
316
344
|
user: Usuario
|
317
345
|
username: Nombre de usuario
|
318
346
|
view_details: Ver detalles
|
319
|
-
want_permissions: El siguiente usuario requiere permisos
|
347
|
+
want_permissions: El siguiente usuario requiere permisos para la organización
|
320
348
|
we_miss_you: ¡Te extrañamos!
|
349
|
+
week_of: Semana del %{date}
|
321
350
|
will_paginate:
|
322
351
|
previous_label: "← Anterior"
|
323
352
|
next_label: "Siguiente →"
|
@@ -17,6 +17,9 @@ es:
|
|
17
17
|
approved_message: Validado por mentor
|
18
18
|
are_you_sure: '¿Estás seguro que querés %{action}?'
|
19
19
|
ask_a_question: ¡Hacé una pregunta!
|
20
|
+
approved_messages:
|
21
|
+
one: validado
|
22
|
+
other: validados
|
20
23
|
ask_community: Preguntá a la comunidad
|
21
24
|
ask_redirect: ¿Querés que te llevemos ahí?
|
22
25
|
ask_the_first_question: ¡Hacé la primera pregunta!
|
@@ -68,6 +71,18 @@ es:
|
|
68
71
|
created_exercises: Ejercicios Creados
|
69
72
|
created_guides: Lecciones Creadas
|
70
73
|
date: Fecha
|
74
|
+
deleted_by: Eliminado por %{deleter}
|
75
|
+
deleted_message_warning: Si infringís reiteradamente estas u otras reglas del Espacio de Consultas, se te puede prohibir el acceso al mismo o podrás sufrir consecuencias más severas, como la expulsión del curso.
|
76
|
+
deletion_motive:
|
77
|
+
inappropriate_content:
|
78
|
+
present: Incluye contenido inapropiado
|
79
|
+
past: Incluía contenido inapropiado
|
80
|
+
shares_solution:
|
81
|
+
present: Comparte la solución correcta
|
82
|
+
past: Compartía la solución correcta
|
83
|
+
discloses_personal_information:
|
84
|
+
present: Divulga información personal
|
85
|
+
past: Divulgaba información personal
|
71
86
|
day: Día
|
72
87
|
days: Días
|
73
88
|
description: Descripción
|
@@ -84,6 +99,7 @@ es:
|
|
84
99
|
dont_leave_us: ¡No nos abandones! Aprender a programar es divertido. Sólo tenés que seguir practicando.
|
85
100
|
download: "Descargá lo que hiciste"
|
86
101
|
edit: Editar
|
102
|
+
edit_message: Editar mensaje
|
87
103
|
edit_profile: Editar perfil
|
88
104
|
editor_placeholder: "...escribí tu solución acá..."
|
89
105
|
email: Email
|
@@ -183,8 +199,12 @@ es:
|
|
183
199
|
one: 1 mensaje
|
184
200
|
other: '%{count} mensajes'
|
185
201
|
message: Mensaje
|
202
|
+
message_deleted: Este mensaje fue eliminado porque %{motive}, lo cual infringe las %{forum_terms}.
|
186
203
|
messages: Mensajes
|
187
204
|
messages_error: Los mensajes anteriores no están disponibles en este momento. ¡Volvé a intentar mas tarde!
|
205
|
+
messages_pluralized:
|
206
|
+
one: Mensaje
|
207
|
+
other: Mensajes
|
188
208
|
minute: minuto
|
189
209
|
minutes: minutos
|
190
210
|
moderation: Mentoría
|
@@ -241,6 +261,8 @@ es:
|
|
241
261
|
permissions: Permisos
|
242
262
|
please_fill_profile_data: ¡Completá tus datos personales para continuar!
|
243
263
|
please_validate: 'Estás a punto de ingresar al curso. Para poder ofrecerte una mejor experiencia, por favor validá que tus datos a continuación sean reales y correctos.'
|
264
|
+
preview: Vista previa
|
265
|
+
preview_error: No se puede mostrar la vista previa. Revisá tu conexión a internet o probá con un mensaje más corto.
|
244
266
|
previous_exercise: Anterior
|
245
267
|
problem_with_exercise: '[Mumuki] Error con el ejercicio: %{title}'
|
246
268
|
processing_your_solution: Estamos procesando tu solución
|
@@ -265,6 +287,7 @@ es:
|
|
265
287
|
send: Enviar
|
266
288
|
sending_solution: Enviando solución
|
267
289
|
show: Mostrar
|
290
|
+
show_message: Mostrar mensaje
|
268
291
|
sign_in: Iniciá sesión
|
269
292
|
sign_in_action: iniciar sesión
|
270
293
|
sign_out: Cerrar Sesión
|
@@ -275,15 +298,19 @@ es:
|
|
275
298
|
skipped_solve_anyway: Resolver de todos modos
|
276
299
|
solution: Solución
|
277
300
|
solved: Resuelta
|
278
|
-
solved_count:
|
279
|
-
one: 1 resuelta
|
280
|
-
other: '%{count} resueltas'
|
281
301
|
solved_exercises: Ejercicios Resueltos
|
282
302
|
solve_doubts: Resolvé consultas
|
283
303
|
solve_more_exercises_to_level_up: Resolvé <span>number</span> ejercicios más para pasar al siguiente nivel.
|
284
304
|
solve_your_doubts: Consultá tus dudas
|
285
305
|
solve_your_doubts_teaser: ¿Tenés alguna consulta?
|
286
306
|
something_went_wrong: ¡Ups!, algo no anduvo bien...
|
307
|
+
solved_count:
|
308
|
+
one: 1 resuelta
|
309
|
+
other: '%{count} resueltas'
|
310
|
+
solved_exercises_count:
|
311
|
+
one: resuelto
|
312
|
+
other: resueltos
|
313
|
+
solved_exercises_percentage: realizado
|
287
314
|
sort: Ordenar
|
288
315
|
sources: Bibliografía
|
289
316
|
start_lesson: ¡Comenzá esta lección!
|
@@ -316,6 +343,7 @@ es:
|
|
316
343
|
to_pending_review: Resolver
|
317
344
|
to_solved: Resolver
|
318
345
|
unauthorized_explanation: ¡Ups! Esto es lo que se conoce como %{error}, es decir que no iniciaste sesión.
|
346
|
+
total: Total
|
319
347
|
uncategorized: No categorizado
|
320
348
|
undo_upvote: No es útil
|
321
349
|
unlocked_medal_as_avatar: ¡Obtuviste esta medalla! Ya podés elegirla como avatar.
|
@@ -332,9 +360,10 @@ es:
|
|
332
360
|
user: Usuario
|
333
361
|
username: Nombre de usuario
|
334
362
|
view_details: Ver detalles
|
335
|
-
want_permissions: El siguiente usuario requiere permisos
|
363
|
+
want_permissions: El siguiente usuario requiere permisos para la organización
|
336
364
|
we_miss_you: ¡Te extrañamos!
|
337
365
|
welcome: ¡Te damos la bienvenida a %{name}!
|
366
|
+
week_of: Semana del %{date}
|
338
367
|
will_paginate:
|
339
368
|
previous_label: "← Anterior"
|
340
369
|
next_label: "Siguiente →"
|
@@ -1,4 +1,3 @@
|
|
1
|
-
---
|
2
1
|
pt:
|
3
2
|
aborted: Opa, não pudemos avaliar sua solução
|
4
3
|
abort_explanation_html: <li>Verifique se o seu programa não possui recursão ou um loop infinito</li> <li>Verifique se você tem uma conexão com a internet</li> <li>Espere um pouco e tente novamente</li>
|
@@ -16,6 +15,9 @@ pt:
|
|
16
15
|
appendix_teaser: Você quer saber mais? <a href="%{link}"> Consulte o apêndice deste capítulo </a>
|
17
16
|
approved_message: Validado pelo mentor
|
18
17
|
are_you_sure: 'Tem certeza de que deseja %{action}?'
|
18
|
+
approved_messages:
|
19
|
+
one: validado
|
20
|
+
other: validados
|
19
21
|
ask_a_question: Faça uma pergunta!
|
20
22
|
ask_community: Pergunte à comunidade
|
21
23
|
ask_redirect: Você quer que nós o levemos para lá?
|
@@ -65,6 +67,18 @@ pt:
|
|
65
67
|
created_exercises: Exercícios criados
|
66
68
|
created_guides: Lições criadas
|
67
69
|
date: Data
|
70
|
+
deleted_by: Removido pelo
|
71
|
+
deleted_message_warning: Se você violar repetidamente essas ou outras regras da Área de Consulta, seu acesso a ela pode ser proibido ou você pode sofrer consequências mais graves, como a expulsão do curso.
|
72
|
+
deletion_motive:
|
73
|
+
inappropriate_content:
|
74
|
+
present: Inclui conteúdo impróprio
|
75
|
+
past: Incluiu conteúdo impróprio
|
76
|
+
shares_solution:
|
77
|
+
present: Compartilhe a solução correta
|
78
|
+
past: Compartilhou a solução correta
|
79
|
+
discloses_personal_information:
|
80
|
+
present: Divulga informações pessoais
|
81
|
+
past: Divulgar informações pessoais
|
68
82
|
day: Dia
|
69
83
|
days: Dias
|
70
84
|
description: Descrição
|
@@ -80,6 +94,7 @@ pt:
|
|
80
94
|
discussions_will_be_here: As perguntas que você fizer no espaço de consulta aparecerão aqui.
|
81
95
|
download: Faça o download do que você fez
|
82
96
|
edit: Editar
|
97
|
+
edit_message: Editar mensagem
|
83
98
|
edit_profile: Editar perfil
|
84
99
|
editor_placeholder: ... Escreva sua solução aqui ...
|
85
100
|
email: E-mail
|
@@ -177,8 +192,13 @@ pt:
|
|
177
192
|
one: 1 mensagem
|
178
193
|
other: '%{count} mensagens'
|
179
194
|
message: Mensagem
|
195
|
+
message_deleted: Esta mensagem foi excluída porque %{motive}, o que viola as %{forum_terms}.
|
180
196
|
messages: Mensagens
|
181
197
|
messages_error: As mensagens acima não estão disponíveis no momento. Eu tentei novamente mais tarde!
|
198
|
+
mais tarde!
|
199
|
+
messages_pluralized:
|
200
|
+
one: Mensagem
|
201
|
+
other: Mensagens
|
182
202
|
minute: minuto
|
183
203
|
minutes: minutos
|
184
204
|
moderation: Mentoria
|
@@ -232,6 +252,8 @@ pt:
|
|
232
252
|
permissions: Permissões
|
233
253
|
please_fill_profile_data: Preencha suas informações pessoais para continuar!
|
234
254
|
please_validate: Você está prestes a entrar no curso. Para oferecer uma experiência melhor, valide que seus dados abaixo sejam reais e corretos.
|
255
|
+
preview: Vista prévia
|
256
|
+
preview_error: A visualizaçao não pode ser mostrada. Verifique sua conexão com a internet ou tente com uma mensagem mais curta.
|
235
257
|
previous_exercise: Anterior
|
236
258
|
problem_with_exercise: '[Mumuki] Erro com exercício %{title}'
|
237
259
|
processing_your_solution: Estamos processando sua solução
|
@@ -254,6 +276,7 @@ pt:
|
|
254
276
|
send: Enviar
|
255
277
|
sending_solution: Solução de envio
|
256
278
|
show: Mostrar
|
279
|
+
show_message: Mostrar mensagem
|
257
280
|
sign_in: Iniciar sessão
|
258
281
|
sign_in_action: iniciar sessão
|
259
282
|
sign_out: Fechar Sessão
|
@@ -264,12 +287,18 @@ pt:
|
|
264
287
|
skipped_solve_anyway: Resolver mesmo assim
|
265
288
|
solution: Solução
|
266
289
|
solved: Resolvido
|
267
|
-
solved_count: '%{count} resolvido'
|
268
290
|
solved_exercises: Exercícios resolvidos
|
291
|
+
solved_count:
|
292
|
+
one: 1 resolvido
|
293
|
+
other: '%{count} resolvidos'
|
269
294
|
solve_doubts: Resolvi dúvidas
|
270
295
|
solve_more_exercises_to_level_up: Resolva mais <span>number</span> exercícios para avançar para o próximo nível.
|
271
296
|
solve_your_doubts: Consulte suas dúvidas
|
272
297
|
solve_your_doubts_teaser: Você tem alguma dúvida?
|
298
|
+
solved_exercises_count:
|
299
|
+
one: resolvido
|
300
|
+
other: resolvidos
|
301
|
+
solved_exercises_percentage: realizado
|
273
302
|
something_went_wrong: Oops!, Algo não estava certo ...
|
274
303
|
sort: Ordenar
|
275
304
|
sources: Bibliografia
|
@@ -301,6 +330,7 @@ pt:
|
|
301
330
|
to_pending_review: Marcar como resolvida
|
302
331
|
to_solved: Marcar como resolvida
|
303
332
|
unauthorized_explanation: Opa! Isso é o que é conhecido como %{error}, ou seja, você não fez logon.
|
333
|
+
total: Total
|
304
334
|
uncategorized: Não classificado
|
305
335
|
unlocked_medal_as_avatar: Você ganhou essa medalha! Agora você pode escolhê-la como avatar.
|
306
336
|
unspecified: Eu preferiria não dizer
|
@@ -312,7 +342,8 @@ pt:
|
|
312
342
|
user_data_updated: Os seus dados foram atualizados corretamente
|
313
343
|
username: Nome de usuário
|
314
344
|
view_details: Ver detalhes
|
315
|
-
want_permissions: O próximo usuário requer permissões
|
345
|
+
want_permissions: O próximo usuário requer permissões para a organização
|
346
|
+
week_of: Semana de %{date}
|
316
347
|
welcome: Convidamos você a {name}!
|
317
348
|
working: Processamento
|
318
349
|
wrong_answer: A resposta não é correta
|
data/spec/capybara_helper.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe DiscussionsMessagesController, organization_workspace: :test do
|
3
|
+
describe DiscussionsMessagesController, type: :controller, organization_workspace: :test do
|
4
4
|
let(:student) { create(:user, permissions: {student: 'test/*'}) }
|
5
5
|
let(:moderator) { create(:user, permissions: {moderator: 'test/*', student: 'test/*'}) }
|
6
6
|
|
@@ -31,6 +31,68 @@ describe DiscussionsMessagesController, organization_workspace: :test do
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
+
describe 'delete' do
|
35
|
+
let(:message) { create(:message, discussion: discussion, sender: student.uid) }
|
36
|
+
|
37
|
+
describe 'for student' do
|
38
|
+
before { set_current_user! student }
|
39
|
+
|
40
|
+
describe 'own message with permitted motive' do
|
41
|
+
before do
|
42
|
+
delete :destroy, params: {id: message.id, discussion_id: discussion.id, motive: :self_deleted}
|
43
|
+
message.reload
|
44
|
+
end
|
45
|
+
|
46
|
+
it { expect(response.status).to eq 302 }
|
47
|
+
it { expect(message.deleted?).to be true }
|
48
|
+
it { expect(message.deleted_by).to eq student }
|
49
|
+
it { expect(message.deleted_at).to_not eq nil }
|
50
|
+
it { expect(message.deletion_motive).to eq 'self_deleted' }
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'own message with forbidden motive' do
|
54
|
+
before do
|
55
|
+
delete :destroy, params: {id: message.id, discussion_id: discussion.id, motive: :shares_solution}
|
56
|
+
message.reload
|
57
|
+
end
|
58
|
+
|
59
|
+
it { expect(response.status).to eq 403 }
|
60
|
+
it { expect(message.deleted?).to be false }
|
61
|
+
it { expect(message.deleted_by).to eq nil }
|
62
|
+
it { expect(message.deleted_at).to eq nil }
|
63
|
+
it { expect(message.deletion_motive).to eq nil }
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'someone else\'s message' do
|
67
|
+
let(:message) { create(:message, discussion: discussion, sender: moderator.uid) }
|
68
|
+
before do
|
69
|
+
delete :destroy, params: {id: message.id, discussion_id: discussion.id, motive: :self_deleted}
|
70
|
+
message.reload
|
71
|
+
end
|
72
|
+
|
73
|
+
it { expect(response.status).to eq 403 }
|
74
|
+
it { expect(message.deleted?).to be false }
|
75
|
+
it { expect(message.deleted_by).to eq nil }
|
76
|
+
it { expect(message.deleted_at).to eq nil }
|
77
|
+
it { expect(message.deletion_motive).to eq nil }
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
describe 'for moderator' do
|
82
|
+
before do
|
83
|
+
set_current_user! moderator
|
84
|
+
delete :destroy, params: {id: message.id, discussion_id: discussion.id, motive: :inappropriate_content}
|
85
|
+
message.reload
|
86
|
+
end
|
87
|
+
|
88
|
+
it { expect(response.status).to eq 302 }
|
89
|
+
it { expect(message.deleted?).to be true }
|
90
|
+
it { expect(message.deleted_by).to eq moderator }
|
91
|
+
it { expect(message.deleted_at).to_not eq nil }
|
92
|
+
it { expect(message.deletion_motive).to eq 'inappropriate_content' }
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
34
96
|
describe 'approve' do
|
35
97
|
let(:message) { create(:message, discussion: discussion, sender: student.uid) }
|
36
98
|
|
@@ -42,7 +104,7 @@ describe DiscussionsMessagesController, organization_workspace: :test do
|
|
42
104
|
it { expect(message.reload.approved).to be false }
|
43
105
|
end
|
44
106
|
|
45
|
-
describe 'for
|
107
|
+
describe 'for moderator' do
|
46
108
|
before { set_current_user! moderator }
|
47
109
|
before { post :approve, params: {id: message.id, discussion_id: discussion.id} }
|
48
110
|
|
@@ -62,12 +124,31 @@ describe DiscussionsMessagesController, organization_workspace: :test do
|
|
62
124
|
it { expect(message.reload.not_actually_a_question).to be false }
|
63
125
|
end
|
64
126
|
|
65
|
-
describe 'for
|
127
|
+
describe 'for moderator' do
|
66
128
|
before { set_current_user! moderator }
|
67
129
|
before { post :question, params: {id: message.id, discussion_id: discussion.id} }
|
68
130
|
|
69
131
|
it { expect(response.status).to eq 200 }
|
70
132
|
it { expect(message.reload.not_actually_a_question).to be true }
|
71
133
|
end
|
134
|
+
|
135
|
+
describe 'preview' do
|
136
|
+
let(:message) { create(:message, content: 'Message in **bold** and _italics_', discussion: discussion, sender: student.uid) }
|
137
|
+
|
138
|
+
describe 'for student' do
|
139
|
+
before { set_current_user! student }
|
140
|
+
before { get :preview, params: {content: message.content} }
|
141
|
+
|
142
|
+
it { expect(response.status).to eq 403 }
|
143
|
+
end
|
144
|
+
|
145
|
+
describe 'for moderator' do
|
146
|
+
before { set_current_user! moderator }
|
147
|
+
before { get :preview, params: {content: message.content} }
|
148
|
+
|
149
|
+
it { expect(response.status).to eq 200 }
|
150
|
+
it { expect(JSON.parse(response.body)['preview']).to eq "<p>Message in <strong>bold</strong> and <em>italics</em></p>\n" }
|
151
|
+
end
|
152
|
+
end
|
72
153
|
end
|
73
154
|
end
|