From 30aac7a4007c0fa80507abd829ed41fbda506199 Mon Sep 17 00:00:00 2001 From: Marnuri Nitish <NitishM@cardiff.ac.uk> Date: Thu, 12 Dec 2024 03:32:02 +0000 Subject: [PATCH] Add links to dashboard --- src/main/resources/static/js/admin/admin.js | 1 - .../resources/templates/admin/adminBoard.html | 20 ++++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/main/resources/static/js/admin/admin.js b/src/main/resources/static/js/admin/admin.js index 7ad297f..19d73c0 100644 --- a/src/main/resources/static/js/admin/admin.js +++ b/src/main/resources/static/js/admin/admin.js @@ -28,7 +28,6 @@ function toggleUserEnabled(userId, enable) { function updateUserRole(userId){ const roleSelect = document.getElementById('roleDdl'); - debugger const selectedValue = roleSelect.value; const url = `/admin/edit/${userId}/role`; diff --git a/src/main/resources/templates/admin/adminBoard.html b/src/main/resources/templates/admin/adminBoard.html index 942f644..630fee8 100644 --- a/src/main/resources/templates/admin/adminBoard.html +++ b/src/main/resources/templates/admin/adminBoard.html @@ -41,31 +41,41 @@ <div class="card"> <h3>Feeds Management</h3> <p>Review and manage community feeds</p> - <button>Manage</button> + <a th:href="@{/feed}"> + <button>Manage</button> + </a> </div> <div class="card"> <h3>Event Management</h3> <p>Create and manage community events</p> - <button>Manage</button> + <a th:href="@{/event}"> + <button>Manage</button> + </a> </div> <div class="card"> <h3>Database Management</h3> <p>Manage community information database</p> - <button>Manage</button> + <a th:href="@{/categories}"> + <button>Manage</button> + </a> </div> <div class="card"> <h3>Comments Moderation</h3> <p>Review and moderate user comments</p> - <button>Manage</button> + <a th:href="@{/feed}"> + <button>Manage</button> + </a> </div> <div class="card"> <h3>News Management</h3> <p>Create and manage community news</p> - <button>Manage</button> + <a th:href="@{/news}"> + <button>Manage</button> + </a> </div> </div> -- GitLab