- {{#if model.certificate.CN}}
- - {{model.certificate.CN}} (CN)
+ {{#if model.certificate.cn}}
+ - {{model.certificate.cn}} (CN)
{{#each model.certificate.displaySans as |san|}}
- {{san}}
{{/each}}
diff --git a/app/certificates/index/controller.js b/app/certificates/index/controller.js
index 3f483efb8..8550a3194 100644
--- a/app/certificates/index/controller.js
+++ b/app/certificates/index/controller.js
@@ -4,20 +4,14 @@ export default Controller.extend({
sortBy: 'name',
headers: [
{
- name: 'state',
- sort: ['sortState','name','id'],
- translationKey: 'certificatesPage.index.table.header.state',
- width: 125,
- },
- {
- name: 'name',
- sort: ['name','id'],
+ name: 'name',
+ sort: ['name', 'id'],
translationKey: 'certificatesPage.index.table.header.name',
},
{
name: 'cn',
- searchField: ['CN'],
- sort: ['CN','id'],
+ searchField: ['cn'],
+ sort: ['cn','id'],
translationKey: 'certificatesPage.index.table.header.domain',
},
{
@@ -26,5 +20,12 @@ export default Controller.extend({
translationKey: 'certificatesPage.index.table.header.expires',
width: 120,
},
+ {
+ name: 'created',
+ sort: ['created', 'id'],
+ classNames: 'text-right pr-20',
+ searchField: 'created',
+ translationKey: 'certificatesPage.index.table.header.created',
+ },
],
});
diff --git a/app/certificates/new/template.hbs b/app/certificates/new/template.hbs
index 08b5c0360..586263bc6 100644
--- a/app/certificates/new/template.hbs
+++ b/app/certificates/new/template.hbs
@@ -6,6 +6,7 @@
{{form-name-description
model=primaryResource
nameRequired=true
+ descriptionShown=false
namePlaceholder="certificatesPage.new.form.name.placeholder"
descriptionPlaceholder="certificatesPage.new.form.description.placeholder"
}}
diff --git a/app/models/certificate.js b/app/models/certificate.js
index b470202cb..02387dd5e 100644
--- a/app/models/certificate.js
+++ b/app/models/certificate.js
@@ -49,17 +49,17 @@ export default Resource.extend({
// subjectAlternativeNames can be null:
return (this.get('subjectAlternativeNames')||[])
.slice()
- .removeObject(this.get('CN'))
+ .removeObject(this.get('cn'))
.filter((san) => {
return (san+'').indexOf('@') === -1;
});
- }.property('CN','subjectAlternativeNames.[]'),
+ }.property('cn','subjectAlternativeNames.[]'),
countableSans: function() {
var sans = this.get('displaySans').slice();
- if ( this.get('CN') )
+ if ( this.get('cn') )
{
- sans.pushObject(this.get('CN'));
+ sans.pushObject(this.get('cn'));
}
var commonBases = sans.filter((name) => {
@@ -69,12 +69,12 @@ export default Resource.extend({
});
return this.get('displaySans').slice().removeObjects(commonBases);
- }.property('displaySans.[]','CN'),
+ }.property('displaySans.[]','cn'),
displayDetailedName: function() {
var name = (this.get('name') || '('+this.get('id')+')');
var str = name;
- var cn = this.get('CN');
+ var cn = this.get('cn');
var sans = this.get('countableSans.length');
var more = '';
@@ -97,5 +97,5 @@ export default Resource.extend({
}
return str;
- }.property('id','name','CN','countableSans.length')
+ }.property('id','name','cn','countableSans.length')
});
diff --git a/lib/shared/addon/components/certificate-row/template.hbs b/lib/shared/addon/components/certificate-row/template.hbs
index 89036b535..20660739e 100644
--- a/lib/shared/addon/components/certificate-row/template.hbs
+++ b/lib/shared/addon/components/certificate-row/template.hbs
@@ -1,17 +1,14 @@
-
- {{badge-state model=model}}
- |
{{#link-to "certificates.detail" model.id}}{{model.displayName}}{{/link-to}}
|
- {{#if model.CN}}
- {{model.CN}}
+ {{#if model.cn}}
+ {{model.cn}}
{{#if model.countableSans.length}}
+ {{model.countableSans.length}} other{{if (eq model.countableSans.length 1) "" "s"}}
{{/if}}
{{else}}
- None
+ {{t 'generic.none'}}
{{/if}}
|
@@ -19,6 +16,9 @@
{{date-from-now model.expiresDate}}
|
+
+ {{date-calendar model.created}}
+ |
{{action-menu model=model}}
- |
+
\ No newline at end of file
diff --git a/lib/shared/addon/components/input-certificate/template.hbs b/lib/shared/addon/components/input-certificate/template.hbs
index 60da0488d..a77777b00 100644
--- a/lib/shared/addon/components/input-certificate/template.hbs
+++ b/lib/shared/addon/components/input-certificate/template.hbs
@@ -1,4 +1,4 @@
-