mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
separate column templates from doc list (#700)
* use standard date columns * use standard file size column * name column component * library name template * library status column * enable tests * trashcan name column template
This commit is contained in:
@@ -21,7 +21,8 @@
|
||||
currentFolderId="-sharedlinks-"
|
||||
selectionMode="multiple"
|
||||
[sorting]="[ 'modifiedAt', 'desc' ]"
|
||||
(node-dblclick)="showPreview($event.detail?.node)">
|
||||
(node-dblclick)="showPreview($event.detail?.node)"
|
||||
(name-click)="showPreview($event.detail?.node)">
|
||||
|
||||
<empty-folder-content>
|
||||
<ng-template>
|
||||
@@ -45,13 +46,8 @@
|
||||
class="adf-data-table-cell--ellipsis__name"
|
||||
key="name"
|
||||
title="APP.DOCUMENT_LIST.COLUMNS.NAME">
|
||||
<ng-template let-value="value" let-context>
|
||||
<span
|
||||
class="adf-datatable-cell dl-link"
|
||||
title="{{ context?.row?.obj | adfNodeNameTooltip }}"
|
||||
(click)="showPreview(context?.row?.obj)">
|
||||
{{ value }}
|
||||
</span>
|
||||
<ng-template let-context>
|
||||
<app-name-column [context]="context"></app-name-column>
|
||||
</ng-template>
|
||||
</data-column>
|
||||
|
||||
@@ -74,10 +70,9 @@
|
||||
<data-column
|
||||
*ngIf="!isSmallScreen"
|
||||
key="modifiedAt"
|
||||
title="APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON">
|
||||
<ng-template let-value="value">
|
||||
<span title="{{ value | date:'medium' }}">{{ value | adfTimeAgo }}</span>
|
||||
</ng-template>
|
||||
title="APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON"
|
||||
type="date"
|
||||
format="timeAgo">
|
||||
</data-column>
|
||||
|
||||
<data-column
|
||||
|
Reference in New Issue
Block a user