mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Use repository term instead of store. JS Cleanup.
This commit is contained in:
parent
f0ac9a8476
commit
e6b5839328
4 changed files with 17 additions and 18 deletions
6
src/dist/js/script.min.js
vendored
6
src/dist/js/script.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -26,15 +26,14 @@
|
|||
app.get('#/apps/install', function (c) {
|
||||
c.api('/apps', function(data) { // http://api.yunohost.org/#!/app/app_list_get_8
|
||||
c.api('/apps?raw', function(dataraw) { // http://api.yunohost.org/#!/app/app_list_get_8
|
||||
// Keep only uninstalled apps, or multi-instance apps
|
||||
apps = [];
|
||||
$.each(data['apps'], function(k, v) {
|
||||
// Keep only uninstalled apps, or multi-instance apps
|
||||
if ((!v['installed'] || dataraw[v['id']].manifest.multi_instance == "true") && !v['id'].match(/__[0-9]{1,5}$/)) {
|
||||
if (dataraw[v['id']]['store']!='yunohost')
|
||||
{
|
||||
dataraw[v['id']]['isUnofficial']=true;
|
||||
}
|
||||
dataraw[v['id']]['description']=v.description;
|
||||
// Check app source
|
||||
dataraw[v['id']]['official'] = (dataraw[v['id']]['repository'] == 'yunohost');
|
||||
|
||||
jQuery.extend(dataraw[v['id']], v);
|
||||
apps.push(dataraw[v['id']]);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -94,8 +94,8 @@
|
|||
"available_apps" : "Available apps",
|
||||
"no_installed_apps" : "No installed apps.",
|
||||
"app_list" : "App list",
|
||||
"app_store": "Store : ",
|
||||
"app_state": "State : ",
|
||||
"app_repository": "Application origin: ",
|
||||
"app_state": "Application state: ",
|
||||
"app_state_validated": "Validated",
|
||||
"app_state_working": "Working",
|
||||
"app_state_inprogress": "In progress",
|
||||
|
|
|
@ -17,14 +17,14 @@
|
|||
<a href="#/apps/install/{{id}}" class="list-group-item slide" title="{{t 'install'}}">
|
||||
<span class="fa-chevron-right pull-right"></span>
|
||||
<h2 class="list-group-item-heading">
|
||||
{{manifest.name}} <small>{{manifest.id}}</small>
|
||||
{{#installed}}<span class="badge badge-success">{{t 'installed'}}</span>{{/installed}}
|
||||
{{name}} <small>{{id}}</small>
|
||||
{{#installed}}<span class="badge badge-success" title="{{t 'status'}}">{{t 'installed'}}</span>{{/installed}}
|
||||
</h2>
|
||||
<p class="list-group-item-text">{{manifest.description}}</p>
|
||||
{{#isUnofficial}}
|
||||
<p class="list-group-item-text">{{t 'app_store'}} {{store}}</p>
|
||||
<p class="list-group-item-text">{{description}}</p>
|
||||
{{^official}}
|
||||
<p class="list-group-item-text">{{t 'app_repository'}}{{repository}}</p>
|
||||
<p class="list-group-item-text">{{t 'app_state'}}{{state}}</p>
|
||||
{{/isUnofficial}}
|
||||
{{/official}}
|
||||
</a>
|
||||
{{/apps}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue