mumuki-laboratory 5.5.0 → 5.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/application/discussions.js +43 -0
  3. data/app/assets/stylesheets/application/_modules.scss +2 -0
  4. data/app/assets/stylesheets/application/modules/_checkboxes.scss +21 -8
  5. data/app/assets/stylesheets/application/modules/_discussion.scss +339 -0
  6. data/app/assets/stylesheets/application/modules/_pagination.scss +10 -0
  7. data/app/controllers/application_controller.rb +4 -9
  8. data/app/controllers/book_discussions_controller.rb +7 -0
  9. data/app/controllers/chapters_controller.rb +2 -0
  10. data/app/controllers/discussions_controller.rb +65 -0
  11. data/app/controllers/discussions_messages_controller.rb +25 -0
  12. data/app/controllers/exercises_controller.rb +1 -0
  13. data/app/controllers/guide_container_controller.rb +1 -0
  14. data/app/controllers/messages_controller.rb +1 -1
  15. data/app/controllers/users_controller.rb +1 -0
  16. data/app/helpers/application_helper.rb +7 -0
  17. data/app/helpers/assignment_result_helper.rb +10 -30
  18. data/app/helpers/breadcrumbs_helper.rb +7 -3
  19. data/app/helpers/contextualization_result_helper.rb +31 -0
  20. data/app/helpers/discussions_helper.rb +163 -0
  21. data/app/helpers/exercise_input_helper.rb +33 -5
  22. data/app/helpers/icons_helper.rb +20 -3
  23. data/app/helpers/messages_helper.rb +4 -0
  24. data/app/helpers/status_helper.rb +2 -2
  25. data/app/models/assignment.rb +31 -47
  26. data/app/models/book.rb +3 -0
  27. data/app/models/chapter.rb +2 -0
  28. data/app/models/concerns/contextualization.rb +85 -0
  29. data/app/models/concerns/submittable/solvable.rb +1 -0
  30. data/app/models/concerns/with_assignments.rb +1 -1
  31. data/app/models/concerns/with_discussion_creation.rb +9 -0
  32. data/app/models/concerns/with_discussion_creation/subscription.rb +33 -0
  33. data/app/models/concerns/with_discussion_creation/upvote.rb +28 -0
  34. data/app/models/concerns/with_discussion_status.rb +11 -0
  35. data/app/models/concerns/with_discussions.rb +23 -0
  36. data/app/models/concerns/with_randomizations.rb +34 -0
  37. data/app/models/concerns/with_scoped_queries.rb +47 -0
  38. data/app/models/concerns/with_scoped_queries/filter.rb +15 -0
  39. data/app/models/concerns/with_scoped_queries/page.rb +10 -0
  40. data/app/models/concerns/with_scoped_queries/sort.rb +47 -0
  41. data/app/models/discussion.rb +128 -0
  42. data/app/models/exercise.rb +10 -1
  43. data/app/models/guide.rb +1 -1
  44. data/app/models/message.rb +24 -3
  45. data/app/models/organization.rb +4 -0
  46. data/app/models/submission/confirmation.rb +1 -1
  47. data/app/models/submission/console_submission.rb +1 -1
  48. data/app/models/submission/submission.rb +13 -0
  49. data/app/models/subscription.rb +12 -0
  50. data/app/models/topic.rb +1 -1
  51. data/app/models/upvote.rb +4 -0
  52. data/app/models/user.rb +3 -2
  53. data/app/views/book_discussions/index.html.erb +23 -0
  54. data/app/views/chapters/show.html.erb +0 -1
  55. data/app/views/discussions/_message.html.erb +22 -0
  56. data/app/views/discussions/_message_container.html.erb +8 -0
  57. data/app/views/discussions/_new_message.html.erb +19 -0
  58. data/app/views/discussions/index.html.erb +30 -0
  59. data/app/views/discussions/show.html.erb +76 -0
  60. data/app/views/exercise_solutions/_contextualization_results.html.erb +21 -0
  61. data/app/views/exercise_solutions/_contextualization_results_container.html.erb +4 -0
  62. data/app/views/exercise_solutions/_expectations.html.erb +9 -3
  63. data/app/views/exercise_solutions/_kids_results.html.erb +1 -1
  64. data/app/views/exercise_solutions/_results.html.erb +21 -55
  65. data/app/views/exercise_solutions/_results_title.html.erb +2 -2
  66. data/app/views/exercises/_exercise_assignment.html.erb +20 -0
  67. data/app/views/exercises/_read_only.html.erb +104 -0
  68. data/app/views/exercises/show.html.erb +4 -20
  69. data/app/views/layouts/_discussions.html.erb +68 -0
  70. data/app/views/layouts/_kids.html.erb +9 -6
  71. data/app/views/layouts/_messages.html.erb +1 -1
  72. data/app/views/layouts/_result.html.erb +2 -2
  73. data/app/views/layouts/_test_results.html.erb +6 -6
  74. data/app/views/layouts/application.html.erb +10 -9
  75. data/app/views/layouts/exercise_inputs/forms/_form.html.erb +5 -6
  76. data/app/views/layouts/exercise_inputs/forms/_interactive_form.html.erb +5 -5
  77. data/app/views/layouts/exercise_inputs/forms/_kids_form.html.erb +9 -17
  78. data/app/views/layouts/exercise_inputs/forms/_playground_form.html.erb +5 -5
  79. data/app/views/layouts/exercise_inputs/forms/_problem_form.html.erb +11 -11
  80. data/app/views/layouts/exercise_inputs/forms/_reading_form.html.erb +1 -1
  81. data/app/views/layouts/exercise_inputs/layouts/_input_bottom.html.erb +1 -1
  82. data/app/views/layouts/exercise_inputs/layouts/_input_kids.html.erb +7 -7
  83. data/app/views/layouts/exercise_inputs/layouts/_input_right.html.erb +1 -1
  84. data/app/views/layouts/exercise_inputs/read_only_editors/_code.html.erb +3 -0
  85. data/app/views/layouts/exercise_inputs/read_only_editors/_custom.html.erb +6 -0
  86. data/app/views/layouts/exercise_inputs/read_only_editors/_multiple_choice.html.erb +8 -0
  87. data/app/views/layouts/exercise_inputs/read_only_editors/_single_choice.html.erb +8 -0
  88. data/app/views/layouts/modals/_kids_context.html.erb +2 -2
  89. data/app/views/layouts/modals/_new_discussion.html.erb +27 -0
  90. data/app/views/users/show.html.erb +23 -3
  91. data/config/routes.rb +21 -1
  92. data/db/migrate/20180504173548_create_discussions.rb +12 -0
  93. data/db/migrate/20180504185845_add_discussion_id_to_message.rb +5 -0
  94. data/db/migrate/20180605143727_add_submission_to_discussion.rb +16 -0
  95. data/db/migrate/20180619182555_create_subscriptions.rb +9 -0
  96. data/db/migrate/20180702153442_create_upvotes.rb +8 -0
  97. data/db/migrate/20180702175220_add_upvotes_count_to_discussions.rb +5 -0
  98. data/db/migrate/20180704150839_rename_assignment_status_to_submission_status.rb +5 -0
  99. data/lib/mumuki/laboratory.rb +2 -0
  100. data/lib/mumuki/laboratory/controllers.rb +2 -1
  101. data/lib/mumuki/laboratory/controllers/content.rb +12 -0
  102. data/lib/mumuki/laboratory/controllers/notifications.rb +31 -0
  103. data/lib/mumuki/laboratory/controllers/results_rendering.rb +1 -1
  104. data/lib/mumuki/laboratory/engine.rb +0 -2
  105. data/lib/mumuki/laboratory/evaluation/manual.rb +1 -1
  106. data/lib/mumuki/laboratory/locales/en.yml +37 -1
  107. data/lib/mumuki/laboratory/locales/es.yml +42 -1
  108. data/lib/mumuki/laboratory/locales/pt.yml +33 -1
  109. data/lib/mumuki/laboratory/status.rb +51 -44
  110. data/lib/mumuki/laboratory/status/discussion/closed.rb +15 -0
  111. data/lib/mumuki/laboratory/status/discussion/discussion.rb +56 -0
  112. data/lib/mumuki/laboratory/status/discussion/opened.rb +27 -0
  113. data/lib/mumuki/laboratory/status/discussion/pending_review.rb +15 -0
  114. data/lib/mumuki/laboratory/status/discussion/solved.rb +19 -0
  115. data/lib/mumuki/laboratory/status/submission/aborted.rb +11 -0
  116. data/lib/mumuki/laboratory/status/submission/errored.rb +15 -0
  117. data/lib/mumuki/laboratory/status/{failed.rb → submission/failed.rb} +2 -2
  118. data/lib/mumuki/laboratory/status/submission/manual_evaluation_pending.rb +15 -0
  119. data/lib/mumuki/laboratory/status/{passed.rb → submission/passed.rb} +2 -2
  120. data/lib/mumuki/laboratory/status/{passed_with_warnings.rb → submission/passed_with_warnings.rb} +2 -2
  121. data/lib/mumuki/laboratory/status/submission/pending.rb +11 -0
  122. data/lib/mumuki/laboratory/status/submission/running.rb +11 -0
  123. data/lib/mumuki/laboratory/status/submission/submission.rb +49 -0
  124. data/lib/mumuki/laboratory/status/{unknown.rb → submission/unknown.rb} +2 -2
  125. data/lib/mumuki/laboratory/version.rb +1 -1
  126. data/spec/controllers/chapters_controller_spec.rb +17 -0
  127. data/spec/controllers/discussions_controller_spec.rb +19 -0
  128. data/spec/dummy/config/environments/development.rb +0 -2
  129. data/spec/dummy/config/environments/test.rb +0 -2
  130. data/spec/dummy/db/schema.rb +42 -2
  131. data/spec/evaluation_helper.rb +1 -1
  132. data/spec/factories/discussion_factory.rb +8 -0
  133. data/spec/features/dynamic_exam_spec.rb +1 -1
  134. data/spec/helpers/exercise_input_helper_spec.rb +25 -0
  135. data/spec/helpers/test_results_rendering_spec.rb +7 -7
  136. data/spec/models/assignment_spec.rb +17 -2
  137. data/spec/models/discussion_spec.rb +153 -0
  138. metadata +108 -27
  139. data/app/models/concerns/with_status.rb +0 -43
  140. data/app/models/status_rendering_verbosity.rb +0 -40
  141. data/lib/mumuki/laboratory/controllers/messages.rb +0 -9
  142. data/lib/mumuki/laboratory/status/aborted.rb +0 -7
  143. data/lib/mumuki/laboratory/status/base.rb +0 -47
  144. data/lib/mumuki/laboratory/status/errored.rb +0 -15
  145. data/lib/mumuki/laboratory/status/manual_evaluation_pending.rb +0 -15
  146. data/lib/mumuki/laboratory/status/pending.rb +0 -11
  147. data/lib/mumuki/laboratory/status/running.rb +0 -11
  148. data/spec/models/randomizer_spec.rb +0 -18
  149. data/spec/models/verbosity_spec.rb +0 -24
