mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
36 lines
1.6 KiB
HTML
36 lines
1.6 KiB
HTML
<mat-card *ngIf="node">
|
|
<mat-card-content>
|
|
<adf-content-metadata
|
|
[displayDefaultProperties]="displayDefaultProperties"
|
|
[expanded]="expanded"
|
|
[node]="node"
|
|
[displayEmpty]="displayEmpty"
|
|
[editable]="editable"
|
|
[multi]="multi"
|
|
[displayAspect]="displayAspect"
|
|
[preset]="preset">
|
|
</adf-content-metadata>
|
|
</mat-card-content>
|
|
<mat-card-footer class="adf-content-metadata-card-footer" fxLayout="row" fxLayoutAlign="space-between stretch">
|
|
<div>
|
|
<button *ngIf="!readOnly && hasAllowableOperations()"
|
|
mat-icon-button
|
|
(click)="toggleEdit()"
|
|
[attr.title]="'CORE.METADATA.ACTIONS.EDIT' | translate"
|
|
data-automation-id="meta-data-card-toggle-edit">
|
|
<mat-icon>mode_edit</mat-icon>
|
|
</button>
|
|
</div>
|
|
<button *ngIf="displayDefaultProperties" mat-button (click)="toggleExpanded()" data-automation-id="meta-data-card-toggle-expand">
|
|
<ng-container *ngIf="expanded">
|
|
<span data-automation-id="meta-data-card-toggle-expand-label">{{ 'ADF_VIEWER.SIDEBAR.METADATA.MORE_INFORMATION' | translate }}</span>
|
|
<mat-icon>keyboard_arrow_down</mat-icon>
|
|
</ng-container>
|
|
<ng-container *ngIf="!expanded">
|
|
<span data-automation-id="meta-data-card-toggle-expand-label">{{ 'ADF_VIEWER.SIDEBAR.METADATA.LESS_INFORMATION' | translate }}</span>
|
|
<mat-icon>keyboard_arrow_up</mat-icon>
|
|
</ng-container>
|
|
</button>
|
|
</mat-card-footer>
|
|
</mat-card>
|