added titles to activity indicators

This commit is contained in:
lllllllillllllillll 2024-05-21 00:24:30 -07:00
parent 03be1187ef
commit 774d5f4f62
2 changed files with 3 additions and 3 deletions

View File

@ -232,7 +232,7 @@ export const appSearch = async (req, res) => {
res.render("apps", {
name: req.session.user,
role: req.session.role,
avatar: req.session.avatar,
avatar: req.session.user.charAt(0).toUpperCase(),
list_start: list_start + 1,
list_end: list_end,
app_count: results.length,

View File

@ -20,14 +20,14 @@ export const Users = async (req, res) => {
let allUsers = await User.findAll();
allUsers.forEach((account) => {
let active = '<span class="badge badge-outline text-green">Active</span>'
let active = '<span class="badge badge-outline text-green" title="User has logged-in within the last 30 days.">Active</span>'
let lastLogin = new Date(account.lastLogin);
let currentDate = new Date();
let days = Math.floor((currentDate - lastLogin) / (1000 * 60 * 60 * 24));
let avatar = account.username.charAt(0);
if (days > 30) {
active = '<span class="badge badge-outline text-grey">Inactive</span>';
active = '<span class="badge badge-outline text-grey" title="User has not logged-in within the last 30 days.">Inactive</span>';
}