-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Learning path: Add learning path explanation for students (#8815)
- Loading branch information
1 parent
915b691
commit 9460b12
Showing
10 changed files
with
104 additions
and
23 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...app/app/course/learning-paths/components/competency-graph/competency-graph.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ing-paths/components/learning-path-lecture-unit/learning-path-lecture-unit.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 28 additions & 8 deletions
36
...learning-paths/pages/learning-path-student-page/learning-path-student-page.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,32 @@ | ||
<div class="col learning-path-student-page"> | ||
@if (learningPathId()) { | ||
@if (isLoading()) { | ||
<div class="row justify-content-center align-items-center h-100"> | ||
<div class="spinner-border text-primary" role="status"> | ||
<span class="sr-only" jhiTranslate="loading"></span> | ||
</div> | ||
</div> | ||
} @else if (learningPathId()) { | ||
<jhi-learning-path-student-nav [learningPathId]="learningPathId()!" /> | ||
<div class="learning-path-student-content"> | ||
@if (currentLearningObject()?.type === LearningObjectType.LECTURE) { | ||
<jhi-learning-path-lecture-unit [lectureUnitId]="currentLearningObject()!.id" /> | ||
} @else if (currentLearningObject()?.type === LearningObjectType.EXERCISE) { | ||
<jhi-learning-path-exercise [courseId]="courseId()" [exerciseId]="currentLearningObject()!.id" /> | ||
} | ||
</div> | ||
} @else { | ||
<div class="row align-items-center justify-content-center h-100"> | ||
<div class="learning-path-generation-container"> | ||
<h3 class="mb-3" jhiTranslate="artemisApp.learningPath.generation.title"></h3> | ||
<div jhiTranslate="artemisApp.learningPath.generation.description"></div> | ||
<button | ||
(click)="generateLearningPath(this.courseId())" | ||
type="button" | ||
class="mt-4 btn btn-primary" | ||
id="generate-learning-path-button" | ||
jhiTranslate="artemisApp.learningPath.generation.generateButton" | ||
></button> | ||
</div> | ||
</div> | ||
} | ||
<div class="learning-path-student-content"> | ||
@if (currentLearningObject()?.type === LearningObjectType.LECTURE) { | ||
<jhi-learning-path-lecture-unit [lectureUnitId]="currentLearningObject()!.id" /> | ||
} @else if (currentLearningObject()?.type === LearningObjectType.EXERCISE) { | ||
<jhi-learning-path-exercise [courseId]="courseId()" [exerciseId]="currentLearningObject()!.id" /> | ||
} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters