From e0bdb4e034db7e6c6c2fc9b8a867274194acfbe1 Mon Sep 17 00:00:00 2001
From: stopyz <stopyz@gmail.com>
Date: Wed, 28 Jun 2023 23:46:21 +0200
Subject: [PATCH] Dashboard App for ACF

---
 app/acf-util/welcome-html.lsp | 8 ++++----
 app/template-html.lsp         | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/app/acf-util/welcome-html.lsp b/app/acf-util/welcome-html.lsp
index f841384..a304b54 100644
--- a/app/acf-util/welcome-html.lsp
+++ b/app/acf-util/welcome-html.lsp
@@ -32,12 +32,12 @@ end
 	local minor_distver = string.gsub(string.match(actual_distver, "%p%d+"), "%D", "") -- Parse Minor for Update
 	local patch_distver = string.gsub(string.match(actual_distver, ".[^.]*$"), "%D", "") -- Parse Patch for Fix
 	if major_sysver == major_distver and minor_sysver == minor_distver and patch_sysver == patch_distver then
-		chkres = "<a id='alpine-version-link' class='version-link version-ok' href='https://www.alpinelinux.org/releases/' title='🟩 Up to Date' target='_blank'><span class='version-check-ok'>Alpine Linux | <span class='version-letter'>" .. check_sysver .. "</span></span></a> up to date "
+		chkres = "<a id='alpine-version-link' class='version-link version-ok' href='https://www.alpinelinux.org/releases/#content' title='🟩 Up to Date' target='_blank'><span class='version-check-ok'>Alpine Linux | <span class='version-letter'>" .. check_sysver .. "</span></span></a> up to date "
 	else
-		chkres = "<a id='alpine-version-link' class='version-link version-update' href='https://www.alpinelinux.org/releases/' title='🟧 Update Needed' target='_blank'><span class='version-check-update'>Alpine Linux | <span class='version-letter'>" .. check_sysver .. "</span></span></a>update needed "
+		chkres = "<a id='alpine-version-link' class='version-link version-update' href='https://www.alpinelinux.org/releases/#content' title='🟧 Update Needed' target='_blank'><span class='version-check-update'>Alpine Linux | <span class='version-letter'>" .. check_sysver .. "</span></span></a>update needed "
 	end
 	if major_sysver ~= major_distver then
-		chkres = "<a id='alpine-version-link' class='version-link version-upgrade' href='https://www.alpinelinux.org/releases/' title='🟥 Upgrade Needed' target='_blank'><span class='version-check-upgrade'>Alpine Linux | <span class='version-letter'>" .. check_sysver .. "</span></span></a>upgrade required "
+		chkres = "<a id='alpine-version-link' class='version-link version-upgrade' href='https://www.alpinelinux.org/releases/#content' title='🟥 Upgrade Needed' target='_blank'><span class='version-check-upgrade'>Alpine Linux | <span class='version-letter'>" .. check_sysver .. "</span></span></a>upgrade required "
 	end
 	
 -- GET DIST VERSION CHANGES
@@ -146,7 +146,7 @@ end
 					<%= chkres %>
 					<span class="check-version">
 					 &nbsp; - &nbsp;
-					 <a class="version-link version-external-link" href="https://www.alpinelinux.org/posts/<%= check_verchanges %>" title="🔗 https://www.alpinelinux.org/posts/<%= check_verchanges %>" target="_blank">Last Release : <%= actual_distver %></a><br>
+					 <a class="version-link version-external-link" href="https://www.alpinelinux.org/posts/<%= check_verchanges %>#content" title="🔗 https://www.alpinelinux.org/posts/<%= check_verchanges %>" target="_blank">Last Release : <%= actual_distver %></a><br>
 					 </span>
 					<span class="data-title">ACF Version : </span><%= sys.value.luaver.value %> 
 					<% if sys.value.ACFlightServer.value ~= "" then %>
diff --git a/app/template-html.lsp b/app/template-html.lsp
index 9572bea..5820829 100644
--- a/app/template-html.lsp
+++ b/app/template-html.lsp
@@ -214,7 +214,7 @@ end
 
 			<div id="footer">
 				<a href="https://www.alpinelinux.org/about/" target="_blank">
-				© Alpine | 2005 - <%= html.html_escape(os.date("%Y")) %>
+				© Alpine | 2008 - <%= html.html_escape(os.date("%Y")) %>
 				</a>
 			</div> <!-- footer -->
 		</div> <!-- page -->
-- 
GitLab