';
for (let j = 0; j < 7; j++) {
- html += '| ';
-
let date = Ext.Date.subtract(tableStartDate, Ext.Date.DAY, j + 7 * i);
let currentDay = Ext.Date.format(date, 'd/m/Y');
- let isBackupOnDay = function(backup, day) {
+ let dayOfWeekCls = Ext.Date.format(date, 'D').toLowerCase();
+ let firstOfMonthCls = Ext.Date.format(date, 'd') === '01'
+ ? 'first-of-month'
+ : '';
+ html += ` | `;
+
+ const isBackupOnDay = function(backup, day) {
return backup && Ext.Date.format(backup.data.backuptime, 'd/m/Y') === day;
};
let backup = backups[bIndex];
- html += '| ' +
- Ext.Date.format(date, 'D, d M Y') + ' | ';
+ html += '';
+ html += `| ${Ext.Date.format(date, 'D, d M Y')} | `;
while (isBackupOnDay(backup, currentDay)) {
html += ' | ';
let text = Ext.Date.format(backup.data.backuptime, 'H:i');
if (backup.data.mark === 'remove') {
- html += ' ' + text + ' ';
+ html += `${text}`;
} else {
- text += ' (' + backup.data.keepName + ')';
+ text += ` (${backup.data.keepName})`;
if (me.useColors) {
let bgColor = COLORS[backup.data.keepName];
let textColor = TEXT_COLORS[backup.data.keepName];
- html += '' + text + ' ';
+ html += `${text}`;
} else {
- html += '' + text + ' ';
+ html += `${text}`;
}
}
html += ' | ';
|---|
|