Add live dashboard for teachers in the context of an exercise

This commit also adds the fundamentals for ActionCable
This commit is contained in:
Sebastian Serth
2019-02-15 09:32:53 +01:00
parent 6e03939c10
commit d63700c7db
27 changed files with 215 additions and 7 deletions

View File

@@ -28,5 +28,7 @@ module CodeOcean
config.autoload_paths << Rails.root.join('lib')
config.eager_load_paths << Rails.root.join('lib')
config.assets.precompile += %w( markdown-buttons.png )
config.action_cable.mount_path = '/cable'
end
end

View File

@@ -101,6 +101,7 @@ de:
files: Dateien
score: Punktzahl
user: Autor
study_group: Lerngruppe
study_group:
name: Name
external_id: Externe ID
@@ -347,6 +348,7 @@ de:
implement: Implementieren
test_files: Test-Dateien
feedback: Feedback
study_group_dashboard: Live Dashboard
statistics:
average_score: Durchschnittliche Punktzahl
final_submissions: Finale Abgaben
@@ -365,6 +367,9 @@ de:
failure: Beim Übermitteln Ihrer Punktzahl ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut.
full_score_redirect_to_rfc: Herzlichen Glückwunsch! Sie haben die maximale Punktzahl für diese Aufgabe an den Kurs übertragen. Ein anderer Teilnehmer hat eine Frage zu der von Ihnen gelösten Aufgabe. Er würde sich sicherlich sehr über ihre Hilfe und Kommentare freuen.
full_score_redirect_to_own_rfc: Herzlichen Glückwunsch! Sie haben die maximale Punktzahl für diese Aufgabe an den Kurs übertragen. Ihre Frage ist damit wahrscheinlich gelöst? Falls ja, fügen Sie doch den entscheidenden Kniff als Antwort hinzu und markieren die Frage als gelöst, bevor sie das Fenster schließen.
study_group_dashboard:
live_dashboard: Live Dashboard
related_requests_for_comments: Zugehörige Kommentaranfragen
external_users:
statistics:
no_data_available: Keine Daten verfügbar.

View File

@@ -101,6 +101,7 @@ en:
files: Files
score: Score
user: Author
study_group: Study Group
study_group:
name: Name
external_id: External ID
@@ -347,6 +348,7 @@ en:
implement: Implement
test_files: Test Files
feedback: Feedback
study_group_dashboard: Live Dashboard
statistics:
average_score: Average Score
final_submissions: Final Submissions
@@ -365,6 +367,9 @@ en:
failure: An error occurred while transmitting your score. Please try again later.
full_score_redirect_to_rfc: Congratulations! You achieved and submitted the highest possible score for this exercise. Another participant has a question concerning the exercise you just solved. Your help and comments will be greatly appreciated!
full_score_redirect_to_own_rfc: Congratulations! You achieved and submitted the highest possible score for this exercise. Your question concerning the exercise is solved? If so, please share the essential insight with your fellows and mark the question as solved, before you close this window!
study_group_dashboard:
live_dashboard: Live Dashboard
related_requests_for_comments: Related Requests for Comments
external_users:
statistics:
no_data_available: No data available.

View File

@@ -83,6 +83,7 @@ Rails.application.routes.draw do
get :feedback
get :reload
post :submit
get 'study_group_dashboard/:study_group_id', to: 'exercises#study_group_dashboard'
end
end
@@ -151,4 +152,5 @@ Rails.application.routes.draw do
post "/evaluate", to: 'remote_evaluation#evaluate', via: [:post]
mount ActionCable.server => '/cable'
end