mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Remove / fix remaining old refs
This commit is contained in:
parent
5dc91715b1
commit
bb9eeccb10
3 changed files with 6 additions and 31 deletions
|
@ -131,31 +131,6 @@
|
|||
});
|
||||
});
|
||||
|
||||
// List available apps lists
|
||||
app.get('#/apps/lists', function (c) {
|
||||
c.api('/appslists', function(data) {
|
||||
list = [];
|
||||
var has_community_list = false;
|
||||
$.each(data, function(listname, listinfo) {
|
||||
list.push({
|
||||
'name': listname,
|
||||
'url': listinfo['url'],
|
||||
'lastUpdate': listinfo['lastUpdate']
|
||||
});
|
||||
|
||||
// Check for community list
|
||||
if (listname == 'community' || listinfo['url'] == 'https://app.yunohost.org/community.json') {
|
||||
has_community_list = true;
|
||||
}
|
||||
});
|
||||
|
||||
c.view('app/app_appslists_list', {
|
||||
appslists: list,
|
||||
has_community_list: has_community_list
|
||||
});
|
||||
}, 'GET');
|
||||
});
|
||||
|
||||
// Get app information
|
||||
app.get('#/apps/:app', function (c) {
|
||||
c.api('/apps/'+c.params['app']+'?raw', function(data) { // http://api.yunohost.org/#!/app/app_info_get_9
|
||||
|
|
|
@ -391,7 +391,7 @@
|
|||
|
||||
c.api('/appslists', function(data) {
|
||||
store.clear('slide');
|
||||
c.redirect('#/apps/lists/' + list.name);
|
||||
c.redirect('#/tools/appslists/' + list.name);
|
||||
}, 'PUT', list);
|
||||
});
|
||||
|
||||
|
@ -410,7 +410,7 @@
|
|||
else {
|
||||
c.flash('warning', y18n.t('appslists_unknown_list', [c.params['appslist']]));
|
||||
store.clear('slide');
|
||||
c.redirect('#/apps/lists');
|
||||
c.redirect('#/tools/appslists');
|
||||
}
|
||||
}, 'GET');
|
||||
});
|
||||
|
@ -426,7 +426,7 @@
|
|||
// Refresh specific apps list
|
||||
app.get('#/tools/appslists/:appslist/refresh', function (c) {
|
||||
c.api('/appslists', function(data) {
|
||||
c.redirect('#/apps/lists');
|
||||
c.redirect('#/tools/appslists');
|
||||
}, 'PUT', {'name' : c.params['appslist']});
|
||||
});
|
||||
|
||||
|
@ -437,12 +437,12 @@
|
|||
y18n.t('appslists_confirm_remove', [c.params['app']]),
|
||||
function() {
|
||||
c.api('/appslists', function() {
|
||||
c.redirect('#/apps/lists');
|
||||
c.redirect('#/tools/appslists');
|
||||
}, 'DELETE', {'name' : c.params['appslist']});
|
||||
},
|
||||
function() {
|
||||
store.clear('slide');
|
||||
c.redirect('#/apps/lists/'+ c.params['appslist']);
|
||||
c.redirect('#/tools/appslists/'+ c.params['appslist']);
|
||||
}
|
||||
);
|
||||
});
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<h2 class="panel-title"><span class="fa-fw fa-plus"></span> {{t 'appslists_custom'}}</h2>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<form action="#/apps/lists" method="POST" class="form-horizontal">
|
||||
<form action="#/tools/appslists" method="POST" class="form-horizontal">
|
||||
<div class="form-group has-feedback">
|
||||
<label for="appslist_name" class="col-md-2 col-sm-12 control-label">{{t 'name'}}</label>
|
||||
<div class="col-md-10 col-sm-12">
|
||||
|
|
Loading…
Add table
Reference in a new issue