@@ -0,0 +1,3 @@
1
+ <div class="field form-group">
2
+ <%= Mumukit::ContentType::Markdown.to_html(Mumukit::ContentType::Markdown.highlighted_code(exercise.language.name, content)) %>
3
+ </div>
@@ -0,0 +1,6 @@
1
+ <%= render_runner_assets exercise.language, :editor %>
2
+
3
+ <%= render_custom_editor(exercise, true) %>
4
+ <%= hidden_field :content, id: "mu-custom-editor-value", value: content %>
5
+ <%= hidden_field :default_content, id: "mu-custom-editor-default-value", value: exercise.default_content %>
6
+ <%= hidden_field :content_extra, id: "mu-custom-editor-extra", value: exercise.extra %>
@@ -0,0 +1,8 @@
1
+ <div class="form-group">
2
+ <% exercise.pretty_choices.each do |choice| %>
3
+ <div class="field checkbox complementary complementary-checkbox">
4
+ <%= check_box_tag(choice.id, '1', checked?(choice, content), disabled: true, class: 'solution-choice mu-read-only', 'data-index' => choice.index) %>
5
+ <%= label_tag(choice.id, choice.text) %>
6
+ </div>
7
+ <% end %>
8
+ </div>
@@ -0,0 +1,8 @@
1
+ <div class="form-group">
2
+ <% exercise.pretty_choices.each do |choice| %>
3
+ <div class="field radio complementary complementary-radio">
4
+ <%= radio_button_tag :content, choice.value, checked?(choice, content), disabled: true, class: 'mu-read-only' %>
5
+ <%= label_tag(choice.id, choice.text) %>
6
+ </div>
7
+ <% end %>
8
+ </div>
@@ -3,7 +3,7 @@
3
3
  <div class="modal-content">
4
4
  <div class="modal-header">
5
5
  <h4 class="text-center">
6
- <strong><%= "#{@exercise.number}. #{@exercise.name}" %></strong>
6
+ <strong><%= "#{exercise.number}. #{exercise.name}" %></strong>
7
7
  </h4>
8
8
  </div>
9
9
  <div class="modal-body">
@@ -11,7 +11,7 @@
11
11
  <div class="row">
12
12
  <div class="col-md-12 text-box">
13
13
  <img src="/character/kids/yellow_context.svg" class="capital-animation"/>
14
- <%= @exercise.description_context %>
14
+ <%= exercise.description_context %>
15
15
  </div>
16
16
  </div>
17
17
  </div>
@@ -0,0 +1,27 @@
1
+ <div class="modal fade new-discussion-modal" tabindex="-1" role="dialog" aria-hidden="true">
2
+ <div class="modal-dialog">
3
+ <%= form_for [@debatable, Discussion.new] do |f| %>
4
+ <div class="modal-content">
5
+ <div class="modal-header">
6
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
7
+ <span aria-hidden="true">&times;</span>
8
+ </button>
9
+ <h3 class="text-left">Nueva Consulta</h3>
10
+ </div>
11
+ <div class="modal-body">
12
+ <div class="container-fluid">
13
+ <div class="row form-group">
14
+ <div><%= f.text_field :title, class: 'form-control', placeholder: t(:title), required: true %></div>
15
+ </div>
16
+ <div class="row form-group">
17
+ <div><%= f.text_area :description, class: 'form-control', placeholder: t(:description) %></div>
18
+ </div>
19
+ </div>
20
+ </div>
21
+ <div class="modal-footer">
22
+ <button class="btn btn-success btn-block"> <%= t :send %> </button>
23
+ </div>
24
+ </div>
25
+ <% end %>
26
+ </div>
27
+ </div>
@@ -16,6 +16,11 @@
16
16
  <li role="presentation">
17
17
  <a data-target="#messages" aria-controls="messages" role="tab" data-toggle="tab"><%= t :messages %></a>
18
18
  </li>
19
+ <% if @watched_discussions.present? %>
20
+ <li role="presentation">
21
+ <a data-target="#discussions" aria-controls="discussions" role="tab" data-toggle="tab"><%= t :discussions %></a>
22
+ </li>
23
+ <% end %>
19
24
  </ul>
20
25
 
21
26
  <div class="tab-content">
@@ -26,15 +31,15 @@
26
31
  <%= image_tag @user.image_url, size: '250x250', class: 'img-circle' %>
27
32
  </div>
28
33
  <div class="col-md-8">
29
- <fieldset class="form-group">
34
+ <fieldset class="form-group">
30
35
  <div><%= f.label(t :first_name) %></div>
31
36
  <div><%= f.text_field :first_name, class: 'form-control' %></div>
32
37
  </fieldset>
33
- <fieldset class="form-group">
38
+ <fieldset class="form-group">
34
39
  <div><%= f.label(t :last_name) %></div>
35
40
  <div><%= f.text_field :last_name, class: 'form-control' %></div>
36
41
  </fieldset>
37
- <fieldset class="form-group">
42
+ <fieldset class="form-group">
38
43
  <div><%= f.label(t :email) %></div>
39
44
  <div><%= f.text_field :email, readonly: true, class: 'form-control' %></div>
40
45
  </fieldset>
@@ -69,4 +74,19 @@
69
74
  </table>
70
75
  <% end %>
71
76
  </div>
77
+ <% if @watched_discussions.present? %>
78
+ <div role="tabpanel" class="tab-pane" id="discussions">
79
+ <table class="table table-striped">
80
+ <% @watched_discussions.each do |discussion| %>
81
+ <tr>
82
+ <td>
83
+ <%= icon_for_read(discussion.read_by?(@user)) %>
84
+ </td>
85
+ <td><%= link_to discussion.item.name, item_discussion_path(discussion) %></td>
86
+ <td><%= time_ago_in_words discussion.last_message_date %></td>
87
+ </tr>
88
+ <% end %>
89
+ </table>
90
+ </div>
91
+ <% end %>
72
92
  </div>
data/config/routes.rb CHANGED
@@ -5,8 +5,22 @@ Rails.application.routes.draw do
5
5
  Mumukit::Platform.map_organization_routes!(self) do
6
6
  root to: 'book#show'
