MOBILE-4604 core: Add external-content to site logo and grades img
parent
4704b63142
commit
eea7ded755
|
@ -81,7 +81,8 @@
|
|||
</ion-badge>
|
||||
</ion-label>
|
||||
<ion-icon *ngIf="grade.icon" name="{{grade.icon}}" slot="end" [attr.aria-label]="grade.iconAlt" />
|
||||
<img *ngIf="grade.image && !grade.itemmodule" [src]="grade.image" slot="end" [alt]="grade.iconAlt" />
|
||||
<img *ngIf="grade.image && !grade.itemmodule" [src]="grade.image" slot="end" [alt]="grade.iconAlt"
|
||||
core-external-content />
|
||||
<ion-icon *ngIf="grade.image && grade.itemmodule" name="fas-chart-bar" slot="end"
|
||||
[attr.aria-label]="grade.iconAlt" />
|
||||
</ion-item>
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
class="expandable-status-icon" [class.expandable-status-icon-expanded]="row.expanded" />
|
||||
<ion-icon *ngIf="row.icon" name="{{row.icon}}" slot="start" [attr.aria-label]="row.iconAlt" />
|
||||
<img *ngIf="row.image && !row.itemmodule" [src]="row.image" slot="start" class="core-module-icon"
|
||||
[alt]="row.iconAlt" />
|
||||
[alt]="row.iconAlt" core-external-content />
|
||||
<core-mod-icon *ngIf="row.image && row.itemmodule" [modicon]="row.image" slot="start"
|
||||
[modname]="row.itemmodule" [colorize]="false" />
|
||||
<span [innerHTML]="row.gradeitem"></span>
|
||||
|
|
|
@ -33,7 +33,8 @@
|
|||
<div class="core-login-site">
|
||||
<div class="core-login-site-logo" *ngIf="!showUserAvatar">
|
||||
<!-- Show site logo or a default image. -->
|
||||
<img *ngIf="logoUrl" [src]="logoUrl" role="presentation" onError="this.src='assets/img/login_logo.png'" alt="">
|
||||
<img *ngIf="logoUrl" [src]="logoUrl" role="presentation" onError="this.src='assets/img/login_logo.png'" alt=""
|
||||
core-external-content [siteId]="siteId">
|
||||
<img *ngIf="!logoUrl" src="assets/img/login_logo.png" role="presentation" alt="">
|
||||
</div>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<ion-label>
|
||||
<!-- Show site logo. -->
|
||||
<img class="core-usermenu-site-logo" *ngIf="siteLogo && siteLogoLoaded" [src]="siteLogo" role="presentation" alt=""
|
||||
onError="this.class='image-not-found'">
|
||||
core-external-content onError="this.class='image-not-found'">
|
||||
<p class="core-usermenu-sitename">
|
||||
<core-format-text [text]="siteName" contextLevel="system" [contextInstanceId]="0" [wsNotFiltered]="true" />
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue