Fix expiration text
This commit is contained in:
parent
b895c8518b
commit
282eb7a209
|
@ -36,7 +36,7 @@ function populateBody() {
|
||||||
links.forEach(function(name, index, array) {
|
links.forEach(function(name, index, array) {
|
||||||
var item = findItem(name);
|
var item = findItem(name);
|
||||||
if (item !== null && item !== undefined) {
|
if (item !== null && item !== undefined) {
|
||||||
var limit = (item.delay === 0) ? null : formatDate(item.delay * 86400 + item.created_at);
|
var limit = (item.delay == 0) ? null : formatDate(item.delay * 86400 + item.created_at);
|
||||||
text += `- ${item.name}<%= l(':') %> ${item.url}`;
|
text += `- ${item.name}<%= l(':') %> ${item.url}`;
|
||||||
if (limit !== null) {
|
if (limit !== null) {
|
||||||
text += `\n (<%= l('deadline: ') %>${limit})`;
|
text += `\n (<%= l('deadline: ') %>${limit})`;
|
||||||
|
|
Loading…
Reference in New Issue