Update apps.md

This commit is contained in:
ma.azimi@laposte.net 2015-10-05 12:59:09 +02:00 committed by YunoHost
parent ceb7b9d1e6
commit 62fe3e71b1

View file

@ -2,6 +2,10 @@
<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="clearfix" style="margin-bottom: 1em;">
<div class="btn btn-default btn-xs pull-right" data-toggle="collapse" data-target="#app-accordion .collapse">View all</div>
</div>
<div class="panel-group" id="app-accordion"></div>
<script type="text/template" id="app-template">
@ -17,6 +21,7 @@
<p><strong>Last update (UTC)</strong>: {app_update}</p>
<p><strong>Maintainer</strong>: {app_maintainer} <small class="text-muted">({app_mail})</small></p>
<p><strong>Git repository</strong>: <a href="{app_git}" target="_blank">{app_git}</a> <small class="text-muted">({app_branch})</small></p>
<p><strong>App license</strong>: {app_license}</p>
<a href="#/app_{app_id}" target="_blank" class="btn btn-default">Documentation</a>
</div>
</div>
@ -55,7 +60,8 @@ $(document).ready(function () {
.replace('{app_description}', infos.manifest.description.en)
.replace(/{app_git}/g, infos.git.url)
.replace('{app_branch}', infos.git.branch)
.replace('{app_update}', timeConverter(infos.lastUpdate));
.replace('{app_update}', timeConverter(infos.lastUpdate))
.replace('{app_license}', infos.manifest.license);
if (infos.manifest.developer) {
html = html