doc/pages/01.administrate/05.install/10.images/images.es.md

79 lines
2.6 KiB
Markdown
Raw Normal View History

2020-11-11 11:47:10 +01:00
---
title: Imagenes
template: docs
taxonomy:
category: docs
routes:
default: '/images'
2020-11-11 11:47:10 +01:00
---
2019-08-13 17:47:08 +02:00
<span class="javascriptDisclaimer">
Esta página requiere que Javascript esté instalado par aparecer correctamente :s.
<br/>
<br/>
</span>
2020-09-14 11:23:05 +02:00
N.B. : Incluso si la imagen no corresponde con la última versión de YunoHost, puedes utilizarla y actualizarla después de la instalación !
2019-08-13 17:47:08 +02:00
2021-02-07 21:43:06 +01:00
<div class="hardware-image">
2019-08-13 17:47:08 +02:00
<div id="cards-list">
</div>
2021-02-07 21:43:06 +01:00
</div>
2019-08-13 17:47:08 +02:00
<script type="text/template" id="image-template">
<div id="{id}" class="card panel panel-default">
<div class="panel-body text-center">
<h3>{name}</h3>
<div class="card-comment">{comment}</div>
<div class="card-desc text-center">
2021-02-07 21:43:06 +01:00
<img src="/user/images/{image}" height=100 style="vertical-align:middle">
2019-08-13 17:47:08 +02:00
</div>
</div>
2021-02-07 21:43:06 +01:00
<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>
2019-08-13 17:47:08 +02:00
</div>
<div class="btn-group" role="group">
<a href="{file}" target="_BLANK" type="button" class="btn btn-info col-sm-12"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span> Télécharger <small>{version}</small></a>
</div>
</div>
</script>
<script>
/*
###############################################################################
Script that loads the infos from javascript and creates the corresponding
cards
###############################################################################
*/
$(document).ready(function () {
console.log("in load");
$.getJSON('https://build.yunohost.org/images.json', function (images) {
$.each(images, function(k, infos) {
// Fill the template
html = $('#image-template').html()
.replace('{id}', infos.id)
.replace('{name}', infos.name)
.replace('{comment}', infos.comment || "&nbsp;")
.replace('{image}', infos.image)
.replace('{version}', infos.version);
if (infos.file.startsWith("http"))
html = html.replace(/{file}/g, infos.file);
else
html = html.replace(/{file}/g, "https://build.yunohost.org/"+infos.file);
if ((typeof(infos.has_sig_and_sums) !== 'undefined') && infos.has_sig_and_sums == false)
{
var $html = $(html);
$html.find(".annotations").html("&nbsp;");
html = $html[0];
}
$('#cards-list').append(html);
});
});
});
</script>