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 'home'}} - {{t 'tools'}} - {{t 'tools_download_ca'}} -
- -
- -
-
-

{{t 'tools_download_ca_desc'}}

- CA.crt -
-
diff --git a/src/views/tools/tools_list.ms b/src/views/tools/tools_list.ms index 17943de7..04bbb643 100644 --- a/src/views/tools/tools_list.ms +++ b/src/views/tools/tools_list.ms @@ -14,33 +14,17 @@

{{t 'migrations'}}

- + -

{{t 'tools_shutdown_reboot'}}

+

{{t 'firewall'}}

{{t 'tools_adminpw'}}

- - -
-
- -

{{t 'advanced'}}

- -
- + -

{{t 'firewall'}}

-
- - -

{{t 'tools_security_feed'}}

-
- - -

{{t 'tools_download_ca'}}

+

{{t 'tools_shutdown_reboot'}}

diff --git a/src/views/tools/tools_security_feed.ms b/src/views/tools/tools_security_feed.ms deleted file mode 100644 index faed2f87..00000000 --- a/src/views/tools/tools_security_feed.ms +++ /dev/null @@ -1,34 +0,0 @@ -
- {{t 'home'}} - {{t 'tools'}} - {{t 'tools_security_feed'}} -
- -
- -{{#if items}} -
- {{#items}} -
- -

{{title}}

-
-

{{date}}

- {{{desc}}} -

- {{t 'read_more'}} -

-
-
- {{/items}} -
-{{else}} -
- {{t 'tools_security_feed_no_items'}} -
-{{/if}} - -
- {{t 'tools_security_feed_view_items'}} - {{t 'tools_security_feed_subscribe_rss'}} -