2021-03-03 16:10:03 +01:00
---
title: Vorinstallierte Images
template: docs
taxonomy:
category: docs
routes:
default: '/images'
---
< span class = "javascriptDisclaimer" >
Für diese Seite muss JavaScript aktiviert sein, damit sie korrekt angezeigt werden kann :s.
< br / >
< br / >
< / span >
N B : Auch wenn das Image nicht der neuesten Version von YunoHost entspricht, können Sie es dennoch verwenden und anschließend ein Systemupdate durchführen.
< div class = "hardware-image" >
< div id = "cards-list" >
< / div >
< / div >
2022-09-15 23:59:05 +02:00
< template id = "image-template" >
< div id = "{id}" class = "card panel panel-default" >
2021-03-03 16:10:03 +01:00
< div class = "panel-body text-center" >
< h3 > {name}< / h3 >
< div class = "card-comment" > {comment}< / div >
< div class = "card-desc text-center" >
2022-09-15 23:59:05 +02:00
< img src = "/user/images/{image}" height = 100 style = "vertical-align:middle" >
2021-03-03 16:10:03 +01:00
< / div >
< / div >
< div class = "annotations flex-container" >
< div class = "flex-child annotation" > < a href = "{file}.sha256sum" > [fa=barcode] Checksum< / a > < / div >
< div class = "flex-child annotation" > < a href = "{file}.sig" > [fa=tag] Signature< / a > < / div >
< / div >
< div class = "btn-group" role = "group" >
2022-09-15 23:59:05 +02:00
< a href = "{file}" target = "_BLANK" type = "button" class = "btn btn-info col-sm-12" > < span class = "glyphicon glyphicon-download-alt" aria-hidden = "true" > < / span > Download < small > {version}< / small > < / a >
2021-03-03 16:10:03 +01:00
< / div >
2022-09-15 23:59:05 +02:00
< / div >
< / template >
2021-03-03 16:10:03 +01:00
< script >
/*
###############################################################################
2022-09-15 23:59:05 +02:00
Script that loads the infos from javascript and creates the corresponding
2021-03-03 16:10:03 +01:00
cards
###############################################################################
*/
$(document).ready(function () {
console.log("in load");
$.getJSON('https://build.yunohost.org/images.json', function (images) {
$.each(images, function(k, infos) {
2023-06-23 03:37:34 +02:00
if (infos.hide == true) { return; }
2021-03-03 16:10:03 +01:00
// Fill the template
html = $('#image-template').html()
.replace('{id}', infos.id)
.replace('{name}', infos.name)
.replace('{comment}', infos.comment || " ")
2022-09-15 23:59:05 +02:00
.replace('%7Bimage%7D', infos.image)
2021-03-03 16:10:03 +01:00
.replace('{image}', infos.image)
.replace('{version}', infos.version);
2022-09-15 23:59:05 +02:00
if (!infos.file.startsWith("http"))
infos.file="https://build.yunohost.org/"+infos.file;
html = html.replace(/%7Bfile%7D/g, infos.file).replace(/{file}/g, infos.file);
2021-03-03 16:10:03 +01:00
if ((typeof(infos.has_sig_and_sums) !== 'undefined') & & infos.has_sig_and_sums == false)
{
var $html = $(html);
$html.find(".annotations").html(" ");
html = $html[0];
2024-03-23 08:59:52 +01:00
}
2021-03-03 16:10:03 +01:00
$('#cards-list').append(html);
});
});
});
< / script >