diff --git a/README.md b/README.md index 76f4c85..c8da246 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.42). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.43.43). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.43.43.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.43.43.sql new file mode 100644 index 0000000..49602c1 --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.43.43.sql @@ -0,0 +1 @@ +-- Brak zmian w schemacie bazy danych w wersji 1.43.43. diff --git a/administrator/components/com_testquestions/tmpl/result/default.php b/administrator/components/com_testquestions/tmpl/result/default.php index 3a3a4a7..db143b4 100644 --- a/administrator/components/com_testquestions/tmpl/result/default.php +++ b/administrator/components/com_testquestions/tmpl/result/default.php @@ -158,6 +158,14 @@ $resolveImageUrl = static function ($path) { + question_type === 'open' && !empty($answer['ai_feedback'])) : ?> + points ?? 0); + $aiAlertClass = $aiPoints <= 0 ? 'alert-danger' : ($aiPoints >= $maxPoints ? 'alert-success' : 'alert-info'); + ?> +