diff --git a/src/js/yunohost/controllers/tools.js b/src/js/yunohost/controllers/tools.js index 92a9d8d8..3b86285f 100644 --- a/src/js/yunohost/controllers/tools.js +++ b/src/js/yunohost/controllers/tools.js @@ -154,61 +154,6 @@ }); }); - - // Download SSL Certificate Authority - app.get('#/tools/ca', function (c) { - c.view('tools/tools_ca'); - }); - - // Security feed - app.get('#/tools/security-feed', function (c) { - var data = { - items: [] - }; - - // Get security feed and display items - var forumUrl = 'https://forum.yunohost.org'; - var securityUrl = 'https://forum.yunohost.org/c/security'; - var securityFeed = 'https://yunohost.org/security.rss'; - - data.url = { - web: securityUrl, - rss: securityFeed - }; - - $.ajax({ - url: securityFeed, - // dataType: (jQuery.browser.msie) ? "text" : "xml", - dataType: "xml" - }) - .done(function(xml){ - // Loop through items - $('item', xml).each(function(k, v) { - var link = $('link', v)[0].innerHTML; - if (typeof link == 'string' && link !== '' && link.charAt(0) == '/') { - link = forumUrl+link; - } - var description = $('description', v)[0].textContent; - description = description.replace('href="/','href="'+forumUrl+'/'); - - var item = { - guid: $('guid', v)[0].innerHTML, - title: $('title', v)[0].innerHTML, - url: link, - desc: description, - date: $('pubDate', v)[0].innerHTML.split(' +')[0], - }; - data.items.push(item); - }); - - c.view('tools/tools_security_feed', data); - }) - .fail(function() { - c.flash('fail', y18n.t('error_retrieve_feed', [securityFeed])); - }); - - }); - // Reboot or shutdown button app.get('#/tools/reboot', function (c) { c.view('tools/tools_reboot', {}, function() { diff --git a/src/views/tools/tools_ca.ms b/src/views/tools/tools_ca.ms deleted file mode 100644 index 1498bb7d..00000000 --- a/src/views/tools/tools_ca.ms +++ /dev/null @@ -1,14 +0,0 @@ -
- - - -{{t 'tools_download_ca_desc'}}
- CA.crt -{{date}}
- {{{desc}}} - -