diff --git a/public/assets/js/adminDirectory.js b/public/assets/js/adminDirectory.js
index 04b321f..e6a258c 100644
--- a/public/assets/js/adminDirectory.js
+++ b/public/assets/js/adminDirectory.js
@@ -9,6 +9,8 @@ function getDirectoryEntries() {
row.innerHTML = `
${entry.number} | ${entry.name} | | `;
table.appendChild(row);
});
+ const dirCount = document.getElementById('dirCount');
+ dirCount.textContent = data.length;
})
.catch(error => console.error('Error fetching directory:', error));
}
diff --git a/views/admin/index.ejs b/views/admin/index.ejs
index 20b71d2..9ad8008 100644
--- a/views/admin/index.ejs
+++ b/views/admin/index.ejs
@@ -1,11 +1,13 @@
+
AstroCom Admin
+
+
+
Admin Dashboard
+
Create New Server
+
Total Servers: 0 | Total Directory Entries: 0
+
+
+
+
+
+ ID |
+ Hostname:Port |
+ IAX Username/Context |
+ IAX2 Secret |
+ Number Block |
+ API Key |
+ Contact |
+ Actions |
+
+
+
+
+
+
+
+
-
Admin Dashboard
-
Create New Server
-
Total Servers: 0 | Total Directory Entries: 0
-
-
-
-
-
-
- ID |
- Hostname:Port |
- IAX Username/Context |
- IAX2 Secret |
- Number Block |
- API Key |
- Contact |
- Actions |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Directory Management
-
-
-
-
- Number |
- Name |
- Actions |
-
-
-
-
-
-
-
+
Directory Management
+
+
+
+ Number |
+ Name |
+ Actions |
+
+
+
+
+
+
+
+
\ No newline at end of file