diff --git a/app/components/track-page/card.hbs b/app/components/track-page/card.hbs index 613e8283ee..ec92a43600 100644 --- a/app/components/track-page/card.hbs +++ b/app/components/track-page/card.hbs @@ -7,7 +7,7 @@
@@ -31,7 +31,7 @@ {{#if @isComplete}} {{svg-jar "check-circle" class="w-8 h-8 fill-current text-teal-500"}} {{else if (and @logoImageUrl @logoImageAltText)}} - {{@logoImageAltText}} + {{@logoImageAltText}} {{/if}}
diff --git a/app/components/track-page/introduction-and-courses.hbs b/app/components/track-page/course-card-list.hbs similarity index 100% rename from app/components/track-page/introduction-and-courses.hbs rename to app/components/track-page/course-card-list.hbs diff --git a/app/components/track-page/introduction-and-courses.ts b/app/components/track-page/course-card-list.ts similarity index 77% rename from app/components/track-page/introduction-and-courses.ts rename to app/components/track-page/course-card-list.ts index d58058084b..30845eb492 100644 --- a/app/components/track-page/introduction-and-courses.ts +++ b/app/components/track-page/course-card-list.ts @@ -15,7 +15,7 @@ interface Signature { }; } -export default class TrackPageIntroductionAndCoursesComponent extends Component { +export default class TrackPageCourseCardListComponent extends Component { logoImage = logoImage; comingSoonImage = comingSoonImage; @@ -37,17 +37,10 @@ export default class TrackPageIntroductionAndCoursesComponent extends Component< }; }); } - - get userHasStartedTrack() { - return ( - this.authenticator.currentUser && - this.authenticator.currentUser.repositories.filterBy('language', this.args.language).filterBy('lastSubmissionAt')[0] - ); - } } declare module '@glint/environment-ember-loose/registry' { export default interface Registry { - 'TrackPage::IntroductionAndCourses': typeof TrackPageIntroductionAndCoursesComponent; + 'TrackPage::CourseCardList': typeof TrackPageCourseCardListComponent; } } diff --git a/app/components/track-page/course-card.hbs b/app/components/track-page/course-card.hbs index 02f91b2f48..82e4d68e33 100644 --- a/app/components/track-page/course-card.hbs +++ b/app/components/track-page/course-card.hbs @@ -14,7 +14,7 @@ <:default> -
+
{{markdown-to-html this.introductionMarkdown}}
@@ -53,7 +53,7 @@
{{/if}} -
+
{{markdown-to-html this.introductionMarkdown}}
diff --git a/app/components/track-page/header/index.hbs b/app/components/track-page/header/index.hbs index 80cf633e09..4042f57053 100644 --- a/app/components/track-page/header/index.hbs +++ b/app/components/track-page/header/index.hbs @@ -29,25 +29,26 @@ {{#if (has-block "cta")}} {{yield to="cta"}} {{else}} -
- {{#if this.currentUserHasStartedTrack}} + {{#if this.currentUserHasStartedTrack}} +
- {{else}} - - {{/if}} - {{#if (gt this.topParticipants.length 0)}} - - {{/if}} -
+ {{#if (gt this.topParticipants.length 0)}} + + {{/if}} +
+ {{/if}} {{/if}}