Skip to content

Commit

Permalink
Merge 758e23c into e402d7e
Browse files Browse the repository at this point in the history
  • Loading branch information
sjschlapbach authored Oct 17, 2024
2 parents e402d7e + 758e23c commit 1eab0c3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
17 changes: 15 additions & 2 deletions apps/frontend-manage/src/pages/courses/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { useQuery } from '@apollo/client'
import CourseGamificationInfos from '@components/courses/CourseGamificationInfos'
import { faCrown } from '@fortawesome/free-solid-svg-icons'
import {
faCrown,
faTriangleExclamation,
} from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import {
GetSingleCourseDocument,
Expand Down Expand Up @@ -92,7 +95,17 @@ function CourseOverviewPage() {
<div>
<div className="font-bold">{t('shared.generic.description')}</div>
<Prose className={{ root: 'prose-p:m-0 prose-img:m-0' }}>
<Ellipsis maxLines={3}>{course.description}</Ellipsis>
{course.description ? (
<Ellipsis maxLines={3}>{course.description}</Ellipsis>
) : (
<div className="flex flex-row items-center gap-2">
<FontAwesomeIcon
icon={faTriangleExclamation}
className="text-orange-600"
/>
<div>{t('manage.course.noDescriptionNotification')}</div>
</div>
)}
</Prose>
</div>
<div className="grid grid-cols-2">
Expand Down
1 change: 1 addition & 0 deletions packages/i18n/messages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1585,6 +1585,7 @@ Da die KlickerUZH-App noch nicht im iOS-App-Store verfügbar ist, folgen Sie die
requiredPin: 'Die für den Beitritt benötigte PIN lautet: <b>{pin}</b>',
nParticipants: '{number} Teilnehmende',
saveDescription: 'Beschreibung speichern',
noDescriptionNotification: 'Keine Beschreibung vorhanden',
changedDate: 'Datum wurde erfolgreich angepasst.',
dateChangeFailed:
'Beim Anpassen des Datums ist ein Fehler aufgetreten. Bitte überprüfen Sie die Eingabe.',
Expand Down
1 change: 1 addition & 0 deletions packages/i18n/messages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1565,6 +1565,7 @@ Since the KlickerUZH app is not yet available on the iOS App Store, follow these
requiredPin: 'The PIN required to join is: <b>{pin}</b>',
nParticipants: '{number} participants',
saveDescription: 'Save description',
noDescriptionNotification: 'No description available.',
changedDate: 'Date has been successfully adjusted.',
dateChangeFailed:
'An error occurred while adjusting the date. Please check the input.',
Expand Down

0 comments on commit 1eab0c3

Please sign in to comment.