2022-09-11 16:04:06 +01:00
|
|
|
import changelogManager from "../changelog/changelogManager.js"
|
|
|
|
|
|
|
|
export function changelogHistory() { // blockId 0
|
|
|
|
let history = changelogManager("history");
|
|
|
|
let render = ``;
|
2022-11-15 17:37:33 +00:00
|
|
|
|
|
|
|
let historyLen = history.length
|
2022-09-11 16:04:06 +01:00
|
|
|
for (let i in history) {
|
2022-11-15 17:37:33 +00:00
|
|
|
let separator = (i != 0 && i != historyLen) ? '<div class="separator"></div>' : ''
|
|
|
|
render += `${separator}${history[i]["banner"] ? `<div class="changelog-banner"><img class="changelog-img" src="${history[i]["banner"]}" onerror="this.style.display='none'"></img></div>` : ''}<div id="popup-desc" class="changelog-subtitle">${history[i]["title"]}</div><div id="popup-desc" class="desc-padding">${history[i]["content"]}</div>`
|
2022-09-11 16:04:06 +01:00
|
|
|
}
|
|
|
|
return render;
|
2022-11-15 17:37:33 +00:00
|
|
|
}
|