2022-05-08 09:03:29 -07:00
< app-widget-frame [ title ] = " savedView . name " [ loading ] = " loading " >
2020-11-07 12:05:15 +01:00
2022-12-17 20:09:29 -08:00
< a class = "btn-link" header-buttons [ routerLink ] = " [ ] " ( click ) = " showAll ( ) " * appIfPermissions = "{ action: PermissionAction.View, type: PermissionType.Document }" i18n > Show all< / a >
2020-11-29 23:32:03 +01:00
2022-03-08 14:49:40 -08:00
< table content class = "table table-sm table-hover table-borderless mb-0" >
2020-11-22 22:35:39 +01:00
< thead >
< tr >
2023-07-26 10:52:47 -07:00
< th scope = "col" i18n > Created< / th >
2020-12-23 15:09:39 +01:00
< th scope = "col" i18n > Title< / th >
2020-11-22 22:35:39 +01:00
< / tr >
< / thead >
2022-12-17 20:09:29 -08:00
< tbody * appIfPermissions = "{ action: PermissionAction.View, type: PermissionType.Document }" >
2023-07-26 10:52:47 -07:00
< tr * ngFor = "let doc of documents" ( mouseleave ) = " mouseLeaveCard ( ) " >
2022-11-22 15:25:27 -08:00
< td > < a routerLink = "/documents/{{doc.id}}" class = "d-block text-dark text-decoration-none" > {{doc.created_date | customDate}}< / a > < / td >
2023-07-26 10:52:47 -07:00
< td class = "position-relative" >
< a routerLink = "/documents/{{doc.id}}" title = "Edit" i18n-title class = "d-block text-dark text-decoration-none" > {{doc.title | documentTitle}}< app-tag [ tag ] = " t " * ngFor = "let t of doc.tags$ | async" class = "ms-1" ( click ) = " clickTag ( t , $ event ) " > < / app-tag > < / a >
< div class = "btn-group position-absolute top-50 end-0 translate-middle-y" >
< a [ href ] = " getPreviewUrl ( doc ) " title = "View Preview" i18n-title target = "_blank" class = "btn btn-sm px-4 py-0 btn-dark border-dark-subtle"
[ngbPopover]="previewContent" [popoverTitle]="doc.title | documentTitle"
autoClose="true" popoverClass="shadow popover-preview" container="body" (mouseenter)="mouseEnterPreview(doc)" (mouseleave)="mouseLeavePreview()" #popover="ngbPopover">
< svg class = "buttonicon-xs" fill = "currentColor" >
< use xlink:href = "assets/bootstrap-icons.svg#eye" / >
< / svg >
< / a >
< ng-template # previewContent >
< object [ data ] = " getPreviewUrl ( doc ) | safeUrl " class = "preview" width = "100%" > < / object >
< / ng-template >
< a [ href ] = " getDownloadUrl ( doc ) " class = "btn btn-sm px-4 py-0 btn-dark border-dark-subtle" title = "Download" i18n-title ( click ) = " $ event . stopPropagation ( ) " >
< svg class = "buttonicon-xs" fill = "currentColor" >
< use xlink:href = "assets/bootstrap-icons.svg#download" / >
< / svg >
< / a >
< / div >
< / td >
2020-11-22 22:35:39 +01:00
< / tr >
< / tbody >
< / table >
2020-11-22 22:49:37 +01:00
< / app-widget-frame >