From 77130785969fd466e7e2c38d87aa2b91d50be709 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Sat, 4 May 2024 12:35:22 +0400 Subject: [PATCH] Fix header --- .../java/ru/ulstu/grant/service/GrantScheduler.java | 13 +++++-------- src/main/resources/templates/papers/paper.html | 2 +- .../resources/templates/projects/dashboard.html | 4 +++- src/main/resources/templates/projects/project.html | 4 +++- src/main/resources/templates/projects/projects.html | 10 ++++++---- 5 files changed, 18 insertions(+), 15 deletions(-) diff --git a/src/main/java/ru/ulstu/grant/service/GrantScheduler.java b/src/main/java/ru/ulstu/grant/service/GrantScheduler.java index d026911..5131227 100644 --- a/src/main/java/ru/ulstu/grant/service/GrantScheduler.java +++ b/src/main/java/ru/ulstu/grant/service/GrantScheduler.java @@ -5,9 +5,6 @@ import org.slf4j.LoggerFactory; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Service; -import java.io.IOException; -import java.text.ParseException; - @Service public class GrantScheduler { private final static boolean IS_DEADLINE_NOTIFICATION_BEFORE_WEEK = true; @@ -34,11 +31,11 @@ public class GrantScheduler { @Scheduled(cron = "0 0 8 * * ?", zone = "Europe/Samara") public void loadGrantsFromKias() { log.debug("GrantScheduler.loadGrantsFromKias started"); - try { - grantService.createFromKias(); - } catch (ParseException | IOException e) { - e.printStackTrace(); - } +// try { +// grantService.createFromKias(); +// } catch (ParseException | IOException e) { +// e.printStackTrace(); +// } log.debug("GrantScheduler.loadGrantsFromKias finished"); } } diff --git a/src/main/resources/templates/papers/paper.html b/src/main/resources/templates/papers/paper.html index 1343b13..9bd1f90 100644 --- a/src/main/resources/templates/papers/paper.html +++ b/src/main/resources/templates/papers/paper.html @@ -77,7 +77,7 @@
-
+
+ xmlns:th="http://www.thymeleaf.org" + layout:decorate="~{default}" + xmlns="http://www.w3.org/1999/html"> diff --git a/src/main/resources/templates/projects/project.html b/src/main/resources/templates/projects/project.html index b8999a5..ca96139 100644 --- a/src/main/resources/templates/projects/project.html +++ b/src/main/resources/templates/projects/project.html @@ -1,7 +1,9 @@ + xmlns:th="http://www.thymeleaf.org" + layout:decorate="~{default}" + xmlns="http://www.w3.org/1999/html"> diff --git a/src/main/resources/templates/projects/projects.html b/src/main/resources/templates/projects/projects.html index de334f8..08c5a94 100644 --- a/src/main/resources/templates/projects/projects.html +++ b/src/main/resources/templates/projects/projects.html @@ -1,7 +1,9 @@ + xmlns:th="http://www.thymeleaf.org" + layout:decorate="~{default}" + xmlns="http://www.w3.org/1999/html"> @@ -13,18 +15,18 @@

Проекты

-
+
-
+
-
+