mirror of
https://github.com/elseif/MikroTikPatch
synced 2026-07-17 18:49:41 +00:00
Update index.html
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
16854dadf9
commit
2ab01e5328
14
index.html
14
index.html
@ -451,6 +451,10 @@
|
||||
title:"Netinstall (CLI Linux)",
|
||||
type:"netinstall_linux_cli"
|
||||
},
|
||||
{
|
||||
title:"Changelog",
|
||||
type:"changlog"
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
@ -483,6 +487,10 @@
|
||||
{
|
||||
title:"Install image",
|
||||
type:"install"
|
||||
},
|
||||
{
|
||||
title:"Changelog",
|
||||
type:"changlog"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -610,7 +618,6 @@
|
||||
files.push(`netinstall-${version}.zip`);
|
||||
if(type === "netinstall_linux_cli")
|
||||
files.push(`netinstall-${version}.tar.gz`);
|
||||
|
||||
return files;
|
||||
|
||||
};
|
||||
@ -643,6 +650,10 @@
|
||||
<tr class="hv">
|
||||
<td>${d.title}</td>
|
||||
${download.versions.map(v => {
|
||||
if(d.type === "changlog"){
|
||||
const url = "https://download.mikrotik.com/routeros/v.version/CHANGELOG"
|
||||
return `<a href="${url}" class="download-btn" title="${d.title}" target="_blank"><i class="fa fa-download"></i></a>`;
|
||||
}else{
|
||||
const files = fileNames(v.version,g.arch,d.type);
|
||||
if (files && files.length > 0) {
|
||||
const links = files.map(file => {
|
||||
@ -667,6 +678,7 @@
|
||||
}else{
|
||||
return `<td></td>`;
|
||||
}
|
||||
}
|
||||
}).join("")}
|
||||
</tr>
|
||||
`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user