Skip to content
Snippets Groups Projects
Commit d4551f42 authored by Byron Biggs's avatar Byron Biggs
Browse files

Revert "Admin Dashboard Changes"

This reverts commit b09f7f15
parent b09f7f15
No related branches found
No related tags found
No related merge requests found
...@@ -5,27 +5,28 @@ ...@@ -5,27 +5,28 @@
</head> </head>
<html lang="en"> <html lang="en">
<body> <body>
<h1>Admin Dashboard</h1> <h1>Admin Dashboard</h1>
<div id="nav-links"> <div id="nav-links">
<a href="/admin/mediaUpload">Upload Media</a> <a href="/admin/mediaUpload">Upload Media</a>
<a href="/admin/adminMediaList">Admin Album</a> <a href="/admin/adminMediaList">Admin Album</a>
<a href="/admin/archivedMedia">Archived Media</a> <a href="/admin/archivedMedia">Archived Media</a>
<a href="/adminAllPosts">Archived Events</a> <a href="/adminAllPosts">Archived Events</a>
<a href="/admin/newsUpload">Create News Article</a> <a href="/admin/newsUpload">Create News Article</a>
<a href="/results">Survey Results</a> <a href="/results">Survey Results</a>
</div> </div>
<h2>Email Data</h2> <!--heading for email data section --> <h2>Email Data</h2> <!--heading for email data section -->
<!-- Placeholder message when no email data is present --> <!-- Placeholder message when no email data is present -->
<div th:if="${emailData.empty}"><!--if the email data section is empty -->
<div th:if="${emailData == null or #lists.isEmpty(emailData)}"><!--if the email data section is empty -->
<p style="text-align: center; font-style: italic;">No queries at present</p> <!--message tells admin table is empty --> <p style="text-align: center; font-style: italic;">No queries at present</p> <!--message tells admin table is empty -->
</div> </div>
<table border="1" th:if="${!emailData.empty}"> <!-- Render the table only if email data is not empty --> <table border="1" th:if="${emailData != null and not #lists.isEmpty(emailData)}"> <!-- Render the table only if email data is not empty -->
<thead> <thead>
<tr> <tr>
<th>ID</th> <!--column heading for ID--> <th>ID</th> <!--column heading for ID-->
...@@ -51,10 +52,10 @@ ...@@ -51,10 +52,10 @@
<h2>Phone Numbers</h2> <!--heading for phone number section --> <h2>Phone Numbers</h2> <!--heading for phone number section -->
<!-- Placeholder message when no phone numbers are present --> <!-- Placeholder message when no phone numbers are present -->
<div th:if="${phoneNumbers.empty}"><!--if phoneNumbersd table is empty --> <div th:if="${phoneNumbers == null}"><!--if phoneNumbersd table is empty -->
<p style="text-align: center; font-style: italic;">No phone call requests at present</p> <!--message tells admin table is empty --> <p style="text-align: center; font-style: italic;">No phone call requests at present</p> <!--message tells admin table is empty -->
</div> </div>
<table border="1" th:if="${!phoneNumbers.empty}"> <!-- render the table only if phone numbers data is not empty --> <table border="1" th:if="${phoneNumbers != null}"> <!-- render the table only if phone numbers data is not empty -->
<thead> <thead>
<tr> <tr>
<th>ID</th> <!--column heading for ID--> <th>ID</th> <!--column heading for ID-->
...@@ -76,4 +77,4 @@ ...@@ -76,4 +77,4 @@
</tbody> </tbody>
</table> </table>
</body> </body>
</html> </html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment