add refresh
parent
d8cc73a834
commit
674804aaa4
|
@ -21,6 +21,7 @@ public class DashboardController {
|
||||||
|
|
||||||
@GetMapping("/{lineNumber}")
|
@GetMapping("/{lineNumber}")
|
||||||
public String getDashboard(@PathVariable("lineNumber") String lineNumber, Model model) {
|
public String getDashboard(@PathVariable("lineNumber") String lineNumber, Model model) {
|
||||||
|
model.addAttribute("refresh", true);
|
||||||
model.addAttribute("phases", dashboardService.getPhasesProgressDayWise(lineNumber));
|
model.addAttribute("phases", dashboardService.getPhasesProgressDayWise(lineNumber));
|
||||||
model.addAttribute("date", LocalDate.now());
|
model.addAttribute("date", LocalDate.now());
|
||||||
model.addAttribute("day", LocalDate.now().getDayOfWeek());
|
model.addAttribute("day", LocalDate.now().getDayOfWeek());
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<head th:fragment="head (title)">
|
<head th:fragment="head (title)">
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
|
<meta http-equiv="refresh" content="60" th:if="${refresh == true}">
|
||||||
<link rel="shortcut icon" href="../static/img/favicon.ico" th:href="@{/img/favicon.ico}">
|
<link rel="shortcut icon" href="../static/img/favicon.ico" th:href="@{/img/favicon.ico}">
|
||||||
<link rel="stylesheet" th:href="@{/css/style.css}">
|
<link rel="stylesheet" th:href="@{/css/style.css}">
|
||||||
<script th:src="@{/js/vendor/jquery-3.4.1.min.js}"></script>
|
<script th:src="@{/js/vendor/jquery-3.4.1.min.js}"></script>
|
||||||
|
|
Loading…
Reference in New Issue