aboutsummaryrefslogtreecommitdiff
path: root/static/admin/index.html
diff options
context:
space:
mode:
authorMantas <11616378+mistermantas@users.noreply.github.com>2019-04-19 21:34:36 +0300
committerGitHub <noreply@github.com>2019-04-19 21:34:36 +0300
commit64a1be9790bfe98e99a12136c1f16684de25de17 (patch)
tree2b8ef94d9b18f016bd3b37c84824a807b2a5c796 /static/admin/index.html
parentd6e9e4733027ea508bb34956438df01cf60bb8bd (diff)
parentfaddea2abdd29418c54e9e1d9bc880f006717604 (diff)
cState v3.1.1: new lang and bugfix
Diffstat (limited to 'static/admin/index.html')
-rw-r--r--static/admin/index.html12
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)
),