diff --git a/src/js/yunohost/helpers.js b/src/js/yunohost/helpers.js index 59e70ed0..b7b01321 100644 --- a/src/js/yunohost/helpers.js +++ b/src/js/yunohost/helpers.js @@ -336,9 +336,6 @@ } }); - // Paste
helper - c.prePaste(); - // Run callback callback(); @@ -496,49 +493,6 @@ }, - // - // Misc helpers used in views etc.. - // - - // Paste- prePaste: function() { - var pasteButtons = $('button[data-paste-content],a[data-paste-content]'); - pasteButtons.on('click', function(){ - // Get paste content element - var preElement = $($(this).data('paste-content')); - - c.showLoader(); - - // Send to paste.yunohost.org - $.ajax({ - type: "POST", - url: 'https://paste.yunohost.org/documents', - data: preElement.text(), - }) - .success(function(data, textStatus, jqXHR) { - window.open('https://paste.yunohost.org/' + data.key, '_blank'); - }) - .fail(function() { - c.flash('fail', y18n.t('paste_error')); - }) - .always(function(){ - c.hideLoader(); - }); - }); - }, - - force_redirect: function(to) { - c = this; - // This is a copy-pasta of some of the redirect/refresh code of - // sammy.js because for some reason calling the origina - // redirect/refresh function in some context does not work >.> - // (e.g. if you're already on the page) - c.trigger('redirect', {to: to}); - c.app.last_location = c.path; - c.app.setLocation(to); - c.app.trigger('location-changed'); - } - }); })(); diff --git a/src/views/service/service_info.ms b/src/views/service/service_info.ms index ad6809de..711e2902 100644 --- a/src/views/service/service_info.ms +++ b/src/views/service/service_info.ms @@ -72,9 +72,6 @@ {{t 'start'}} {{/if}} - - {{t 'log'}} - diff --git a/src/views/service/service_log.ms b/src/views/service/service_log.ms deleted file mode 100644 index 937b6c1d..00000000 --- a/src/views/service/service_log.ms +++ /dev/null @@ -1,16 +0,0 @@ -- - - -- {{#logs}} -{{filename}}
-{{filecontent}}- - {{/logs}} -