'tr-model': 'Model:',
'tr-target': 'Target',
'tr-version': 'Version:',
+ 'tr-date': 'Datum',
'tr-downloads': 'Downloads',
'tr-custom-downloads': 'Custom Downloads',
'tr-factory-help': 'Factory Abbilder werden über die Weboberfläche der originalen Firmware eingespielt.',
'tr-model': 'Modell:',
'tr-target': 'Platform:',
'tr-version': 'Version:',
+ 'tr-date': 'Date',
'tr-downloads': 'Downloads',
'tr-custom-downloads': 'Custom Downloads',
'tr-factory-help': 'Factory images are for flashing routers with OpenWrt for the first time. Usually via the web interface of the original firmware.',
<div><span class="column tr-model">Model:</span> <span id="image-model"></span></div>
<div><span class="column tr-target">Target:</span> <span id="image-target"></span></div>
<div><span class="column tr-version">Version:</span> <span id="image-version"></span> (<span id="image-code"></span>)</div>
+ <div><span class="column tr-date">Date:</span> <span id="image-date"></span></div>
</div>
<div id="download-links">
updateImages(
mobj.version_number,
mobj.version_commit,
+ mobj.build_at,
get_model_titles(mobj.titles),
download_url, mobj, true
);
});
}
-function updateImages(version, code, model, url, mobj, is_custom) {
- hide('buildlog')
+function updateImages(version, code, date, model, url, mobj, is_custom) {
+ hide('buildlog');
+
// add download button for image
function addLink(type, file) {
var a = document.createElement('A');
Array.from(document.getElementsByClassName('download-help'))
.forEach(e => e.style.display = 'none');
- if (version && code && model && url && mobj) {
+ if (version && code && date && model && url && mobj) {
var target = mobj.target;
var images = mobj.images;
$('image-target').innerText = target;
$('image-version').innerText = version;
$('image-code').innerText = code;
+ $('image-date').innerText = date;
images.sort((a, b) => a.name.localeCompare(b.name));
if (model in obj['models']) {
var url = obj.url;
var code = obj.version_code;
+ var date = obj.build_data || 'unknown';
var mobj = obj['models'][model];
- updateImages(version, code, model, url, mobj, false);
+ updateImages(version, code, date, model, url, mobj, false);
current_model = mobj;
} else {
updateImages();