mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
7a01793062
* Revert "Revert "markdown format"" * fix formating * fix readme * add .markdownlint.json * add markdownlint-rules-grav-pages * add markdownlint-rules-grav-pages files * add license for Markdown Lint Rules for Grav Pages * fix [figure] mess * fix [figure] mess 2 * fix [figure] mess 3 * maj .gitignore * various fixes * fix markdownlint-rules-grav-pages * second formater pass * various manual fixes * add .markdownlintignore * markdownlintignore: auto-generated pages * disable proper-names for html_elements * another bunch of various markdown fixes * Update pages/02.administer/10.install/20.dns_config/dns_config.es.md Co-authored-by: tituspijean <titus+yunohost@pijean.ovh> --------- Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Co-authored-by: tituspijean <titus+yunohost@pijean.ovh>
77 lines
2.9 KiB
Markdown
77 lines
2.9 KiB
Markdown
---
|
|
title: Images
|
|
template: docs
|
|
taxonomy:
|
|
category: docs
|
|
routes:
|
|
default: '/images'
|
|
---
|
|
|
|
<span class="javascriptDisclaimer">
|
|
Cette page requiert que Javascript soit activé pour s'afficher correctement :s.
|
|
<br/>
|
|
<br/>
|
|
</span>
|
|
|
|
!!!! Même si l'image ne correspond pas à la dernière version de YunoHost, vous pouvez tout de même l'utiliser puis faire une mise à jour du système après l'installation !
|
|
|
|
!!! Si vous souhaitez vérifier la validité de nos images signées, vous pouvez [télécharger notre clé publique](https://forge.yunohost.org/yunohost.asc).
|
|
|
|
<div class="hardware-image">
|
|
<div id="cards-list">
|
|
</div>
|
|
</div>
|
|
<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">
|
|
<img src="/user/images/{image}" height=100 style="vertical-align:middle">
|
|
</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">
|
|
<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>
|
|
</template>
|
|
|
|
<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) {
|
|
if (infos.hide == true) { return; }
|
|
// Fill the template
|
|
html = $('#image-template').html()
|
|
.replace('{id}', infos.id)
|
|
.replace('{name}', infos.name)
|
|
.replace('{comment}', infos.comment || " ")
|
|
.replace('%7Bimage%7D', infos.image)
|
|
.replace('{image}', infos.image)
|
|
.replace('{version}', infos.version);
|
|
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);
|
|
|
|
if ((typeof(infos.has_sig_and_sums) !== 'undefined') && infos.has_sig_and_sums == false)
|
|
{
|
|
var $html = $(html);
|
|
$html.find(".annotations").html(" ");
|
|
html = $html[0];
|
|
}
|
|
$('#cards-list').append(html);
|
|
});
|
|
});
|
|
});
|
|
</script>
|