install/images: handle new 'hide' flag in images.json

This commit is contained in:
Alexandre Aubin 2023-06-23 03:37:34 +02:00
parent 64e98e7789
commit 6b33246634
7 changed files with 7 additions and 0 deletions

View file

@ -42,6 +42,7 @@ $(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)

View file

@ -51,6 +51,7 @@ $(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)

View file

@ -50,6 +50,7 @@ $(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)

View file

@ -56,6 +56,7 @@ $(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)

View file

@ -56,6 +56,7 @@ $(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)

View file

@ -251,6 +251,7 @@ $(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; }
if (infos.tuto.indexOf(hardware) == -1) return;
// Fill the template
html = $('#image-template').html()

View file

@ -386,6 +386,7 @@ $(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; }
if (infos.tuto.indexOf(hardware) == -1) return;
// Fill the template
html = $('#image-template').html()