From e50e98c18ee31f02b4e90dc3dad3475fefb579c9 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 19 Dec 2023 13:31:12 -0800 Subject: [PATCH] Re-apply control flow changes after merge of `dev`, again --- ...permissions-filter-dropdown.component.html | 190 ++++++++------- .../document-card-large.component.html | 216 ++++++++++-------- .../document-card-small.component.html | 110 +++++---- 3 files changed, 286 insertions(+), 230 deletions(-) diff --git a/src-ui/src/app/components/common/permissions-filter-dropdown/permissions-filter-dropdown.component.html b/src-ui/src/app/components/common/permissions-filter-dropdown/permissions-filter-dropdown.component.html index cae7fc712..4573d916b 100644 --- a/src-ui/src/app/components/common/permissions-filter-dropdown/permissions-filter-dropdown.component.html +++ b/src-ui/src/app/components/common/permissions-filter-dropdown/permissions-filter-dropdown.component.html @@ -1,92 +1,106 @@
- - +  More like this + + + + +  Edit + + + + +  View + + + + + + + +  Download + +
-
- - - -
- - #{{document.archive_serial_number}} -
- -
- Created: {{ document.created | customDate }} - Added: {{ document.added | customDate }} - Modified: {{ document.modified | customDate }} +
+ @if (notesEnabled && document.notes.length) { + + } + @if (document.document_type) { + + } + @if (document.storage_path) { + + } + @if (document.archive_serial_number | isNumber) { +
+ + #{{document.archive_serial_number}} +
+ } + +
+ Created: {{ document.created | customDate }} + Added: {{ document.added | customDate }} + Modified: {{ document.modified | customDate }} +
+
+
+ + {{document.created_date | customDate:'mediumDate'}} +
+ @if (document.owner && document.owner !== settingsService.currentUser.id) { +
+ + {{document.owner | username}} +
+ } + @if (document.is_shared_by_requester) { +
+ + Shared +
+ } + @if (document.__search_hit__?.score) { +
+ Score: + +
+ } +
+
+
- -
- - - - {{document.created_date | customDate:'mediumDate'}} -
-
- - - - {{document.owner | username}} -
-
- - - - Shared -
-
- Score: -
- - - - - diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html index 0cd9d593c..15290f672 100644 --- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html +++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html @@ -11,45 +11,55 @@
- -
- + {{moreTags}} -
+ @for (t of getTagsLimited$() | async; track t) { + + } + @if (moreTags) { +
+ + {{moreTags}} +
+ }
- - - - {{document.notes.length}} - + @if (notesEnabled && document.notes.length) { + + + + {{document.notes.length}} + + }

- + @if (document.correspondent) { {{(document.correspondent$ | async)?.name ?? privateName}}: - + } {{document.title | documentTitle}}