2017-11-30 10:21:03 +01:00
|
|
|
<ion-header>
|
|
|
|
<ion-navbar>
|
2017-12-08 15:53:27 +01:00
|
|
|
<ion-title>{{ 'core.settings.sites' | translate }}</ion-title>
|
2017-11-30 10:21:03 +01:00
|
|
|
|
|
|
|
<ion-buttons end>
|
2017-12-08 15:53:27 +01:00
|
|
|
<button *ngIf="sites && sites.length > 0" ion-button icon-only (click)="toggleDelete()" [attr.aria-label]="'core.delete' | translate">
|
2017-11-30 10:21:03 +01:00
|
|
|
<ion-icon name="create" ios="md-create"></ion-icon>
|
|
|
|
</button>
|
|
|
|
</ion-buttons>
|
|
|
|
</ion-navbar>
|
|
|
|
</ion-header>
|
|
|
|
<ion-content>
|
|
|
|
<ion-list>
|
2017-12-18 10:48:04 +01:00
|
|
|
<ion-item (click)="login(site.id)" *ngFor="let site of sites; let idx = index">
|
|
|
|
<ion-avatar item-start>
|
2018-02-09 10:02:14 +01:00
|
|
|
<img [src]="site.avatar" core-external-content [siteId]="site.id" alt="{{ 'core.pictureof' | translate:{$a: site.fullname} }}" role="presentation" onError="this.src='assets/img/user-avatar.png'">
|
2017-12-18 10:48:04 +01:00
|
|
|
</ion-avatar>
|
|
|
|
<h2>{{site.fullName}}</h2>
|
|
|
|
<p><core-format-text [text]="site.siteName" clean="true" watch="true" [siteId]="site.id"></core-format-text></p>
|
|
|
|
<p>{{site.siteUrl}}</p>
|
|
|
|
<ion-badge item-end *ngIf="!showDelete && site.badge">{{site.badge}}</ion-badge>
|
|
|
|
<button *ngIf="showDelete" item-end ion-button icon-only clear color="danger" (click)="deleteSite($event, idx)" [attr.aria-label]="'core.delete' | translate">
|
|
|
|
<ion-icon name="trash"></ion-icon>
|
|
|
|
</button>
|
|
|
|
</ion-item>
|
2017-11-30 10:21:03 +01:00
|
|
|
</ion-list>
|
2017-12-18 10:48:04 +01:00
|
|
|
<ion-fab bottom right>
|
|
|
|
<button ion-fab (click)="add()" [attr.aria-label]="'core.add' | translate">
|
|
|
|
<ion-icon name="add"></ion-icon>
|
|
|
|
</button>
|
|
|
|
</ion-fab>
|
2017-11-30 10:21:03 +01:00
|
|
|
</ion-content>
|