From 17492e6ceaf440b152d76ff5f713751263721bcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20G=C3=A4rtner?= <andreas.gaertner@hotmail.com> Date: Wed, 9 Mar 2016 00:14:15 +0100 Subject: [PATCH] Task #17462: Add configuration option for suspended votes offset --- .../de/thm/arsnova/controller/ConfigurationController.java | 4 ++++ src/main/resources/arsnova.properties.example | 3 +++ src/test/resources/arsnova.properties.example | 3 +++ 3 files changed, 10 insertions(+) diff --git a/src/main/java/de/thm/arsnova/controller/ConfigurationController.java b/src/main/java/de/thm/arsnova/controller/ConfigurationController.java index 3c69d83d9..5981304dd 100644 --- a/src/main/java/de/thm/arsnova/controller/ConfigurationController.java +++ b/src/main/java/de/thm/arsnova/controller/ConfigurationController.java @@ -75,6 +75,9 @@ public class ConfigurationController extends AbstractController { @Value("${links.presenter-documentation.url}") private String presenterDocumentationUrl; + @Value("${feedback.warning:5}") + private String feedbackWarningOffset; + @Value("${features.mathjax.enabled:true}") private String mathJaxEnabled; @@ -212,6 +215,7 @@ public class ConfigurationController extends AbstractController { } config.put("answerOptionLimit", Integer.valueOf(answerOptionLimit)); + config.put("feedbackWarningOffset", Integer.valueOf(feedbackWarningOffset)); config.put("parseAnswerOptionFormatting", Boolean.valueOf(parseAnswerOptionFormatting)); config.put("features", features); diff --git a/src/main/resources/arsnova.properties.example b/src/main/resources/arsnova.properties.example index b81d3369d..3f118a733 100644 --- a/src/main/resources/arsnova.properties.example +++ b/src/main/resources/arsnova.properties.example @@ -197,6 +197,9 @@ features.public-pool.enabled=true # Minutes, after which the feedback is deleted feedback.cleanup=10 +# Number of "you've lost me"/"abgehängt" votes, starting to show warning sign +feedback.warning=5 + # Maximal filesize in bytes upload.filesize_b=4194304 diff --git a/src/test/resources/arsnova.properties.example b/src/test/resources/arsnova.properties.example index b81d3369d..3f118a733 100644 --- a/src/test/resources/arsnova.properties.example +++ b/src/test/resources/arsnova.properties.example @@ -197,6 +197,9 @@ features.public-pool.enabled=true # Minutes, after which the feedback is deleted feedback.cleanup=10 +# Number of "you've lost me"/"abgehängt" votes, starting to show warning sign +feedback.warning=5 + # Maximal filesize in bytes upload.filesize_b=4194304 -- GitLab