diff options
author | Mantas <11616378+mistermantas@users.noreply.github.com> | 2019-04-19 21:31:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-19 21:31:59 +0300 |
commit | faddea2abdd29418c54e9e1d9bc880f006717604 (patch) | |
tree | 090b130ad9269f4d68a4428a24b119d2e48f24c4 /static | |
parent | 202f8d5cb321109030fbabf93b53efb9932506f2 (diff) |
fix #63
Diffstat (limited to 'static')
-rw-r--r-- | static/admin/index.html | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/static/admin/index.html b/static/admin/index.html index 028edc1..595add0 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -24,7 +24,6 @@ var layoutPostDate = entry.getIn(['data', 'date']); var layoutPostDateEnd = entry.getIn(['data', 'resolvedWhen']); - const layoutDaysInEnglish = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; var resultOfStateProps = {"class": "warning"}; var resultOfState = 'This incident has not yet been resolved.'; @@ -34,20 +33,9 @@ var resultOfState = 'This incident has been resolved.'; } - if (layoutPostDateEnd.getFullYear() === layoutPostDate.getFullYear()) { - if (layoutPostDateEnd.getHours() === layoutPostDate.getHours()) { - if (layoutPostDateEnd.getMinutes() === layoutPostDate.getMinutes()) { - var resultOfStateProps = {"class": "red"}; - var resultOfState = 'It looks like you haven\'t defined when this incident was resolved. Please double-check.'; - } - } - } return h('div', {}, h('h1', {}, entry.getIn(['data', 'title'])), - h('div', {}, - h('small', {}, layoutDaysInEnglish[layoutPostDate.getMonth()] + ' ' + layoutPostDate.getDate() + ', ' + layoutPostDate.getFullYear() + ' at ' + layoutPostDate.toLocaleString('en-US', { hour: 'numeric', minute: 'numeric', hour12: true }) ) - ), h('p', {}, h('strong', resultOfStateProps, resultOfState) ), |