Skip to content

Commit

Permalink
display external url on more item page
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien committed Jul 10, 2019
1 parent 523cde2 commit 2f9cc3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/interfaces/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ export interface InformationItem {
id: number;
title: string;
content: string;
external_url: string;
}

export interface Settings {
Expand Down
5 changes: 4 additions & 1 deletion src/app/pages/more/more-item/more-item.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
<ion-grid fixed *ngIf="!!moreItem">
<ion-row>
<ion-col>
<div [innerHTML]="moreItem.content"></div>
<div *ngIf="moreItem.content" [innerHTML]="moreItem.content"></div>
<div *ngIf="moreItem.external_url">
<a [href]="moreItem.external_url"> {{ moreItem.external_url }} </a>
</div>
</ion-col>
</ion-row>
</ion-grid>
Expand Down

0 comments on commit 2f9cc3d

Please sign in to comment.