2020-11-22 21:14:30 +01:00
< div class = "card mb-3 bg-light shadow-sm" >
2020-10-27 01:10:18 +01:00
< div class = "row no-gutters" >
< div class = "col-md-2 d-none d-lg-block" >
2020-11-22 19:30:55 +01:00
< img [ src ] = " getThumbUrl ( ) " class = "card-img doc-img border-right" >
2020-10-27 01:10:18 +01:00
< / div >
< div class = "col" >
< div class = "card-body" >
2020-11-02 12:44:06 +01:00
< div class = "d-flex justify-content-between align-items-center" >
2020-12-11 15:20:47 -08:00
< h5 class = "card-title" >
2020-12-04 01:25:52 +01:00
< ng-container * ngIf = "document.correspondent" >
< a * ngIf = "clickCorrespondent.observers.length ; else nolink" [ routerLink ] = " " title = "Filter by correspondent" ( click ) = " clickCorrespondent . emit ( document . correspondent ) " class = "font-weight-bold" > {{(document.correspondent$ | async)?.name}}< / a >
< ng-template # nolink > {{(document.correspondent$ | async)?.name}}< / ng-template > :
2020-11-28 21:28:07 +01:00
< / ng-container >
2020-11-29 23:32:12 +01:00
{{document.title}}
2020-12-04 01:25:52 +01:00
< app-tag [ tag ] = " t " linkTitle = "Filter by tag" * ngFor = "let t of document.tags$ | async" class = "ml-1" ( click ) = " clickTag . emit ( t . id ) " [ clickable ] = " clickTag . observers . length " > < / app-tag >
2020-11-28 21:28:07 +01:00
< / h5 >
2020-11-02 12:44:06 +01:00
< h5 class = "card-title" * ngIf = "document.archive_serial_number" > #{{document.archive_serial_number}}< / h5 >
< / div >
2020-10-27 01:10:18 +01:00
< p class = "card-text" >
2020-11-23 23:39:42 +01:00
< app-result-highlight * ngIf = "getDetailsAsHighlight()" class = "result-content" [ highlights ] = " getDetailsAsHighlight ( ) " > < / app-result-highlight >
2020-10-27 17:05:14 +01:00
< span * ngIf = "getDetailsAsString()" class = "result-content" > {{getDetailsAsString()}}< / span >
2020-10-27 01:10:18 +01:00
< / p >
< div class = "d-flex justify-content-between align-items-center" >
< div class = "btn-group" >
< a routerLink = "/documents/{{document.id}}" class = "btn btn-sm btn-outline-secondary" >
< svg width = "1em" height = "1em" viewBox = "0 0 16 16" class = "bi bi-pencil" fill = "currentColor" xmlns = "http://www.w3.org/2000/svg" >
< path fill-rule = "evenodd" d = "M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5L13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175l-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z" / >
< / svg >
Edit
< / a >
2020-11-28 14:50:14 +01:00
< a type = "button" class = "btn btn-sm btn-outline-secondary" [ href ] = " getPreviewUrl ( ) " >
< svg width = "1em" height = "1em" viewBox = "0 0 16 16" class = "bi bi-search" fill = "currentColor" xmlns = "http://www.w3.org/2000/svg" >
< path fill-rule = "evenodd" d = "M10.442 10.442a1 1 0 0 1 1.415 0l3.85 3.85a1 1 0 0 1-1.414 1.415l-3.85-3.85a1 1 0 0 1 0-1.415z" / >
< path fill-rule = "evenodd" d = "M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zM13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0z" / >
< / svg >
View
< / a >
2020-10-27 01:10:18 +01:00
< a type = "button" class = "btn btn-sm btn-outline-secondary" [ href ] = " getDownloadUrl ( ) " >
< svg width = "1em" height = "1em" viewBox = "0 0 16 16" class = "bi bi-download" fill = "currentColor" xmlns = "http://www.w3.org/2000/svg" >
< path fill-rule = "evenodd" d = "M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z" / >
< path fill-rule = "evenodd" d = "M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z" / >
< / svg >
Download
< / a >
< / div >
2020-11-02 12:44:06 +01:00
< small class = "text-muted" > Created: {{document.created | date}}< / small >
2020-10-27 01:10:18 +01:00
< / div >
< / div >
< / div >
< / div >
2020-12-11 15:20:47 -08:00
< / div >