mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
31 lines
1.2 KiB
HTML
31 lines
1.2 KiB
HTML
<p *ngIf="searchTerm">
|
|
<p *ngIf="results.length">{{ 'SEARCH.RESULTS.SUMMARY' | translate:{numResults: results.length, searchTerm: searchTerm} }}</p>
|
|
<p *ngIf="results.length == 0">{{ 'SEARCH.RESULTS.NONE' | translate:{searchTerm: searchTerm} }}</p>
|
|
<table *ngIf="searchTerm && results.length" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp full-width">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<span class="mdl-data-table__cell--non-numeric"></span>
|
|
</th>
|
|
<th>
|
|
<span class="mdl-data-table__cell--non-numeric">{{'SEARCH.RESULTS.COLUMNS.NAME' | translate}}</span>
|
|
</th>
|
|
<th>
|
|
<span class="mdl-data-table__cell--non-numeric">{{'SEARCH.RESULTS.COLUMNS.MODIFIED_BY' | translate}}</span>
|
|
</th>
|
|
<th>
|
|
<span class="mdl-data-table__cell--non-numeric">{{'SEARCH.RESULTS.COLUMNS.MODIFIED_AT' | translate}}</span>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr *ngFor="#result of results; #idx = index">
|
|
<td><img src="{{getDocumentThumbnailUrl(result)}}" /></td>
|
|
<td>{{result.entry.name}}</td>
|
|
<td>{{result.entry.modifiedByUser.displayName}}</td>
|
|
<td>{{result.entry.modifiedAt}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|