[CSP] Prevent use of unsafe-inline for links
* Also update all <a> tags in locals
This commit is contained in:
@ -32,4 +32,7 @@ $.jstree.defaults.core.worker = false;
|
|||||||
// See https://github.com/rails/jquery-ujs/issues/456 for details
|
// See https://github.com/rails/jquery-ujs/issues/456 for details
|
||||||
$(document).on('turbolinks:load', function(){
|
$(document).on('turbolinks:load', function(){
|
||||||
$.rails.refreshCSRFTokens();
|
$.rails.refreshCSRFTokens();
|
||||||
|
$('.reloadCurrentPage').on('click', function() {
|
||||||
|
window.location.reload();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
@ -296,7 +296,7 @@ de:
|
|||||||
form:
|
form:
|
||||||
hints:
|
hints:
|
||||||
command: <em>filename</em> wird automatisch durch den richtigen Dateinamen ersetzt.
|
command: <em>filename</em> wird automatisch durch den richtigen Dateinamen ersetzt.
|
||||||
docker_image: 'Wählen Sie ein Docker-Image aus der Liste oder fügen Sie ein neues hinzu, welches über <a href="https://hub.docker.com/" target="_blank">DockerHub</a> verfügbar ist.'
|
docker_image: 'Wählen Sie ein Docker-Image aus der Liste oder fügen Sie ein neues hinzu, welches über <a href="https://hub.docker.com/" target="_blank" rel="noopener">DockerHub</a> verfügbar ist.'
|
||||||
exposed_ports_list: Während der Ausführung sind diese Ports für den Nutzer zugänglich. Die Portnummern müssen nummerisch und mit Komma voneinander getrennt sein.
|
exposed_ports_list: Während der Ausführung sind diese Ports für den Nutzer zugänglich. Die Portnummern müssen nummerisch und mit Komma voneinander getrennt sein.
|
||||||
cpu_limit: Geben Sie die Mindestmenge an CPU-Anteilen an, die für jeden Runner reserviert werden soll, gemessen in MHz.
|
cpu_limit: Geben Sie die Mindestmenge an CPU-Anteilen an, die für jeden Runner reserviert werden soll, gemessen in MHz.
|
||||||
errors:
|
errors:
|
||||||
@ -340,7 +340,7 @@ de:
|
|||||||
expand_output_sidebar: Ausgabe-Leiste Ausklappen
|
expand_output_sidebar: Ausgabe-Leiste Ausklappen
|
||||||
input: Ihre Eingabe
|
input: Ihre Eingabe
|
||||||
lastsaved: 'Zuletzt gespeichert: '
|
lastsaved: 'Zuletzt gespeichert: '
|
||||||
network: 'Während Ihr Code läuft, ist Port %{port} unter folgender Adresse erreichbar: <a href="%{address}" target="_blank">%{address}</a>.'
|
network: 'Während Ihr Code läuft, ist Port %{port} unter folgender Adresse erreichbar: <a href="%{address}" target="_blank" rel="noopener">%{address}</a>.'
|
||||||
render: Anzeigen
|
render: Anzeigen
|
||||||
run: Ausführen
|
run: Ausführen
|
||||||
run_failure: Ihr Code konnte nicht auf der Plattform ausgeführt werden.
|
run_failure: Ihr Code konnte nicht auf der Plattform ausgeführt werden.
|
||||||
@ -453,7 +453,7 @@ de:
|
|||||||
request: "Kommentaranfrage stellen"
|
request: "Kommentaranfrage stellen"
|
||||||
question: "Bitte beschreiben Sie kurz Ihre Probleme oder nennen Sie den Programmteil, zu dem Sie Feedback wünschen. Ihr Programmcode und eventuelle Fehlermeldungen werden automatisch zur Anfrage hinzugefügt."
|
question: "Bitte beschreiben Sie kurz Ihre Probleme oder nennen Sie den Programmteil, zu dem Sie Feedback wünschen. Ihr Programmcode und eventuelle Fehlermeldungen werden automatisch zur Anfrage hinzugefügt."
|
||||||
intervention:
|
intervention:
|
||||||
explanation: "Diese Meldung erscheint, weil Sie %{duration} Minuten an dieser Aufgabe gearbeitet haben. 25% Ihrer Mitlernenden arbeiten länger daran, insofern ist das kein Problem, aber dies hat sich als <a href='https://hpi.de/forschung/publikationen/dissertationen/dissertation-ralf-teusner.html' style='display: contents;'>effektiven Zeitpunkt für diese Meldung</a> erwiesen."
|
explanation: "Diese Meldung erscheint, weil Sie %{duration} Minuten an dieser Aufgabe gearbeitet haben. 25% Ihrer Mitlernenden arbeiten länger daran, insofern ist das kein Problem, aber dies hat sich als <a href='https://hpi.de/forschung/publikationen/dissertationen/dissertation-ralf-teusner.html' style='display: contents;' target='_blank' rel='noopener'>effektiven Zeitpunkt für diese Meldung</a> erwiesen."
|
||||||
rfc_intervention:
|
rfc_intervention:
|
||||||
text: "Falls Sie bei dieser Aufgabe nicht weiterkommen und nicht selbst weiter knobeln möchten, können Ihre Mitlernenden bestimmt helfen! </br> </br>"
|
text: "Falls Sie bei dieser Aufgabe nicht weiterkommen und nicht selbst weiter knobeln möchten, können Ihre Mitlernenden bestimmt helfen! </br> </br>"
|
||||||
break_intervention:
|
break_intervention:
|
||||||
@ -780,7 +780,7 @@ de:
|
|||||||
runtime_output: "Programmausgabe"
|
runtime_output: "Programmausgabe"
|
||||||
test_results: "Testergebnisse"
|
test_results: "Testergebnisse"
|
||||||
sessions:
|
sessions:
|
||||||
expired: Ihre Session ist abgelaufen. Bitte <a href="javascript:window.location.reload(true)">laden Sie diese Seite neu</a> bevor Sie fortfahren.
|
expired: Ihre Session ist abgelaufen. Bitte <a href="" class="reloadCurrentPage">laden Sie diese Seite neu</a> bevor Sie fortfahren.
|
||||||
create:
|
create:
|
||||||
failure: Fehlerhafte E-Mail oder Passwort.
|
failure: Fehlerhafte E-Mail oder Passwort.
|
||||||
success: Sie haben sich erfolgreich angemeldet.
|
success: Sie haben sich erfolgreich angemeldet.
|
||||||
@ -793,7 +793,7 @@ de:
|
|||||||
destroy_through_lti:
|
destroy_through_lti:
|
||||||
average_score: Durchschnittliche Punktzahl
|
average_score: Durchschnittliche Punktzahl
|
||||||
final_submissions: Abgaben anderer Nutzer
|
final_submissions: Abgaben anderer Nutzer
|
||||||
finished_with_consumer: 'Sie können dieses Fenster nun schließen oder <a href="%{url}">zu %{consumer} zurückkehren</a>.'
|
finished_with_consumer: 'Sie können dieses Fenster nun schließen oder <a href="%{url}" rel="nofollow">zu %{consumer} zurückkehren</a>.'
|
||||||
finished_without_consumer: Sie können dieses Fenster nun schließen.
|
finished_without_consumer: Sie können dieses Fenster nun schließen.
|
||||||
headline: Gut gemacht!
|
headline: Gut gemacht!
|
||||||
score: Ihre Punktzahl
|
score: Ihre Punktzahl
|
||||||
@ -834,7 +834,7 @@ de:
|
|||||||
link: Hilfe
|
link: Hilfe
|
||||||
index: Index
|
index: Index
|
||||||
message_failure: Leider ist ein Fehler auf unserer Plattform aufgetreten. Bitte probieren Sie es später noch einmal.
|
message_failure: Leider ist ein Fehler auf unserer Plattform aufgetreten. Bitte probieren Sie es später noch einmal.
|
||||||
websocket_failure: Leider ist ein Verbindungsproblem aufgetreten. <a href="https://websocketstest.com">Bitte überprüfen Sie Websocket-Verbindungen mit diesem Tool</a> und versuchen Sie es erneut.
|
websocket_failure: Leider ist ein Verbindungsproblem aufgetreten. <a href="https://websocketstest.com" target="_blank" rel="noopener">Bitte überprüfen Sie Websocket-Verbindungen mit diesem Tool</a> und versuchen Sie es erneut.
|
||||||
new: Hinzufügen
|
new: Hinzufügen
|
||||||
new_model: '%{model} hinzufügen'
|
new_model: '%{model} hinzufügen'
|
||||||
number: Nummer
|
number: Nummer
|
||||||
|
@ -296,7 +296,7 @@ en:
|
|||||||
form:
|
form:
|
||||||
hints:
|
hints:
|
||||||
command: <em>filename</em> is automatically replaced with the correct filename.
|
command: <em>filename</em> is automatically replaced with the correct filename.
|
||||||
docker_image: Pick a Docker image listed above or add a new one which is available via <a href="https://hub.docker.com/" target="_blank">DockerHub</a>.
|
docker_image: Pick a Docker image listed above or add a new one which is available via <a href="https://hub.docker.com/" target="_blank" rel="noopener">DockerHub</a>.
|
||||||
exposed_ports_list: During code execution these ports are accessible for the user. Port numbers must be numeric and separated by a comma.
|
exposed_ports_list: During code execution these ports are accessible for the user. Port numbers must be numeric and separated by a comma.
|
||||||
cpu_limit: Specify the minimum amount of CPU shares to reserve for each runner, measured in MHz.
|
cpu_limit: Specify the minimum amount of CPU shares to reserve for each runner, measured in MHz.
|
||||||
errors:
|
errors:
|
||||||
@ -340,7 +340,7 @@ en:
|
|||||||
expand_output_sidebar: Expand Output Sidebar
|
expand_output_sidebar: Expand Output Sidebar
|
||||||
input: Your input
|
input: Your input
|
||||||
lastsaved: 'Last saved: '
|
lastsaved: 'Last saved: '
|
||||||
network: 'While your code is running, port %{port} is accessible using the following address: <a href="%{address}" target="_blank">%{address}</a>.'
|
network: 'While your code is running, port %{port} is accessible using the following address: <a href="%{address}" target="_blank" rel="noopener">%{address}</a>.'
|
||||||
render: Render
|
render: Render
|
||||||
run: Run
|
run: Run
|
||||||
run_failure: Your code could not be run.
|
run_failure: Your code could not be run.
|
||||||
@ -453,7 +453,7 @@ en:
|
|||||||
request: "Request Comments"
|
request: "Request Comments"
|
||||||
question: 'Please shortly describe your problem or the program part you would like to get feedback for. Your program code and potential error messages are automatically appended to your request.'
|
question: 'Please shortly describe your problem or the program part you would like to get feedback for. Your program code and potential error messages are automatically appended to your request.'
|
||||||
intervention:
|
intervention:
|
||||||
explanation: "This message appears because you have been working on this exercise for %{duration} minutes. 25% of your fellow learners took more time to solve the exercise, so in that sense it's not a problem, but this has proven to be an <a href='https://hpi.de/en/research/publications/dissertations/dissertation-ralf-teusner.html' style='display: contents;'>effective time for this message</a>."
|
explanation: "This message appears because you have been working on this exercise for %{duration} minutes. 25% of your fellow learners took more time to solve the exercise, so in that sense it's not a problem, but this has proven to be an <a href='https://hpi.de/en/research/publications/dissertations/dissertation-ralf-teusner.html' style='display: contents;' target='_blank' rel='noopener'>effective time for this message</a>."
|
||||||
rfc_intervention:
|
rfc_intervention:
|
||||||
text: "If you are struggling with this exercise and don't want to continue on your own, your fellow learners can help out! </br> </br>"
|
text: "If you are struggling with this exercise and don't want to continue on your own, your fellow learners can help out! </br> </br>"
|
||||||
break_intervention:
|
break_intervention:
|
||||||
@ -780,7 +780,7 @@ en:
|
|||||||
runtime_output: "Runtime Output"
|
runtime_output: "Runtime Output"
|
||||||
test_results: "Test Results"
|
test_results: "Test Results"
|
||||||
sessions:
|
sessions:
|
||||||
expired: Your session has expired. Please <a href="javascript:window.location.reload(true)">reload this page</a> before continuing.
|
expired: Your session has expired. Please <a href="" class="reloadCurrentPage">reload this page</a> before continuing.
|
||||||
create:
|
create:
|
||||||
failure: Invalid email or password.
|
failure: Invalid email or password.
|
||||||
success: Successfully signed in.
|
success: Successfully signed in.
|
||||||
@ -793,7 +793,7 @@ en:
|
|||||||
destroy_through_lti:
|
destroy_through_lti:
|
||||||
average_score: Average Score
|
average_score: Average Score
|
||||||
final_submissions: Other Users' Submissions
|
final_submissions: Other Users' Submissions
|
||||||
finished_with_consumer: 'You may close this window now or <a href="%{url}">return to %{consumer}</a>.'
|
finished_with_consumer: 'You may close this window now or <a href="%{url}" rel="nofollow">return to %{consumer}</a>.'
|
||||||
finished_without_consumer: You may close this window now.
|
finished_without_consumer: You may close this window now.
|
||||||
headline: Well done!
|
headline: Well done!
|
||||||
score: Your Score
|
score: Your Score
|
||||||
@ -834,7 +834,7 @@ en:
|
|||||||
link: Help
|
link: Help
|
||||||
index: Index
|
index: Index
|
||||||
message_failure: 'Sorry, something went wrong.'
|
message_failure: 'Sorry, something went wrong.'
|
||||||
websocket_failure: Sorry, a connection issue occoured. <a href="https://websocketstest.com">Please check WebSocket connections with this tool</a> and try again.
|
websocket_failure: Sorry, a connection issue occoured. <a href="https://websocketstest.com" target="_blank" rel="noopener">Please check WebSocket connections with this tool</a> and try again.
|
||||||
new: Add
|
new: Add
|
||||||
new_model: 'Add %{model}'
|
new_model: 'Add %{model}'
|
||||||
number: Number
|
number: Number
|
||||||
|
Reference in New Issue
Block a user