2018-12-25 09:30:28 -06:00
|
|
|
<ion-item class="title passage-title" (swipe)="close($event)">
|
2017-08-23 19:41:32 -04:00
|
|
|
<ion-icon name="book" item-left></ion-icon> <span *ngIf="data !== undefined"><span *ngIf="data.status === -1">Error:</span> {{data.ref}}</span>
|
2017-08-22 10:25:12 -04:00
|
|
|
<button ion-button icon-only item-end large clear (click)="close()">
|
2016-12-01 10:39:04 -05:00
|
|
|
<ion-icon name="close-circle"></ion-icon>
|
|
|
|
</button>
|
|
|
|
</ion-item>
|
2017-01-26 22:26:48 -05:00
|
|
|
<ion-card-content *ngIf="data !== undefined && data.status === 0">
|
2017-01-04 15:38:36 -05:00
|
|
|
<br>
|
2019-01-02 15:18:49 -05:00
|
|
|
<ng-template [ngIf]="profileService.profile().show_paragraphs"><div class="passage-text" *ngFor="let ch of withParas">
|
2017-01-24 16:43:58 -05:00
|
|
|
<h2 *ngIf="data.cs.length > 1">
|
2019-01-02 16:08:18 -05:00
|
|
|
Chapter {{ch.ch}}
|
2017-01-04 15:38:36 -05:00
|
|
|
</h2>
|
2018-03-03 21:13:51 -05:00
|
|
|
<div *ngFor="let para of ch.paras">
|
2019-01-02 15:18:49 -05:00
|
|
|
<h3 *ngIf="profileService.profile().show_paragraph_headings && hasHeader(para.p)">{{para.p.h}}</h3>
|
2018-01-06 01:30:06 -05:00
|
|
|
<p>
|
2018-03-03 21:13:51 -05:00
|
|
|
<ng-template ngFor let-vs [ngForOf]="para.vss">
|
2019-01-02 15:18:49 -05:00
|
|
|
<b *ngIf="profileService.profile().show_verse_numbers">{{vs.v}}.</b> <ng-template ngFor let-w [ngForOf]="vs.w">
|
2018-01-06 01:30:06 -05:00
|
|
|
<ng-template [ngIf]="!isPunct(w.t)"> </ng-template><a *ngIf="w.s != null" (click)="openStrongs(w.s)" (press)="openMenu(w.s)">{{w.t}}</a>
|
|
|
|
<ng-template [ngIf]="w.s == null">{{w.t}}</ng-template>
|
2019-01-02 15:18:49 -05:00
|
|
|
</ng-template><br *ngIf="profileService.profile().verses_on_new_line">
|
2018-03-03 21:13:51 -05:00
|
|
|
</ng-template>
|
2018-01-06 01:30:06 -05:00
|
|
|
</p>
|
|
|
|
</div>
|
2018-03-03 21:13:51 -05:00
|
|
|
</div></ng-template>
|
2019-01-02 15:18:49 -05:00
|
|
|
<ng-template [ngIf]="!profileService.profile().show_paragraphs"><div class="passage-text" *ngFor="let ch of data.cs">
|
2018-03-03 21:13:51 -05:00
|
|
|
<h2 *ngIf="data.cs.length > 1">
|
2019-01-02 16:08:18 -05:00
|
|
|
Chapter {{ch.ch}}
|
2018-03-03 21:13:51 -05:00
|
|
|
</h2>
|
|
|
|
<ng-template ngFor let-vs [ngForOf]="ch.vss">
|
2019-01-02 15:18:49 -05:00
|
|
|
<b *ngIf="profileService.profile().show_verse_numbers">{{vs.v}}.</b> <ng-template ngFor let-w [ngForOf]="vs.w">
|
2018-03-03 21:13:51 -05:00
|
|
|
<ng-template [ngIf]="!isPunct(w.t)"> </ng-template><a *ngIf="w.s != null" (click)="openStrongs(w.s)" (press)="openMenu(w.s)">{{w.t}}</a>
|
|
|
|
<ng-template [ngIf]="w.s == null">{{w.t}}</ng-template>
|
2019-01-02 15:18:49 -05:00
|
|
|
</ng-template><br *ngIf="profileService.profile().verses_on_new_line">
|
2018-03-03 21:13:51 -05:00
|
|
|
</ng-template>
|
|
|
|
</div></ng-template>
|
2016-12-01 10:39:04 -05:00
|
|
|
</ion-card-content>
|
2017-01-26 22:26:48 -05:00
|
|
|
<ion-card-content *ngIf="data !== undefined && data.status === -1">
|
|
|
|
<error-message [msg]="data.msg"></error-message>
|
|
|
|
</ion-card-content>
|
2017-08-11 16:01:33 -04:00
|
|
|
<div style="float: right">
|
|
|
|
<button ion-button icon-center clear (click)="prev()" *ngIf="ref !== undefined && ref.Section.start.chapter !== '1'">
|
|
|
|
<ion-icon name="rewind"></ion-icon>
|
|
|
|
</button>
|
|
|
|
<button ion-button icon-center clear (click)="expand()">
|
|
|
|
<ion-icon name="code-working"></ion-icon>
|
|
|
|
</button>
|
2017-08-23 17:53:03 -04:00
|
|
|
<button ion-button icon-center clear (click)="next()" *ngIf="ref !== undefined && ref.Section.end.chapter !== ref.Section.end.book.last_chapter.toString()">
|
2017-08-11 16:01:33 -04:00
|
|
|
<ion-icon name="fastforward"></ion-icon>
|
|
|
|
</button>
|
2018-12-25 09:30:28 -06:00
|
|
|
<button ion-button icon-center clear (click)="contextMenu()">
|
|
|
|
<ion-icon name="more"></ion-icon>
|
|
|
|
</button>
|
2018-01-06 01:30:06 -05:00
|
|
|
</div>
|