2013-11-17 13:36:38 +01:00
|
|
|
#Apps
|
2013-12-08 14:02:00 +01:00
|
|
|
## Disponible
|
2013-11-17 13:36:38 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
<div class="panel-group" id="app-accordion"></div>
|
|
|
|
|
|
|
|
<script type="text/template" id="app-template">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<div class="panel-title">
|
|
|
|
<a data-toggle="collapse" data-parent="#app-accordion" href="#app_{app_id}">{app_name} <em><small>({app_id})</small></em></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-collapse collapse app_{app_id}">
|
|
|
|
<div class="panel-body">
|
|
|
|
<p><strong>Description</strong>: {app_description}</p>
|
|
|
|
<p><strong>Dernière mise à jour (UTC)</strong>: {app_update}</p>
|
|
|
|
<p><strong>Mainteneur</strong>: {app_maintainer} <small class="text-muted">({app_mail})</small></p>
|
|
|
|
<p><strong>Git</strong>: {app_git} <small class="text-muted">({app_branch})</small></p>
|
2013-12-01 14:52:27 +01:00
|
|
|
<a href="#/app_{app_id}_fr" target="_blank" class="btn btn-default">Documentation</a>
|
2013-11-17 13:36:38 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function timeConverter(UNIX_timestamp) {
|
|
|
|
var a = new Date(UNIX_timestamp*1000);
|
|
|
|
var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
|
|
|
|
var year = a.getFullYear();
|
|
|
|
var month = months[a.getMonth()];
|
|
|
|
var date = a.getDate();
|
|
|
|
var hour = a.getHours();
|
|
|
|
var min = a.getMinutes();
|
|
|
|
if (hour == 0) { hour = '00'; }
|
|
|
|
if (min == 0) { min = '00'; }
|
|
|
|
var time = date+' '+month+' '+year+' at '+hour+':'+min;
|
|
|
|
return time;
|
|
|
|
}
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
2013-11-26 15:27:27 +01:00
|
|
|
$.getJSON('/list.json', function(app_list) {
|
2013-11-17 13:36:38 +01:00
|
|
|
console.log(app_list);
|
|
|
|
$.each(app_list, function(app_id, infos) {
|
2013-11-17 13:40:01 +01:00
|
|
|
if (typeof infos.manifest.description.fr === undefined) {
|
|
|
|
infos.manifest.description.fr = infos.manifest.description.en;
|
|
|
|
}
|
2013-11-17 13:36:38 +01:00
|
|
|
html = $('#app-template').html()
|
|
|
|
.replace(/{app_id}/g, app_id)
|
|
|
|
.replace(/{app_name}/g, infos.manifest.name)
|
|
|
|
.replace('{app_description}', infos.manifest.description.fr)
|
|
|
|
.replace('{app_maintainer}', infos.manifest.developer.name)
|
|
|
|
.replace('{app_mail}', infos.manifest.developer.email)
|
|
|
|
.replace('{app_git}', infos.git.url)
|
|
|
|
.replace('{app_branch}', infos.git.branch)
|
|
|
|
.replace('{app_update}', timeConverter(infos.lastUpdate));
|
|
|
|
$('#app-accordion').append(html);
|
|
|
|
$('.app_'+ app_id).attr('id', 'app_'+ app_id);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
2013-12-08 14:02:00 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
## En cours d'intégration
|
|
|
|
---
|
|
|
|
|
|
|
|
| Nom | Packageur | Etat d'avancement | URL du git |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| Radicale | beudbeud | Testé | https://github.com/abeudin/radicale_ynh |
|
|
|
|
| Wordpress | beudbeud | Testé | https://github.com/abeudin/wordpress_ynh |
|
|
|
|
|
|
|
|
|