From 436142f546db0191a8076b2d53ac78a18af769d8 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 9 Jan 2021 02:35:55 +0100 Subject: [PATCH] Added second voting --- .../controller/VotingController.java | 2 +- .../templates/errors/alreadyVoted.html | 33 ++++++++++++++++--- .../templates/errors/votingClosed.html | 4 +-- 3 files changed, 31 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java b/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java index eb13216..9f1b561 100644 --- a/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java +++ b/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java @@ -76,7 +76,7 @@ public class VotingController { @RequestMapping("/") public String WelcomeSite() { - LocalDate finishDate = LocalDate.of(2021, Month.JANUARY,8); + LocalDate finishDate = LocalDate.of(2021, Month.JANUARY,17); LocalDate now = LocalDate.now(); if(now.isAfter(finishDate)){ diff --git a/src/main/resources/templates/errors/alreadyVoted.html b/src/main/resources/templates/errors/alreadyVoted.html index 2fafb30..cea84dc 100644 --- a/src/main/resources/templates/errors/alreadyVoted.html +++ b/src/main/resources/templates/errors/alreadyVoted.html @@ -8,15 +8,38 @@ -
-

Du hast schon abgestimmt!

- -
+
+

Du hast schon abgestimmt!

+

Nächste Abstimmung in:

+ +
- diff --git a/src/main/resources/templates/errors/votingClosed.html b/src/main/resources/templates/errors/votingClosed.html index 5c5e830..f04a09e 100644 --- a/src/main/resources/templates/errors/votingClosed.html +++ b/src/main/resources/templates/errors/votingClosed.html @@ -9,8 +9,8 @@
-

Das Voting wurde beendet!

-

Informationen zu Votings sind der Adolfinumwebsite zu entnehmen

+

Du scheinst zu spät zu sein!

+

Momentan findet kein Voting statt