removed js from template
All checks were successful
FHIR IG CI/CD Pipeline with Version Persistence / build-ig (push) Successful in 6m40s
FHIR IG CI/CD Pipeline with Version Persistence / deploy (push) Successful in 9s

This commit is contained in:
2026-03-07 04:42:27 +06:00
parent 63ca3fa44f
commit 83ad838fc4

View File

@@ -5,92 +5,37 @@
<p>This page provides the version history for the Bangladesh Core FHIR Implementation Guide.</p> <p>This page provides the version history for the Bangladesh Core FHIR Implementation Guide.</p>
<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>
<div id="version-history-loading"> <p><b>Published Versions</b></p>
<p><i>Loading version history...</i></p> <table class="grid">
</div> <thead>
<tr>
<div id="version-history-content" style="display:none;"> <th>Version</th>
<p><b>Published Versions</b></p> <th>Date</th>
<table class="grid" id="versions-table"> <th>Status</th>
<thead> <th>Description</th>
</tr>
</thead>
<tbody>
{% for entry in site.data['package-list'].list %}
{% unless entry.version == 'current' %}
<tr> <tr>
<th>Version</th> <td><a href="{{entry.path}}"><b>{{entry.version}}</b></a></td>
<th>Date</th> <td>{{entry.date | default: 'N/A'}}</td>
<th>Status</th> <td><span class="badge">{{entry.status | default: 'unknown'}}</span></td>
<th>Description</th> <td>{{entry.desc}}</td>
</tr> </tr>
</thead> {% endunless %}
<tbody id="versions-tbody"> {% endfor %}
</tbody> </tbody>
</table> </table>
<p><b>Continuous Integration Build</b></p>
<div id="ci-build-info"></div>
</div>
<div id="version-history-error" style="display:none;"> <p><b>Continuous Integration Build</b></p>
<p><i>Version history not available.</i></p> {% for entry in site.data['package-list'].list %}
</div> {% if entry.version == 'current' %}
<div style="background-color: #f8f9fa; padding: 10px; border-left: 5px solid #007bff; margin-top: 10px;">
{% raw %} <p>Latest development build: <a href="{{entry.path}}">{{entry.path}}</a></p>
<script type="text/javascript"> </div>
(function() { {% endif %}
var loadingDiv = document.getElementById('version-history-loading'); {% endfor %}
var contentDiv = document.getElementById('version-history-content');
var errorDiv = document.getElementById('version-history-error');
var tbody = document.getElementById('versions-tbody');
var ciDiv = document.getElementById('ci-build-info');
var pathsToTry = [
'package-list.json',
'../package-list.json',
'/core/package-list.json'
];
function loadData(index) {
if (index >= pathsToTry.length) {
loadingDiv.style.display = 'none';
errorDiv.style.display = 'block';
return;
}
fetch(pathsToTry[index])
.then(function(response) {
if (!response.ok) throw new Error('Not found');
return response.json();
})
.then(function(data) {
if (!data || !data.list) throw new Error('Invalid format');
// Clear tbody in case of multiple attempts
tbody.innerHTML = "";
for (var i = 0; i < data.list.length; i++) {
var entry = data.list[i];
if (entry.version !== 'current') {
var row = tbody.insertRow();
row.insertCell(0).innerHTML = '<a href="' + entry.path + '"><b>' + entry.version + '</b></a>';
row.insertCell(1).textContent = entry.date || 'N/A';
row.insertCell(2).innerHTML = '<span class="badge">' + (entry.status || 'unknown') + '</span>';
row.insertCell(3).textContent = entry.desc || '';
} else {
ciDiv.innerHTML = '<div style="background-color: #f8f9fa; padding: 10px; border-left: 5px solid #007bff; margin-top: 10px;">' +
'<p>Latest development build: <a href="' + entry.path + '">' + entry.path + '</a></p>' +
'</div>';
}
}
loadingDiv.style.display = 'none';
contentDiv.style.display = 'block';
})
.catch(function(err) {
console.log('Path failed: ' + pathsToTry[index]);
loadData(index + 1);
});
}
loadData(0);
})();
</script>
{% endraw %}
</div> </div>