Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Use more complete checks for generated HTML linting
run: cp -f .github/linters/.htmlhintrc_morechecks .github/linters/.htmlhintrc
- name: Lint Generated HTML
uses: super-linter/super-linter/slim@v8
uses: super-linter/super-linter/slim@v8.1.0
env:
DEFAULT_BRANCH: main
FILTER_REGEX_INCLUDE: static/html/.*
Expand Down
10 changes: 8 additions & 2 deletions src/js/techreport/timeseries.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,16 @@ class Timeseries {
const latestMoM = latestClient?.momPerc;
const latestMoMStr = latestClient?.momString;
const styling = UIUtils.getChangeStatus(latestMoM, changeMeaning);
const monthChange = document.createElement('span');

/* Add month change element if not already present */
let monthChange = card.querySelector('.monthchange');
if(!monthChange) {
monthChange = document.createElement('span');
card.appendChild(monthChange);
}

monthChange.textContent = latestMoMStr;
monthChange.className = `monthchange ${styling?.color} ${styling?.direction}`;
card.appendChild(monthChange);
}
}
});
Expand Down
Loading