fix: format course card and missing migration

This commit is contained in:
Rotimi Best
2024-09-12 08:14:28 +01:00
parent 8ab51095a7
commit bb3eb4ceb2
9 changed files with 54 additions and 14 deletions
@@ -185,7 +185,7 @@
{#if isOnLandingPage} {#if isOnLandingPage}
<span class="px-2"> <span class="px-2">
{#if !cost} {#if !cost}
$t('course.navItem.landing_page.pricing_section.free') {$t('course.navItem.landing_page.pricing_section.free')}
{:else if pricingData.showDiscount} {:else if pricingData.showDiscount}
{formatter.format(cost)} {formatter.format(cost)}
<span class="line-through"> <span class="line-through">
@@ -391,7 +391,12 @@
"goals": "Ziele", "goals": "Ziele",
"reviews": "Rezensionen", "reviews": "Rezensionen",
"instructor": "Lehrer", "instructor": "Lehrer",
"pricing": "Preisgestaltung" "pricing": "Preisgestaltung",
"certificate": "Zertifikat"
},
"display_section": "Anzeigebereich",
"certificate_form": {
"upload_template": "Zertifikatsvorlage"
} }
}, },
"course_content": "Kursinhalte", "course_content": "Kursinhalte",
@@ -391,7 +391,12 @@
"goals": "Objetivos", "goals": "Objetivos",
"reviews": "Reseñas", "reviews": "Reseñas",
"instructor": "Instructor", "instructor": "Instructor",
"pricing": "Precios" "pricing": "Precios",
"certificate": "Certificado"
},
"display_section": "Sección de visualización",
"certificate_form": {
"upload_template": "Plantilla de certificado"
} }
}, },
"course_content": "Contenido del curso", "course_content": "Contenido del curso",
@@ -391,7 +391,12 @@
"goals": "Objectifs", "goals": "Objectifs",
"reviews": "Commentaires", "reviews": "Commentaires",
"instructor": "Instructeur", "instructor": "Instructeur",
"pricing": "Tarifs" "pricing": "Tarifs",
"certificate": "Certificat"
},
"display_section": "Section d'affichage",
"certificate_form": {
"upload_template": "Modèle de certificat"
} }
}, },
"course_content": "Contenu du cours", "course_content": "Contenu du cours",
@@ -391,7 +391,12 @@
"goals": "लक्ष्य", "goals": "लक्ष्य",
"reviews": "समीक्षा", "reviews": "समीक्षा",
"instructor": "प्रशिक्षक", "instructor": "प्रशिक्षक",
"pricing": "मूल्य निर्धारण" "pricing": "मूल्य निर्धारण",
"certificate": "प्रमाणपत्र"
},
"display_section": "प्रदर्शन अनुभाग",
"certificate_form": {
"upload_template": "प्रमाणपत्र टेम्पलेट"
} }
}, },
"course_content": "पाठ्यक्रम सामग्री", "course_content": "पाठ्यक्रम सामग्री",
@@ -391,7 +391,12 @@
"goals": "Metas", "goals": "Metas",
"reviews": "Avaliações", "reviews": "Avaliações",
"instructor": "Instrutor", "instructor": "Instrutor",
"pricing": "Preços" "pricing": "Preços",
"certificate": "Certificado"
},
"display_section": "Seção de exibição",
"certificate_form": {
"upload_template": "Modelo de certificado"
} }
}, },
"course_content": "Conteúdo do curso", "course_content": "Conteúdo do curso",
@@ -391,7 +391,12 @@
"goals": "Цели", "goals": "Цели",
"reviews": "Отзывы", "reviews": "Отзывы",
"instructor": "Инструктор", "instructor": "Инструктор",
"pricing": "Цены" "pricing": "Цены",
"certificate": "Сертификат"
},
"display_section": "Раздел дисплея",
"certificate_form": {
"upload_template": "Шаблон сертификата"
} }
}, },
"course_content": "Содержание курса", "course_content": "Содержание курса",
@@ -391,7 +391,12 @@
"goals": "Bàn thắng", "goals": "Bàn thắng",
"reviews": "Đánh giá", "reviews": "Đánh giá",
"instructor": "Người hướng dẫn", "instructor": "Người hướng dẫn",
"pricing": "Định giá" "pricing": "Định giá",
"certificate": "Giấy chứng nhận"
},
"display_section": "Phần hiển thị",
"certificate_form": {
"upload_template": "Mẫu chứng chỉ"
} }
}, },
"course_content": "Nội dung khóa học", "course_content": "Nội dung khóa học",
@@ -40,3 +40,8 @@ alter table public.question_answer
drop constraint question_answer_submission_id_fkey, drop constraint question_answer_submission_id_fkey,
add constraint question_answer_submission_id_fkey foreign key (submission_id) references submission (id) add constraint question_answer_submission_id_fkey foreign key (submission_id) references submission (id)
on delete cascade; on delete cascade;
alter table public.lesson_completion
drop constraint lesson_completion_lesson_id_fkey,
add constraint lesson_completion_lesson_id_fkey foreign key (lesson_id) references lesson (id)
on delete cascade;