Skip to content

Commit

Permalink
job details add seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeTWC1984 committed May 13, 2024
1 parent d9c23fc commit 771b768
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions htdocs/js/pages/JobDetails.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ Class.subclass(Page.Base, "Page.JobDetails", {
if (group || event.target) jobTarget = this.getNiceGroup(group, event.target, col_width);
else if (job.nice_target) jobTarget = '<div class="ellip" style="max-width:' + col_width + 'px;">' + job.nice_target + '</div>';

let jobStarted = get_nice_date_time(job.time_start, false, true);
let jobStarted = get_nice_date_time(job.time_start, true, true);
if ((job.time_start - job.now >= 60) && !event.multiplex && !job.source) {
jobStarted = `<span style="color:red" title="Scheduled Time: ${get_nice_date_time(job.now, false, true)}">${get_nice_date_time(job.time_start, false, true)}</span>`
jobStarted = `<span style="color:red" title="Scheduled Time: ${get_nice_date_time(job.now, true, true)}">${get_nice_date_time(job.time_start, true, true)}</span>`
}

html += '</fieldset>';
Expand All @@ -265,7 +265,7 @@ Class.subclass(Page.Base, "Page.JobDetails", {
<div class="job-details grid-item"><div class="info_label">PLUGIN:</div><div class="info_value">${jobPlugin}</div></div>
<div class="job-details grid-item"><div class="info_label">MEMO:</div><div class="info_value">${job.memo || '(None)'}</div></div>
<div class="job-details grid-item"><div class="info_label">HOST:</div><div class="info_value">${this.getNiceGroup(null, job.hostname, col_width)}</div></div>
<div class="job-details grid-item"><div class="info_label">END:</div><div class="info_value">${get_nice_date_time(job.time_end, false, true)}</div></div>
<div class="job-details grid-item"><div class="info_label">END:</div><div class="info_value">${get_nice_date_time(job.time_end, true, true)}</div></div>
<div class="job-details grid-item"><div class="info_value">${jumpToHist }</div></div>
</div>
Expand Down Expand Up @@ -818,7 +818,7 @@ Class.subclass(Page.Base, "Page.JobDetails", {
<div class="job-details grid-item"><div class="info_label">CAT:</div><div class="info_value">${this.getNiceCategory(cat, col_width)}</div></div>
<div class="job-details grid-item"><div class="info_label">TARGET:</div><div class="info_value">${this.getNiceGroup(group, event.target, col_width) }</div></div>
<div class="job-details grid-item"><div class="info_label">SOURCE:</div><div class="info_value">${job.source || 'Scheduler'}</div></div>
<div class="job-details grid-item"><div class="info_label">START:</div><div class="info_value">${get_nice_date_time(job.time_start, false, true) }</div></div>
<div class="job-details grid-item"><div class="info_label">START:</div><div class="info_value">${get_nice_date_time(job.time_start, true, true) }</div></div>
<div class="job-details grid-item"><div class="info_label">EVENT:</div><div class="info_value">${eventTitle}</div></div>
<div class="job-details grid-item"><div class="info_label">ARG:</div><div class="info_value">${encode_entities(job.arg || '(None)')}</div></div>
Expand Down
8 changes: 4 additions & 4 deletions lib/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1123,11 +1123,11 @@ module.exports = Class.create({
// remove passwords and salts
for (var idx = 0, len = users.length; idx < len; idx++) {
users[idx] = Tools.copyHashRemoveKeys(users[idx], { password: 1, salt: 1 });
}

// sanitize
users[idx].email = users[idx].email.replace(/<.+>/g, '');
users[idx].full_name = users[idx].full_name.replace(/<.+>/g, '');
// sanitize
users[idx].email = users[idx].email.replace(/<.+>/g, '');
users[idx].full_name = users[idx].full_name.replace(/<.+>/g, '');
}

// success, return users and list header
callback({
Expand Down

0 comments on commit 771b768

Please sign in to comment.