From 37287c3e7e21f8c68df785a7cb7ba20ac1d5817f Mon Sep 17 00:00:00 2001 From: Alexander Menk Date: Sat, 15 May 2021 12:26:04 +0200 Subject: [PATCH 1/2] Add print css for document list Allow printing of the document list in a clean way * Hide sidebar, filter * Use full width --- src-ui/src/print.scss | 30 ++++++++++++++++++++++++++++++ src-ui/src/styles.scss | 1 + 2 files changed, 31 insertions(+) create mode 100644 src-ui/src/print.scss diff --git a/src-ui/src/print.scss b/src-ui/src/print.scss new file mode 100644 index 000000000..1b29c5100 --- /dev/null +++ b/src-ui/src/print.scss @@ -0,0 +1,30 @@ +@media print { + #sidebarMenu, .btn-toolbar { + display: none !important + } + + .sticky-top { + display: none; + } + + main, main.ml-sm-auto, main.mx-sm-auto { + margin-left: 0 !important; + margin-right: 0 !important; + } + + main.col-lg-10 { + max-width: 100%; + flex-basis: 100%; + display: block; + } + + .d-none.d-lg-table-cell { // always display ASN on print + display: table-cell !important; + } + + app-document-list table { + thead th:first-child, tbody td:first-child { // hide checkboxes + display: none; + } + } +} diff --git a/src-ui/src/styles.scss b/src-ui/src/styles.scss index 34f575a05..88f5b2665 100644 --- a/src-ui/src/styles.scss +++ b/src-ui/src/styles.scss @@ -1,5 +1,6 @@ @import "theme"; @import "theme_dark"; +@import "print"; @import "node_modules/bootstrap/scss/bootstrap"; @import "~@ng-select/ng-select/themes/default.theme.css"; From 4f61868b2806dfed9e7ec2a1d15e063cd1c612b8 Mon Sep 17 00:00:00 2001 From: Jonas Winkler <17569239+jonaswinkler@users.noreply.github.com> Date: Sat, 15 May 2021 15:00:00 +0200 Subject: [PATCH 2/2] New Crowdin updates (#989) --- src-ui/src/locale/messages.en_GB.xlf | 2 +- src-ui/src/locale/messages.nl_NL.xlf | 2 +- src-ui/src/locale/messages.sv_SE.xlf | 2 +- src/locale/en_GB/LC_MESSAGES/django.po | 4 ++-- src/locale/nl_NL/LC_MESSAGES/django.po | 4 ++-- src/locale/sv_SE/LC_MESSAGES/django.po | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src-ui/src/locale/messages.en_GB.xlf b/src-ui/src/locale/messages.en_GB.xlf index 683104675..6cf95fee1 100644 --- a/src-ui/src/locale/messages.en_GB.xlf +++ b/src-ui/src/locale/messages.en_GB.xlf @@ -1983,7 +1983,7 @@ src/app/services/settings.service.ts 102 - Swedish + Swedish ISO 8601 diff --git a/src-ui/src/locale/messages.nl_NL.xlf b/src-ui/src/locale/messages.nl_NL.xlf index 40e0d6b9a..bca39fe8f 100644 --- a/src-ui/src/locale/messages.nl_NL.xlf +++ b/src-ui/src/locale/messages.nl_NL.xlf @@ -1983,7 +1983,7 @@ src/app/services/settings.service.ts 102 - Swedish + Zweeds ISO 8601 diff --git a/src-ui/src/locale/messages.sv_SE.xlf b/src-ui/src/locale/messages.sv_SE.xlf index b0cc5889b..6318c4099 100644 --- a/src-ui/src/locale/messages.sv_SE.xlf +++ b/src-ui/src/locale/messages.sv_SE.xlf @@ -1983,7 +1983,7 @@ src/app/services/settings.service.ts 102 - Swedish + Svenska ISO 8601 diff --git a/src/locale/en_GB/LC_MESSAGES/django.po b/src/locale/en_GB/LC_MESSAGES/django.po index c28b71983..289ee3f48 100644 --- a/src/locale/en_GB/LC_MESSAGES/django.po +++ b/src/locale/en_GB/LC_MESSAGES/django.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-05-04 15:00+0000\n" -"PO-Revision-Date: 2021-05-04 21:51\n" +"PO-Revision-Date: 2021-05-05 21:40\n" "Last-Translator: \n" "Language-Team: English, United Kingdom\n" "Language: en_GB\n" @@ -462,7 +462,7 @@ msgstr "Polish" #: paperless/settings.py:312 msgid "Swedish" -msgstr "" +msgstr "Swedish" #: paperless/urls.py:113 msgid "Paperless-ng administration" diff --git a/src/locale/nl_NL/LC_MESSAGES/django.po b/src/locale/nl_NL/LC_MESSAGES/django.po index b17cbeec7..b2ff30e25 100644 --- a/src/locale/nl_NL/LC_MESSAGES/django.po +++ b/src/locale/nl_NL/LC_MESSAGES/django.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-05-04 15:00+0000\n" -"PO-Revision-Date: 2021-05-04 21:51\n" +"PO-Revision-Date: 2021-05-06 00:07\n" "Last-Translator: \n" "Language-Team: Dutch\n" "Language: nl_NL\n" @@ -462,7 +462,7 @@ msgstr "Pools" #: paperless/settings.py:312 msgid "Swedish" -msgstr "" +msgstr "Zweeds" #: paperless/urls.py:113 msgid "Paperless-ng administration" diff --git a/src/locale/sv_SE/LC_MESSAGES/django.po b/src/locale/sv_SE/LC_MESSAGES/django.po index cb21a90ca..54e52d257 100644 --- a/src/locale/sv_SE/LC_MESSAGES/django.po +++ b/src/locale/sv_SE/LC_MESSAGES/django.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-05-04 15:00+0000\n" -"PO-Revision-Date: 2021-05-04 21:52\n" +"PO-Revision-Date: 2021-05-10 13:35\n" "Last-Translator: \n" "Language-Team: Swedish\n" "Language: sv_SE\n" @@ -462,7 +462,7 @@ msgstr "Polska" #: paperless/settings.py:312 msgid "Swedish" -msgstr "" +msgstr "Svenska" #: paperless/urls.py:113 msgid "Paperless-ng administration"