From fd37f151ea90a1372391c0d619a26fd92bf4d030 Mon Sep 17 00:00:00 2001 From: Wojtek Date: Sat, 17 Oct 2026 13:20:48 +0200 Subject: [PATCH] Print AI feedback directly as fallback comment --- README.md | 2 +- .../sql/updates/mysql/1.43.42.sql | 1 + .../com_testquestions/tmpl/result/default.php | 29 +++++++++---------- com_testquestions.xml | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 administrator/components/com_testquestions/sql/updates/mysql/1.43.42.sql diff --git a/README.md b/README.md index e59afd1..76f4c85 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,6 @@ Szkielet komponentu Joomla 6 do gromadzenia pytań testowych. ## Instalacja -W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.43.41). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.43.42). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.43.42.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.43.42.sql new file mode 100644 index 0000000..55db4e1 --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.43.42.sql @@ -0,0 +1 @@ +-- Brak zmian w schemacie bazy danych w wersji 1.43.42. diff --git a/administrator/components/com_testquestions/tmpl/result/default.php b/administrator/components/com_testquestions/tmpl/result/default.php index db17fd2..3a3a4a7 100644 --- a/administrator/components/com_testquestions/tmpl/result/default.php +++ b/administrator/components/com_testquestions/tmpl/result/default.php @@ -32,9 +32,13 @@ $resolveImageUrl = static function ($path) { article { break-inside: auto; border-color: #aaa !important; } img { max-width: 100% !important; max-height: 150mm; object-fit: contain; } .alert { print-color-adjust: exact; -webkit-print-color-adjust: exact; } - .container-fluid .result-pdf-comment { display: block !important; } + .container-fluid .result-pdf-comment.has-print-comment { display: block !important; } .result-pdf-comment-text { white-space: pre-wrap; } - .ai-feedback-screen, .ai-token-info { display: none !important; } + .ai-token-info { display: none !important; } + .ai-feedback-screen.ai-feedback-print-source { display: block !important; } + .ai-feedback-screen.ai-feedback-print-source.print-ai-hidden { display: none !important; } + .ai-feedback-screen.ai-feedback-print-source > strong { display: none !important; } + .ai-feedback-screen.ai-feedback-print-source::before { content: "Komentarz:"; display: block; font-weight: bold; margin-bottom: .35em; } }