Show hint on lessons with pending homework or quiz
Lessons with homework/quiz have no manual complete button — they auto-complete on submission. Before submission nothing was shown, leaving students unsure how to progress. Add a muted hint. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -241,6 +241,17 @@ export default async function LessonPage({ params }: Props) {
|
|||||||
{!isAdmin && (lesson.homework || lesson.quiz) && isCompleted && (
|
{!isAdmin && (lesson.homework || lesson.quiz) && isCompleted && (
|
||||||
<LessonCompleteButton lessonId={lessonId} slug={slug} isCompleted={true} readOnly={true} />
|
<LessonCompleteButton lessonId={lessonId} slug={slug} isCompleted={true} readOnly={true} />
|
||||||
)}
|
)}
|
||||||
|
{/* У уроков с ДЗ/тестом нет ручной кнопки — урок засчитывается по факту сдачи.
|
||||||
|
Пока ничего не сдано, подсказываем студенту, как пройти урок. */}
|
||||||
|
{!isAdmin && (lesson.homework || lesson.quiz) && !isCompleted && (
|
||||||
|
<p className="text-sm text-center max-w-[44%]" style={{ color: "var(--muted-foreground)" }}>
|
||||||
|
{lesson.homework && lesson.quiz
|
||||||
|
? "Сдайте домашнее задание или пройдите тест, чтобы урок засчитался"
|
||||||
|
: lesson.homework
|
||||||
|
? "Сдайте домашнее задание, чтобы пройти урок"
|
||||||
|
: "Пройдите тест, чтобы завершить урок"}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
|
||||||
{nextLesson ? (
|
{nextLesson ? (
|
||||||
<Link
|
<Link
|
||||||
|
|||||||
Reference in New Issue
Block a user