check repository licence (#478)

This commit is contained in:
Cilibiu Bogdan 2018-07-03 11:33:51 +03:00 committed by Denys Vuika
parent 19ffa4c4bb
commit ac6b1b16e0
2 changed files with 13 additions and 10 deletions

View File

@ -6,7 +6,7 @@
<p class="padding-left"> version: {{ repository.edition }} {{ repository.version.display }} </p>
</article>
<article class="padding-top-bottom">
<article class="padding-top-bottom" *ngIf="license">
<header class="header padding-left-right">License</header>
<adf-datatable [data]="license"></adf-datatable>
</article>

View File

@ -70,15 +70,18 @@ export class AboutComponent implements OnInit {
{type: 'text', key: 'isThumbnailGenerationEnabled', title: 'Thumbnail Generation', sortable: true}
]);
this.license = new ObjectDataTableAdapter([repository.license], [
{type: 'date', key: 'issuedAt', title: 'Issued At', sortable: true},
{type: 'date', key: 'expiresAt', title: 'Expires At', sortable: true},
{type: 'text', key: 'remainingDays', title: 'Remaining Days', sortable: true},
{type: 'text', key: 'holder', title: 'Holder', sortable: true},
{type: 'text', key: 'mode', title: 'Type', sortable: true},
{type: 'text', key: 'isClusterEnabled', title: 'Cluster Enabled', sortable: true},
{type: 'text', key: 'isCryptodocEnabled', title: 'Cryptodoc Enable', sortable: true}
]);
if (repository.license) {
this.license = new ObjectDataTableAdapter([repository.license], [
{type: 'date', key: 'issuedAt', title: 'Issued At', sortable: true},
{type: 'date', key: 'expiresAt', title: 'Expires At', sortable: true},
{type: 'text', key: 'remainingDays', title: 'Remaining Days', sortable: true},
{type: 'text', key: 'holder', title: 'Holder', sortable: true},
{type: 'text', key: 'mode', title: 'Type', sortable: true},
{type: 'text', key: 'isClusterEnabled', title: 'Cluster Enabled', sortable: true},
{type: 'text', key: 'isCryptodocEnabled', title: 'Cryptodoc Enable', sortable: true}
]);
}
});
this.http.get('/versions.json')