Skip to content

Commit

Permalink
Merge pull request #2405 from sunbird-cb/cios-certification-issue-fix
Browse files Browse the repository at this point in the history
update for new certificate template
  • Loading branch information
vishnubansaltarento authored Aug 9, 2024
2 parents 6d9f283 + 1f7a875 commit 6cc8f66
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
</ng-container>
<ng-container *ngIf="!skeletonLoader">
<div class="certificate_box" *ngIf="!content?.certificateObj?.certId">
<img src="/assets/icons/toc/no-certificate.svg" alt="No certificate image" />
<img *ngIf="!fromMarketPlace" src="/assets/icons/toc/no-certificate.svg" alt="No certificate image" />
<img *ngIf="fromMarketPlace" src="/assets/icons/toc/no-certificate-market-place.svg" alt="No certificate image" />
<div class="flex items-center certificate_overlay">
<div class="flex flex-col text-center gap-1 p-4 text-white mt-4">
<div>{{'apptochome.certificationTakesTime' | translate }}</div>
Expand All @@ -45,9 +46,13 @@
<ng-container *ngIf="content?.certificateObj?.certId">
<div class="img-container">
<img class="celebration-animation" src="assets/images/animation/leaderboard_animation.gif"/>
<img class="ceritificate-image"
<img *ngIf="!fromMarketPlace" class="ceritificate-image"
[src]="'/assets/icons/toc/no-certificate.svg'"
alt="certificate image" />
<img *ngIf="fromMarketPlace" class="ceritificate-image"
[src]="'/assets/icons/toc/no-certificate-market-place.svg'"
alt="certificate image" />

<div [ngClass]="{'view-certificate': downloadCertificateBool, 'view-cert': !downloadCertificateBool}">
<button type="button" (click)="handleOpenCertificateDialog()">
<span *ngIf="!downloadCertificateBool">{{ 'apptoccontentcard.viewCertificate' | translate }}</span>
Expand Down

0 comments on commit 6cc8f66

Please sign in to comment.