mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Remove legacy code from 2017, old letsencrypt_ynh app
This commit is contained in:
parent
65e615133e
commit
a73f87575b
2 changed files with 2 additions and 19 deletions
|
@ -86,22 +86,10 @@
|
||||||
c.api('PUT', '/domains/main', {}, function(dataMain) {
|
c.api('PUT', '/domains/main', {}, function(dataMain) {
|
||||||
c.api('GET', '/apps?installed', {}, function(data) {
|
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 = {
|
var domain = {
|
||||||
name: c.params['domain'],
|
name: c.params['domain'],
|
||||||
main: (c.params['domain'] == dataMain.current_main_domain) ? true : false,
|
main: (c.params['domain'] == dataMain.current_main_domain) ? true : false,
|
||||||
url: "https://"+c.params['domain'],
|
url: "https://"+c.params['domain']
|
||||||
enable_cert_management: enable_cert_management_
|
|
||||||
};
|
};
|
||||||
c.view('domain/domain_info', domain, function() {
|
c.view('domain/domain_info', domain, function() {
|
||||||
|
|
||||||
|
|
|
@ -42,12 +42,7 @@
|
||||||
<hr>
|
<hr>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<p>{{t 'certificate_manage'}}</p>
|
<p>{{t 'certificate_manage'}}</p>
|
||||||
{{#unless enable_cert_management}}
|
<a href="#/domains/{{name}}/cert-management" role="button" class="btn btn-default slide">
|
||||||
<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}}">
|
|
||||||
<span class="fa-fw fa-lock"></span> {{t 'ssl_certificate'}}
|
<span class="fa-fw fa-lock"></span> {{t 'ssl_certificate'}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue