Merge pull request #2114 from superseb/sans

[WIP] Read Certificate SANs from list
This commit is contained in:
Westly Wright 2018-08-23 13:50:45 -07:00 committed by GitHub
commit fc912407f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -37,8 +37,7 @@ export default Resource.extend({
return []; return [];
} }
return sans.split(',') return sans.removeObject(cn)
.removeObject(cn)
.filter((san) => (`${ san }`).indexOf('@') === -1); .filter((san) => (`${ san }`).indexOf('@') === -1);
}), }),

View File

@ -617,7 +617,7 @@ certificatesPage:
labelText: Domain Names labelText: Domain Names
single: '<a href="https://{cn}" target="_blank" rel="nofollow noreferrer noopener">{cn} <i class="icon icon-sm icon-external-link"/></a>' single: '<a href="https://{cn}" target="_blank" rel="nofollow noreferrer noopener">{cn} <i class="icon icon-sm icon-external-link"/></a>'
withSan: | withSan: |
<a href="https://{cn}" target="_blank" rel="nofollow noreferrer noopener">{cn} <i class="icon icon-sm icon-external-link"/></a> + <a href="https://{cn}" target="_blank" rel="nofollow nefererrer noopener">{cn} <i class="icon icon-sm icon-external-link"></i></a> +
{sans, plural, {sans, plural,
=1 {1 other} =1 {1 other}
other {# others} other {# others}

View File

@ -604,7 +604,7 @@ certificatesPage:
labelText: 域名 labelText: 域名
single: '<a href="https://{cn}" target="_blank" rel="nofollow nefererrer noopener">{cn} <i class="icon icon-sm icon-external-link"/></a>' single: '<a href="https://{cn}" target="_blank" rel="nofollow nefererrer noopener">{cn} <i class="icon icon-sm icon-external-link"/></a>'
withSan: | withSan: |
<a href="https://{cn}" target="_blank" rel="nofollow nefererrer noopener">{cn} <i class="icon icon-sm icon-external-link"/></a> + <a href="https://{cn}" target="_blank" rel="nofollow nefererrer noopener">{cn} <i class="icon icon-sm icon-external-link"></i></a> +
{sans, plural, {sans, plural,
=1{1other} =1{1other}
other{#others} other{#others}