mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
[fix] Add application list in french too and fix links
This commit is contained in:
parent
85578fe0aa
commit
37563fd578
5 changed files with 104 additions and 16 deletions
4
apps.md
4
apps.md
|
@ -1,6 +1,6 @@
|
|||
#Official apps <img src="https://yunohost.org/images/roundcube.png"><img src="https://yunohost.org/images/ttrss.png"><img src="https://yunohost.org/images/wordpress.png"><img src="https://yunohost.org/images/transmission.png"><img src="https://yunohost.org/images/jappix.png">
|
||||
|
||||
<a class="btn btn-lg btn-default" href="/apps">Official apps</a> <a class="btn btn-lg btn-default" href="/apps_in_progress">Apps in progress</a> <a class="btn btn-lg btn-default" href="/apps_wishlist_en">Apps wishlist</a>
|
||||
<a class="btn btn-lg btn-default disabled" href="/apps_en">Official apps</a> <a class="btn btn-lg btn-default" href="/apps_in_progress_en">Apps in progress</a> <a class="btn btn-lg btn-default" href="/apps_wishlist_en">Apps wishlist</a>
|
||||
|
||||
<div class="panel-group" id="app-accordion"></div>
|
||||
|
||||
|
@ -74,4 +74,4 @@ $(document).ready(function () {
|
|||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
# Apps in progress
|
||||
|
||||
<a class="btn btn-lg btn-default" href="/apps">Official apps</a> <a class="btn btn-lg btn-default disabled" href="/apps_in_progress">Apps in progress</a> <a class="btn btn-lg btn-default" href="/apps_wishlist_en">Apps wishlist</a>
|
||||
<a class="btn btn-lg btn-default" href="/apps_en">Official apps</a> <a class="btn btn-lg btn-default disabled" href="/apps_in_progress_en">Apps in progress</a> <a class="btn btn-lg btn-default" href="/apps_wishlist_en">Apps wishlist</a>
|
||||
|
||||
The following applications are being packaged on by a growing number of packagers.
|
||||
<div class="alert alert-danger">These applications are **NOT** validated by the packaging team, and as such, **no official support is provided** for them.<br>
|
||||
You can test and use them, **at your own risk**.
|
||||
<div class="alert alert-danger">They are **NOT** validated by the packaging team, and as such, **no official support is provided** for them.<br>
|
||||
You can test and use them **at your own risk**.
|
||||
</div>
|
||||
|
||||
There are installable through the [administration web](/admin) interface by choosing "Install custom app", or using the [moulinette](/moulinette):
|
||||
You can install them through the [administration web interface](/admin) by choosing "Install custom app", or using the [moulinette](/moulinette):
|
||||
```bash
|
||||
yunohost app install https://github.com/<packager>/<app_repository>
|
||||
```
|
||||
|
||||
The packagers will appreciate your remarks. If you test them and find issues, or have ideas for improvement, do not hesitate to file issues directly on their repositories project page.
|
||||
The packagers will appreciate your remarks. If you test them and find issues, or ideas for improvement, do not hesitate to file issues directly on their repositories project page.
|
||||
|
||||
<br>
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Apps en cours
|
||||
|
||||
<a class="btn btn-lg btn-default" href="/apps_fr">Apps officielles</a>
|
||||
<a class="btn btn-lg btn-default" href="/apps_in_progress_en">Apps en cours</a>
|
||||
<a class="btn btn-lg btn-default" href="/apps_wishlist_en">Apps souhaitées</a>
|
||||
<a class="btn btn-lg btn-default disabled" href="/apps_in_progress_fr">Apps en cours</a>
|
||||
<a class="btn btn-lg btn-default" href="/apps_wishlist_fr">Apps souhaitées</a>
|
||||
|
||||
De plus en plus d'applications sont mises à disposition par les packagers.
|
||||
<div class="alert alert-danger">Ces applications **n’ont pas** été validées par l'équipe YunoHost et **ne sont pas** officiellement prises en charge.<br>Vous pouvez les tester et les utiliser à **vos propres risques**.
|
||||
|
@ -15,6 +15,94 @@ yunohost app install https://github.com/<packageur>/<dépôt_app>
|
|||
|
||||
N'hésitez pas à vous créer un compte GitHub pour faire part de vos remarques aux packagers (sous forme d'« issues ») ou à leur proposer des améliorations (sous forme de « pull requests »).
|
||||
|
||||
Maintenant, compte tenu du nombre d'applications, nous ne sommes pas en mesure de maintenir la liste en plusieurs langues et nous vous invitons à consulter la :
|
||||
<br>
|
||||
|
||||
<a class="btn btn-lg btn-default" href="/apps_in_progress_en">Liste des apps en cours</a>
|
||||
<div class="panel-group" id="app-accordion2"></div>
|
||||
|
||||
<script type="text/template" id="app-template2">
|
||||
<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>: <a href="{app_git}" target="_blank">{app_git}</a> <small class="text-muted">({app_branch})</small></p>
|
||||
<div class="{app_state}"/>
|
||||
</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 < 10) { hour = '0' + hour; }
|
||||
if (min < 10) { min = '0' + min; }
|
||||
var time = date+' '+month+' '+year+' at '+hour+':'+min;
|
||||
return time;
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$.getJSON('/community.json', function(app_list) {
|
||||
// Cast as array
|
||||
var app_list = $.map(app_list, function(el) { return el; });
|
||||
// Sort alpha
|
||||
app_list.sort(function(a, b){
|
||||
if (a.manifest.id > b.manifest.id) {return 1;}
|
||||
else if (a.manifest.id < b.manifest.id) {return -1;}
|
||||
return 0;
|
||||
});
|
||||
$.each(app_list, function(k, infos) {
|
||||
app_id = infos.manifest.id;
|
||||
if (typeof infos.manifest.description.fr === 'undefined') {
|
||||
infos.manifest.description.fr = infos.manifest.description.en;
|
||||
}
|
||||
html = $('#app-template2').html()
|
||||
.replace(/{app_id}/g, app_id)
|
||||
.replace(/{app_name}/g, infos.manifest.name)
|
||||
.replace('{app_description}', infos.manifest.description.fr)
|
||||
.replace(/{app_git}/g, infos.git.url)
|
||||
.replace('{app_branch}', infos.git.branch)
|
||||
.replace('{app_update}', timeConverter(infos.lastUpdate))
|
||||
.replace('{app_state}', infos.state);
|
||||
|
||||
if (infos.manifest.developer) {
|
||||
html = html
|
||||
.replace('{app_maintainer}', infos.manifest.developer.name)
|
||||
.replace('{app_mail}', infos.manifest.developer.email);
|
||||
}
|
||||
|
||||
if (infos.manifest.maintainer) {
|
||||
html = html
|
||||
.replace('{app_maintainer}', infos.manifest.maintainer.name)
|
||||
.replace('{app_mail}', infos.manifest.maintainer.email);
|
||||
}
|
||||
|
||||
$('#app-accordion2').append(html);
|
||||
$('.app_'+ app_id).attr('id', 'app_'+ app_id);
|
||||
|
||||
setTimeout(function() {
|
||||
$(".notworking").each(function() {
|
||||
$(this).html( '<a class="btn btn-small btn-danger disabled" href="#">Non fonctionnel</a>' );
|
||||
});
|
||||
$(".inprogress").each(function() {
|
||||
$(this).html( '<a class="btn btn-small btn-warning disabled" href="#">En cours</a>' );
|
||||
});
|
||||
$(".ready").each(function() {
|
||||
$(this).html( '<a class="btn btn-small btn-success disabled" href="#">Fonctionnel</a>' );
|
||||
});
|
||||
}, 3000);
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#Apps wishlist
|
||||
|
||||
<a class="btn btn-lg btn-default" href="/apps">Official apps</a> <a class="btn btn-lg btn-default" href="/apps_in_progress_en">Apps in progress</a> <a class="btn btn-lg btn-default" href="/apps_wishlist">Apps wishlist</a>
|
||||
<a class="btn btn-lg btn-default" href="/apps_en">Official apps</a> <a class="btn btn-lg btn-default" href="/apps_in_progress_en">Apps in progress</a> <a class="btn btn-lg btn-default disabled" href="/apps_wishlist_en">Apps wishlist</a>
|
||||
|
||||
The following list is a compiled wishlist of applications that would be nice-to-have.
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Apps souhaitées
|
||||
|
||||
<a class="btn btn-lg btn-default" href="/apps">Apps officielles</a>
|
||||
<a class="btn btn-lg btn-default" href="/apps_in_progress_en">Apps en cours</a>
|
||||
<a class="btn btn-lg btn-default" href="/apps_wishlist_en">Apps souhaitées</a>
|
||||
<a class="btn btn-lg btn-default" href="/apps_fr">Apps officielles</a>
|
||||
<a class="btn btn-lg btn-default" href="/apps_in_progress_fr">Apps en cours</a>
|
||||
<a class="btn btn-lg btn-default disabled" href="/apps_wishlist_fr">Apps souhaitées</a>
|
||||
|
||||
La liste des applications souhaitées n'est maintenue qu'en <a href="/apps_in_progress_en">version anglaise</a>. Merci de vous y référer.
|
||||
La liste des applications souhaitées n'est maintenue qu'en <a href="/apps_in_progress_en">version anglaise</a>. Merci de vous y référer.
|
||||
|
|
Loading…
Add table
Reference in a new issue