From adf0c08319ad9171b043b89128d7c195a5fe64bc Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sun, 17 Apr 2016 06:27:32 +0200 Subject: [PATCH] [enh] use bootstrap panel colours instead of buttons to make things more obvious --- apps_in_progress_fr.md | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/apps_in_progress_fr.md b/apps_in_progress_fr.md index e677273c..acb1d172 100644 --- a/apps_in_progress_fr.md +++ b/apps_in_progress_fr.md @@ -44,7 +44,7 @@ N’hésitez pas à vous créer un compte GitHub pour faire part de vos remarque
@@ -92,6 +91,15 @@ $(document).ready(function () { if (typeof infos.manifest.description.fr === 'undefined') { infos.manifest.description.fr = infos.manifest.description.en; } + + if (infos.state === "working") { + app_state_bootstrap = "success"; + } else if (infos.state === "inprogress") { + app_state_bootstrap = "warning"; + } else if (infos.state === "notworking") { + app_state_bootstrap = "danger"; + } + html = $('#app-template2').html() .replace(/{app_id}/g, app_id) .replace(/{app_name}/g, infos.manifest.name) @@ -100,6 +108,7 @@ $(document).ready(function () { .replace('{app_branch}', infos.git.branch) .replace('{app_update}', timeConverter(infos.lastUpdate)) .replace('{app_state}', infos.state) + .replace('{app_state_bootstrap}', app_state_bootstrap) .replace('{app_license}', infos.manifest.license); if (infos.manifest.developer) { @@ -116,18 +125,6 @@ $(document).ready(function () { $('#app-accordion2-' + infos.state).append(html); $('.app_'+ app_id).attr('id', 'app_'+ app_id); - - setTimeout(function() { - $(".notworking").each(function() { - $(this).html( 'Non fonctionnel' ); - }); - $(".inprogress").each(function() { - $(this).html( 'En cours' ); - }); - $(".working").each(function() { - $(this).html( 'Fonctionnel' ); - }); - }, 3000); }); }); });