Add CommunitySolution

* Also slightly refactor some JS files
This commit is contained in:
Sebastian Serth
2021-11-21 19:18:52 +01:00
parent d559cfb323
commit da4e10b990
21 changed files with 509 additions and 31 deletions

View File

@ -163,6 +163,9 @@ de:
exercise_collection_item:
exercise: "Aufgabe"
models:
community_solution:
one: Gemeinschaftslösung
other: Gemeinschaftslösungen
codeharbor_link:
one: CodeHarbor-Link
other: CodeHarbor-Links
@ -265,6 +268,15 @@ de:
rfc_activity_history: Kommentaranfragenhistorie
rails_admin:
show: "Rails Admin"
community_solutions:
help_us_out: Helfen Sie mit!
explanation: In diesem Kurs möchten wir gerne mit Ihnen und allen anderen Lernenden eine Gemeinschaftslösung für diese Aufgabe erarbeiten, die zum Ende des Kurses allen Teilnehmenden zugänglich gemacht werden soll. Unten finden Sie sowohl den aktuellen Stand der Gemeinschaftslösung als auch Ihre Abgabe. Bitte sehen Sie sich die Gemeinschaftslösung an und überarbeiten Sie diese bei Bedarf. Ihre eigene Lösung wird nicht verändert.
research_status: 'Neue Beta-Funktion aus der Forschung:'
research_explanation: Die hier angebotene Mitwirkungsmöglichkeit an einer Gemeinschaftslösung ist Bestandteil unserer Forschung; daher würden wir uns sehr über Ihre aktive Beteiligung freuen.
current_community_solution: Aktuelle Gemeinschaftslösung
your_submission: Ihre Abgabe (schreibgeschützt, als Referenz)
change_community_solution: Änderungen an Gemeinschaftslösung speichern
accept_community_solution: Gemeinschaftslösung ohne Änderung verlassen
consumers:
show:
link: Konsument

View File

@ -163,6 +163,9 @@ en:
exercise_collection_item:
exercise: "Exercise"
models:
community_solution:
one: Community Solution
other: Community Solutions
codeharbor_link:
one: CodeHarbor Link
other: CodeHarbor Links
@ -265,6 +268,15 @@ en:
rfc_activity_history: RfC Activity History
rails_admin:
show: "Rails Admin"
community_solutions:
help_us_out: Help us out!
explanation: In this course, we would like to work together with you and all other learners to create a community solution for this exercise, which will be made available to all participants at the end of the course. For this we need your active support. Below you will find both the current status of the community solution and your submission. Please review the community solution and revise it as needed. Your own solution will not be changed.
research_status: 'New beta feature based on our research:'
research_explanation: The opportunity to participate in a community solution is part of our research; therefore, we would greatly appreciate your active participation.
current_community_solution: Current community solution
your_submission: Your submission (read-only, for reference)
change_community_solution: Save Changes to Community Solution
accept_community_solution: Quit Community Solution without Changes
consumers:
show:
link: Consumer

View File

@ -3,6 +3,7 @@
FILENAME_REGEXP = /[\w.]+/.freeze unless Kernel.const_defined?(:FILENAME_REGEXP)
Rails.application.routes.draw do
resources :community_solutions, only: %i[index edit update]
resources :error_template_attributes
resources :error_templates do
member do