fix: keep the Do oceny preview under cabana's partial cap

WR-04: cut each long text of the review context view model to an
escaped-byte budget, so a 20000-character answer of characters that
html/template expands to 5 bytes can no longer push the partial over
64 KiB. Ordinary answers stay whole; a cut text gets a note pointing to
quizzes_review_show.
This commit is contained in:
Jakub Zych
2026-11-09 22:50:07 +01:00
parent bb18242af9
commit 1cba2c4d32
5 changed files with 140 additions and 2 deletions

View File

@@ -129,5 +129,7 @@ reviews:
already_reviewed: This answer is already verified.
grader_manual: This quiz is graded manually; nothing can grade the answer again.
attempt_open: The test is still in progress; review this answer once it ends.
text_cut: The answer is too long to show here in full; the quizzes_review_show tool shows all of it.
cut: Some long texts are shortened on this screen; the quizzes_review_show tool shows them in full.
not_found: This answer was not found.
not_created: Open answers come from students; they cannot be added or deleted here.

View File

@@ -129,5 +129,7 @@ reviews:
already_reviewed: Ta odpowiedź jest już zweryfikowana.
grader_manual: Ten quiz jest oceniany ręcznie; nie ma kto ocenić odpowiedzi ponownie.
attempt_open: Test wciąż trwa; oceń tę odpowiedź po jego zakończeniu.
text_cut: Odpowiedź jest zbyt długa, by pokazać ją tu w całości; całą pokazuje narzędzie quizzes_review_show.
cut: Część długich tekstów jest tu skrócona; w całości pokazuje je narzędzie quizzes_review_show.
not_found: Nie znaleziono tej odpowiedzi.
not_created: Odpowiedzi otwarte pochodzą od studentów; tutaj nie można ich dodawać ani usuwać.