updated history template
All checks were successful
FHIR IG CI/CD Pipeline with Version Persistence / build-ig (push) Successful in 6m36s
FHIR IG CI/CD Pipeline with Version Persistence / deploy (push) Successful in 9s

This commit is contained in:
2026-03-07 03:09:35 +06:00
parent b3cf356b32
commit f2201f4da8

View File

@@ -6,43 +6,63 @@
<p>For a machine-readable version history, see <a href="package-list.json">package-list.json</a>.</p> <p>For a machine-readable version history, see <a href="package-list.json">package-list.json</a>.</p>
{% if site.data.package-list %} <div id="version-history-loading">
<p><i>Loading version history...</i></p>
</div>
<p><b>Published Versions</b></p> <div id="version-history-content" style="display:none;">
<p><b>Published Versions</b></p>
<table class="grid"> <table class="grid" id="versions-table">
<thead> <thead>
<tr>
<th>Version</th>
<th>Date</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for entry in site.data.package-list.list %}
{% if entry.version != 'current' %}
<tr> <tr>
<td><a href="{{ entry.path }}">{{ entry.version }}</a></td> <th>Version</th>
<td>{{ entry.date }}</td> <th>Date</th>
<td>{{ entry.status }}</td> <th>Status</th>
<td>{{ entry.desc }}</td> <th>Description</th>
</tr> </tr>
{% endif %} </thead>
{% endfor %} <tbody id="versions-tbody">
</tbody> </tbody>
</table> </table>
<p><b>Continuous Integration Build</b></p>
<div id="ci-build-info"></div>
</div>
<p><b>Continuous Integration Build</b></p> <div id="version-history-error" style="display:none;">
<p><i>Version history not available.</i></p>
</div>
{% for entry in site.data.package-list.list %} <script>
{% if entry.version == 'current' %} fetch('package-list.json')
<p>The latest development build is available at: <a href="{{ entry.path }}">{{ entry.path }}</a></p> .then(response => response.json())
<p><i>Note: This is a continuous integration build and may be unstable.</i></p> .then(data => {
{% endif %} const tbody = document.getElementById('versions-tbody');
{% endfor %} const ciDiv = document.getElementById('ci-build-info');
{% else %} // Add published versions
<p><i>Version history not available.</i></p> data.list.forEach(entry => {
{% endif %} if (entry.version !== 'current') {
const row = tbody.insertRow();
row.insertCell(0).innerHTML = '<a href="' + entry.path + '">' + entry.version + '</a>';
row.insertCell(1).textContent = entry.date || 'N/A';
row.insertCell(2).textContent = entry.status || 'unknown';
row.insertCell(3).textContent = entry.desc || '';
} else {
// CI build info
ciDiv.innerHTML = '<p>The latest development build is available at: <a href="' + entry.path + '">' + entry.path + '</a></p>' +
'<p><i>Note: This is a continuous integration build and may be unstable.</i></p>';
}
});
// Show content, hide loading
document.getElementById('version-history-loading').style.display = 'none';
document.getElementById('version-history-content').style.display = 'block';
})
.catch(error => {
console.error('Error loading version history:', error);
document.getElementById('version-history-loading').style.display = 'none';
document.getElementById('version-history-error').style.display = 'block';
});
</script>
</div> </div>