add refresh

pull/23/head
usama.jameel 2025-05-20 14:57:09 +05:00
parent d8cc73a834
commit 674804aaa4
2 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ public class DashboardController {
@GetMapping("/{lineNumber}")
public String getDashboard(@PathVariable("lineNumber") String lineNumber, Model model) {
model.addAttribute("refresh", true);
model.addAttribute("phases", dashboardService.getPhasesProgressDayWise(lineNumber));
model.addAttribute("date", LocalDate.now());
model.addAttribute("day", LocalDate.now().getDayOfWeek());

View File

@ -3,6 +3,7 @@
<head th:fragment="head (title)">
<meta charset="UTF-8">
<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="stylesheet" th:href="@{/css/style.css}">
<script th:src="@{/js/vendor/jquery-3.4.1.min.js}"></script>