MOBILE-2795 competency: Treat activity links

main
Pau Ferrer Ocaña 2019-01-02 16:59:40 +01:00
parent 1002ebf2bd
commit 408c665543
3 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@
<core-format-text [text]=" competency.competency.description "></core-format-text> <core-format-text [text]=" competency.competency.description "></core-format-text>
</div> </div>
<div> <div>
<strong>{{ 'addon.competency.path' | translate }}</strong>: <strong>{{ 'addon.competency.path' | translate }}</strong>
{{ competency.comppath.framework.name }} {{ competency.comppath.framework.name }}
<span *ngFor="let ancestor of competency.comppath.ancestors"> <span *ngFor="let ancestor of competency.comppath.ancestors">
&nbsp;/&nbsp;<a (click)="openCompetencySummary(ancestor.id)">{{ ancestor.name }}</a> &nbsp;/&nbsp;<a (click)="openCompetencySummary(ancestor.id)">{{ ancestor.name }}</a>

View File

@ -20,7 +20,7 @@
<core-format-text [text]="competency.competency.competency.description"></core-format-text> <core-format-text [text]="competency.competency.competency.description"></core-format-text>
</ion-item> </ion-item>
<ion-item text-wrap> <ion-item text-wrap>
<strong>{{ 'addon.competency.path' | translate }}</strong>: <strong>{{ 'addon.competency.path' | translate }}</strong>
{{ competency.competency.comppath.framework.name }} {{ competency.competency.comppath.framework.name }}
<span *ngFor="let ancestor of competency.competency.comppath.ancestors"> <span *ngFor="let ancestor of competency.competency.comppath.ancestors">
&nbsp;/&nbsp;<a (click)="openCompetencySummary(ancestor.id)">{{ ancestor.name }}</a> &nbsp;/&nbsp;<a (click)="openCompetencySummary(ancestor.id)">{{ ancestor.name }}</a>
@ -42,7 +42,7 @@
<span *ngIf="coursemodules.length == 0"> <span *ngIf="coursemodules.length == 0">
{{ 'addon.competency.noactivities' | translate }} {{ 'addon.competency.noactivities' | translate }}
</span> </span>
<a ion-item text-wrap *ngFor="let activity of coursemodules" [href]="activity.url" [title]="activity.name"> <a ion-item text-wrap *ngFor="let activity of coursemodules" [href]="activity.url" [title]="activity.name" core-link capture="true">
<img item-start core-external-content [src]="activity.iconurl" alt="" role="presentation" *ngIf="activity.iconurl" class="core-module-icon"> <img item-start core-external-content [src]="activity.iconurl" alt="" role="presentation" *ngIf="activity.iconurl" class="core-module-icon">
<core-format-text [text]="activity.name"></core-format-text> <core-format-text [text]="activity.name"></core-format-text>
</a> </a>

View File

@ -13,7 +13,7 @@
<core-format-text [text]="competency.competency.description"></core-format-text> <core-format-text [text]="competency.competency.description"></core-format-text>
</ion-item> </ion-item>
<ion-item text-wrap> <ion-item text-wrap>
<strong>{{ 'addon.competency.path' | translate }}</strong>: <strong>{{ 'addon.competency.path' | translate }}</strong>
{{ competency.comppath.framework.name }} {{ competency.comppath.framework.name }}
<span *ngFor="let ancestor of competency.comppath.ancestors"> <span *ngFor="let ancestor of competency.comppath.ancestors">
&nbsp;/&nbsp;<a (click)="openCompetencySummary(ancestor.id)">{{ ancestor.name }}</a> &nbsp;/&nbsp;<a (click)="openCompetencySummary(ancestor.id)">{{ ancestor.name }}</a>