7
7
 
8
+ concern :debatable do |options|
9
+ resources :discussions, options.merge(only: [:index, :show, :create, :update, :destroy]) do
10
+ post :subscription, on: :member
11
+ post :upvote, on: :member
12
+ end
13
+ end
14
+
15
+ concerns :debatable, controller: 'book_discussions', only: :index
16
+
17
+ resources :discussions, only: [] do
18
+ resources :messages, only: [:create, :destroy], controller: 'discussions_messages'
19
+ end
20
+
8
21
  resources :book, only: [:show]
9
22
  resources :chapters, only: [:show] do
23
+ concerns :debatable, debatable_class: 'Chapter'
10
24
  resource :appendix, only: :show
11
25
  end
12
26
 
@@ -19,12 +33,18 @@ Rails.application.routes.draw do
19
33
  resources :tries, controller: 'exercise_tries', only: :create
20
34
  end
21
35
 
36
+ resources :exercises, only: :show do
37
+ concerns :debatable, debatable_class: 'Exercise'
38
+ end
39
+
22
40
  # All users
23
41
  resources :guides, only: :show do
24
42
  resource :progress, controller: 'guide_progress', only: :destroy
25
43
  end
26
44
 
27
- resources :lessons, only: :show
45
+ resources :lessons, only: :show do
46
+ concerns :debatable, debatable_class: 'Lesson'
47
+ end
28
48
  resources :complements, only: :show
29
49
  resources :exams, only: :show
30
50
 
@@ -0,0 +1,12 @@
1
+ class CreateDiscussions < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :discussions do |t|
4
+ t.integer :status, default: 0
5
+ t.string :title
6
+ t.text :description
7
+ t.references :initiator, index: true
8
+ t.references :item, polymorphic: true, index: true
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,5 @@
1
+ class AddDiscussionIdToMessage < ActiveRecord::Migration[5.1]
2
+ def change
3
+ add_column :messages, :discussion_id, :integer
4
+ end
5
+ end
@@ -0,0 +1,16 @@
1
+ class AddSubmissionToDiscussion < ActiveRecord::Migration[5.1]
2
+ def change
3
+ change_table :discussions do |t|
4
+ t.text "solution"
5
+ t.integer "submission_status", default: 0
6
+ t.text "result"
7
+ t.text "expectation_results"
8
+ t.text "feedback"
9
+ t.text "test_results"
10
+ t.string "submission_id"
11
+ t.string "queries", default: [], array: true
12
+ t.text "query_results"
13
+ t.text "manual_evaluation_comment"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,9 @@
1
+ class CreateSubscriptions < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :subscriptions do |t|
4
+ t.references :user, index: true
5
+ t.references :discussion, index: true
6
+ t.boolean :read, default: true
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,8 @@
1
+ class CreateUpvotes < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :upvotes do |t|
4
+ t.references :user, index: true
5
+ t.references :discussion, index: true
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ class AddUpvotesCountToDiscussions < ActiveRecord::Migration[5.1]
2
+ def change
3
+ add_column :discussions, :upvotes_count, :integer
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class RenameAssignmentStatusToSubmissionStatus < ActiveRecord::Migration[5.1]
2
+ def change
3
+ rename_column :assignments, :status, :submission_status
4
+ end
5
+ end
@@ -14,6 +14,8 @@ require 'mumukit/randomizer'
14
14
  require 'mumukit/inspection'
15
15
  require 'mumukit/bridge'
16
16
  require 'mumukit/content_type'
17
+ require 'kaminari'
18
+ require 'bootstrap-kaminari-views'
17
19
 
18
20
  require_relative './laboratory/mumukit/auth'
19
21
  require_relative './laboratory/mumukit/directives'
@@ -4,7 +4,8 @@ end
4
4
  require_relative './controllers/authorization'
5
5
  require_relative './controllers/current_organization'
6
6
  require_relative './controllers/dynamic_errors'
7
- require_relative './controllers/messages'
7
+ require_relative './controllers/notifications'
8
8
  require_relative './controllers/nested_in_exercise'
9
9
  require_relative './controllers/results_rendering'
10
10
  require_relative './controllers/exercise_seed'
11
+ require_relative './controllers/content'
@@ -0,0 +1,12 @@
1
+ module Mumuki::Laboratory::Controllers::Content
2
+ extend ActiveSupport::Concern
3
+
4
+ included do
5
+ before_action :validate_used_here!, only: :show
6
+ end
7
+
8
+ # ensures contents are in current organization's path
9
+ def validate_used_here! #TODO refactor subject logic (e.g. we can't move validate_accessible! here because ExerciseSolutionsController does not declare a subject)
10
+ raise Mumuki::Laboratory::NotFoundError unless subject&.used_in?(Organization.current)
11
+ end
12
+ end
@@ -0,0 +1,31 @@
1
+ module Mumuki::Laboratory::Controllers::Notifications
2
+ def user_notifications_path
3
+ "#{user_path}##{notifications_path}"
4
+ end
5
+
6
+ def has_notifications?
7
+ notifications_count > 0
8
+ end
9
+
10
+ def notifications_count
11
+ messages_count + discussions_count
12
+ end
13
+
14
+ private
15
+
16
+ def notifications_path
17
+ has_messages? ? 'messages' : 'discussions'
18
+ end
19
+
20
+ def has_messages?
21
+ messages_count > 0
22
+ end
23
+
24
+ def messages_count
25
+ current_user.try(:unread_messages).try(:count) || 0
26
+ end
27
+
28
+ def discussions_count
29
+ current_user.try(:unread_discussions).try(:count) || 0
30
+ end
31
+ end
@@ -28,7 +28,7 @@ module Mumuki::Laboratory::Controllers::ResultsRendering
28
28
 
29
29
  def render_results_title_html(assignment)
30
30
  render_to_string partial: 'exercise_solutions/results_title',
31
- locals: {assignment: assignment}
31
+ locals: {contextualization: assignment}
32
32
  end
33
33
 
34
34
  def render_results_button_html(assignment)
@@ -21,8 +21,6 @@ module Mumuki
21
21
  config.registration_notification_format = {only: [:id, :name, :email, :image_url]}
22
22
  config.action_dispatch.perform_deep_munge = false
23
23
 
24
- config.status_rendering_verbosity = :standard
25
-
26
24
  initializer "static assets" do |app|
27
25
  app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public")
28
26
  end
@@ -1,5 +1,5 @@
1
1
  class Mumuki::Laboratory::Evaluation::Manual
2
2
  def evaluate!(*)
3
- {status: Mumuki::Laboratory::Status::ManualEvaluationPending, result: ''}
3
+ {status: Mumuki::Laboratory::Status::Submission::ManualEvaluationPending, result: ''}
4
4
  end
5
5
  end
@@ -10,8 +10,11 @@ en:
10
10
  all: All
11
11
  appendix: "Appendix"
12
12
  appendix_teaser: Do you want to learn more? <a href="%{link}">Check this chapter's appendix</a>"
13
+ are_you_sure: 'Are you sure you want to %{action}?'
14
+ ask_a_question: Ask a question!
13
15
  ask_community: Ask community for help
14
16
  ask_redirect: Do you want to go there?
17
+ ask_the_first_question: Be the first one to ask!
15
18
  author: Author
16
19
  authoring: "Authoring"
17
20
  authoring_note: This guide's content was developed by %{authors} and <a href="%{collaborators}" target="_blank">many others</a>, under the terms of <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Creative Commons License Share-Alike, 4.0</a>
@@ -23,6 +26,10 @@ en:
23
26
  chapter_number: Chapter %{number}
24
27
  classroom: Classroom
25
28
  clear_console: Clear console
29
+ closed: Closed
30
+ created_at_asc: Oldest
31
+ created_at_desc: Newest
32
+ comment: Comment
26
33
  confirm: Confirm
27
34
  confirm_restart: You are about to delete your progress for this guide. Do you want to proceed?
28
35
  console: Console
@@ -37,7 +44,11 @@ en:
37
44
  create_submission: Submit
38
45
  created_at: Created at
39
46
  date: Date
47
+ description: Description
40
48
  destroy: Destroy
49
+ destroy_message: delete the message
50
+ discussion_updated: Discussion updated
51
+ discussions: Discussions
41
52
  dont_leave_us: Don't leave us! Learning is fun. You just have to keep at it.
42
53
  download: Download your solution
43
54
  edit: Edit
@@ -93,6 +104,9 @@ en:
93
104
  let_us_know: please let us know!
94
105
  load_solution_into_console: Load your solution into the console
95
106
  manual_evaluation_pending: Thanks for submitting your solution! It will be revised by the course teachers soon
