Remove legacy code from 2017, old letsencrypt_ynh app

This commit is contained in:
Alexandre Aubin 2019-10-17 20:23:24 +02:00
parent 65e615133e
commit a73f87575b
2 changed files with 2 additions and 19 deletions

View file

@ -86,22 +86,10 @@
c.api('PUT', '/domains/main', {}, function(dataMain) {
c.api('GET', '/apps?installed', {}, function(data) {
// FIXME - This dirty trick (along with the previous API call
// for apps installed) should be removed once letsencrypt_ynh
// is not used by many people anymore. Probably around 07/2017
// or end of 2017...
var enable_cert_management_ = true;
$.each(data['apps'], function(k, v) {
if (v.id == "letsencrypt") {
enable_cert_management_ = false;
}
});
var domain = {
name: c.params['domain'],
main: (c.params['domain'] == dataMain.current_main_domain) ? true : false,
url: "https://"+c.params['domain'],
enable_cert_management: enable_cert_management_
url: "https://"+c.params['domain']
};
c.view('domain/domain_info', domain, function() {

View file

@ -42,12 +42,7 @@
<hr>
<div class="container">
<p>{{t 'certificate_manage'}}</p>
{{#unless enable_cert_management}}
<p><span class="fa-fw fa-exclamation-circle"></span>
{{t 'certificate_old_letsencrypt_app_conflict'}}
</p>
{{/unless}}
<a href="#/domains/{{name}}/cert-management" role="button" class="btn btn-default slide {{#unless enable_cert_management}}disabled{{/unless}}">
<a href="#/domains/{{name}}/cert-management" role="button" class="btn btn-default slide">
<span class="fa-fw fa-lock"></span> {{t 'ssl_certificate'}}
</a>
</div>