mirror of
https://github.com/gophish/gophish
synced 2024-11-14 16:27:23 +00:00
add condition to show completed date only for archived campaign
This commit is contained in:
parent
2aa0a725e0
commit
78aa421f89
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,6 @@ $(document).ready(function () {
|
|||
var row = [
|
||||
escapeHtml(campaign.name),
|
||||
moment(campaign.created_date).format('MMMM Do YYYY, h:mm:ss a'),
|
||||
moment(campaign.completed_date).format('MMMM Do YYYY, h:mm:ss a'),
|
||||
"<span class=\"label " + label + "\" data-toggle=\"tooltip\" data-placement=\"right\" data-html=\"true\" title=\"" + quickStats + "\">" + campaign.status + "</span>",
|
||||
"<div class='pull-right'><a class='btn btn-primary' href='/campaigns/" + campaign.id + "' data-toggle='tooltip' data-placement='left' title='View Results'>\
|
||||
<i class='fa fa-bar-chart'></i>\
|
||||
|
@ -394,6 +393,7 @@ $(document).ready(function () {
|
|||
</button></div>"
|
||||
]
|
||||
if (campaign.status == 'Completed') {
|
||||
row.splice(2, 0, moment(campaign.completed_date).format('MMMM Do YYYY, h:mm:ss a'));
|
||||
rows['archived'].push(row)
|
||||
} else {
|
||||
rows['active'].push(row)
|
||||
|
|
Loading…
Reference in a new issue