107
+ message_count:
108
+ one: 1 message
109
+ other: '%{count} messages'
96
110
  message: Message
97
111
  messages: Messages
98
112
  messages_error: Previous messages are unavailable. Please try again later.
@@ -108,17 +122,21 @@ en:
108
122
  need_help: I need help!
109
123
  never: never
110
124
  new: New
111
- new_message_placeholder: Escribí tu mensaje acá...
125
+ new_message_placeholder: Write a message for your teacher...
112
126
  next_exercise: Next
113
127
  next_lesson: 'Next Guide: %{name}'
128
+ no_discussions: No discussions matched your search.
114
129
  no_exercises: Nobody created an exercise for this search yet
115
130
  no_guides: Nobody created a guide for this search yet
116
131
  no_messages: It seems you don't have any messages yet!
132
+ no_questions: It seems there isn't any question yet.
117
133
  no_submissions: It seems like you haven't tried to solve this exercise
134
+ no_useful_result: Não encontrou o que estava buscando?
118
135
  not_found_explanation: 'You may have mistyped the address or the page may have moved.'
119
136
  not_in_any_organizations: It seems you aren't in any organizations yet!
120
137
  notify_problem_with_exercise: Report a bug
121
138
  office: Office
139
+ opened: Open
122
140
  output: Output
123
141
  overview: Overview
124
142
  passed: Everything is in order! Your solution passed all our tests!
@@ -126,6 +144,7 @@ en:
126
144
  pending: pending
127
145
  pending_messages: You have unread messages
128
146
  pending_messages_explanation: You can't send new solutions until you read pending messages
147
+ Pending_review: Pending review
129
148
  permissions: Permissions
130
149
  please_fill_profile_data: Please complete your profile data to continue!
131
150
  please_validate: 'Please validate your data before continue:'
@@ -138,6 +157,7 @@ en:
138
157
  progress: Progresss
139
158
  read: Read
140
159
  refresh_or_wait: Please press F5 if results are not displayed after a few seconds
160
+ reset_query: Clear current search filters
141
161
  restart: Restart
142
162
  results: Results
143
163
  retry_exercise: Retry
@@ -150,8 +170,13 @@ en:
150
170
  sign_out: Sign Out
151
171
  sign_up_date: User since
152
172
  solution: Solution
173
+ solved: Solved
174
+ solve_doubts: Solve other's doubts
175
+ solve_your_doubts: Solve your doubts
176
+ solve_your_doubts_teaser: Do you have any doubts?
153
177
  something_went_wrong: Something went wrong!
154
178
  something_went_wrong_explanation: Something is broken in Mumuki.
179
+ sort: Sort
155
180
  start_lesson: Start this lesson!
156
181
  start_practicing: Start Practicing!
157
182
  start_using_mumuki: Start using Mumuki!
@@ -164,20 +189,31 @@ en:
164
189
  submission_for_exercise: Submission for exercise
165
190
  submissions_count: Submissions
166
191
  submissions_for: Submissions for %{exercise}
192
+ subscribe: Subscribe
167
193
  tag: Tags
168
194
  tell_us_how: Please tell us how this happened!
169
195
  tell_us_if_our_error: If you think this is our fault, %{issues}
170
196
  terms_and_conditions: Terms and conditions
171
197
  test_results: Test results
172
198
  test_results: Tests results
199
+ time_ago: "%{time} ago"
173
200
  time_left: You have
174
201
  title: Title
202
+ to_closed: Close
203
+ to_opened: Reopen
204
+ to_pending_review: Mark as solved
205
+ to_solved: Mark as solved
175
206
  try_again: Oops, something went wrong in Mumuki. Restart the exercise, wait a few seconds and try again.
176
207
  unauthorized_explanation: You have no permissions for this content. Maybe you logged in with another account.
208
+ undo_upvote: Undo upvote
177
209
  unmeet_expectations: "Goals that weren't met"
210
+ unsubscribe: Unsubscribe
178
211
  unsubscribed_successfully: You have successfully unsubscribed from reminders.
179
212
  upload_solution: Upload Solution
180
213
  uploading_solution: "Uploading solution"
214
+ upvote: Upvote
215
+ upvotes_count_asc: Most voted
216
+ upvotes_count_desc: Least voted
181
217
  user: User
182
218
  user_data_updated: Your data was updated successfuly
183
219
  username: Username