|
1 | 1 | <ion-header translucent="true"> |
2 | | - <ion-toolbar> |
3 | | - <ion-buttons *ngIf="!showSearchbar" slot="start"> |
| 2 | + <ion-toolbar class="schedule-toolbar"> |
| 3 | + <ion-buttons slot="start"> |
4 | 4 | <ion-menu-button [color]="liveUpdateService.needsUpdate ? 'primary' : 'medium'"></ion-menu-button> |
5 | 5 | <ion-badge *ngIf="liveUpdateService.needsUpdate" size=sm>1</ion-badge> |
6 | 6 | </ion-buttons> |
7 | | - <ion-segment *ngIf="ios" [(ngModel)]="segment" (ionChange)="updateSchedule()"> |
8 | | - <ion-segment-button value="all"> |
9 | | - All |
10 | | - </ion-segment-button> |
11 | | - <ion-segment-button value="favorites"> |
12 | | - Favorites |
| 7 | + <ion-segment [(ngModel)]="dayIndex" (ionChange)="updateSchedule()" class="day-segment"> |
| 8 | + <ion-segment-button *ngFor="let day of days" value="{{day.index}}" [class.today-tab]="day.index === todayIndex"> |
| 9 | + {{day.day}} |
13 | 10 | </ion-segment-button> |
14 | 11 | </ion-segment> |
15 | | - <ion-title *ngIf="!ios && !showSearchbar">Schedule</ion-title> |
16 | | - <ion-searchbar #search *ngIf="showSearchbar" showCancelButton="always" [(ngModel)]="queryText" (ionChange)="updateSchedule()" (ionCancel)="showSearchbar = false" placeholder="Search"></ion-searchbar> |
17 | 12 | <ion-buttons slot="end"> |
18 | | - <ion-button *ngIf="!ios && !showSearchbar" (click)="showSearchbar = true && focusButton()"> |
19 | | - <ion-icon slot="icon-only" name="search"></ion-icon> |
| 13 | + <ion-button (click)="toggleFavorites()" class="header-action"> |
| 14 | + <ion-icon slot="icon-only" [name]="segment === 'favorites' ? 'star' : 'star-outline'"></ion-icon> |
20 | 15 | </ion-button> |
21 | | - <ion-button *ngIf="!showSearchbar" (click)="presentFilter()"> |
22 | | - <span *ngIf="ios">Filter</span> |
23 | | - <span *ngIf="!ios"> |
24 | | - <ion-icon slot="icon-only" name="options"></ion-icon> |
25 | | - </span> |
| 16 | + <ion-button (click)="presentFilter()" class="header-action"> |
| 17 | + <ion-icon slot="icon-only" name="funnel-outline"></ion-icon> |
26 | 18 | </ion-button> |
27 | 19 | </ion-buttons> |
28 | 20 | </ion-toolbar> |
29 | | - <ion-toolbar *ngIf="ios"> |
30 | | - <ion-segment [(ngModel)]="dayIndex" (ionChange)="updateSchedule()"> |
31 | | - <ion-segment-button *ngFor="let day of days" value="{{day.index}}" [class.today-tab]="day.index === todayIndex"> |
32 | | - {{day.day}} |
33 | | - </ion-segment-button> |
34 | | - </ion-segment> |
35 | | - </ion-toolbar> |
36 | | - <ion-toolbar *ngIf="!ios"> |
37 | | - <ion-segment [(ngModel)]="segment" (ionChange)="updateSchedule()"> |
38 | | - <ion-segment-button value="all"> |
39 | | - All |
40 | | - </ion-segment-button> |
41 | | - <ion-segment-button value="favorites"> |
42 | | - Favorites |
43 | | - </ion-segment-button> |
44 | | - </ion-segment> |
45 | | - </ion-toolbar> |
46 | | - <ion-toolbar *ngIf="!ios"> |
47 | | - <ion-segment [(ngModel)]="dayIndex" (ionChange)="updateSchedule()"> |
48 | | - <ion-segment-button *ngFor="let day of days" value="{{day.index}}" [class.today-tab]="day.index === todayIndex"> |
49 | | - {{day.day}} |
50 | | - </ion-segment-button> |
51 | | - </ion-segment> |
52 | | - </ion-toolbar> |
53 | 21 | </ion-header> |
54 | 22 |
|
55 | 23 | <ion-content fullscreen="true"> |
56 | 24 | <ion-refresher slot="fixed" (ionRefresh)="handleRefresh($event)"> |
57 | 25 | <ion-refresher-content></ion-refresher-content> |
58 | 26 | </ion-refresher> |
59 | 27 |
|
60 | | - <ion-header collapse="condense"> |
61 | | - <ion-toolbar> |
62 | | - <ion-title size="large">Schedule</ion-title> |
63 | | - </ion-toolbar> |
64 | | - <ion-toolbar> |
65 | | - <ion-searchbar [(ngModel)]="queryText" (ionChange)="updateSchedule()" placeholder="Search"></ion-searchbar> |
66 | | - </ion-toolbar> |
67 | | - </ion-header> |
| 28 | + <ion-toolbar class="search-toolbar"> |
| 29 | + <ion-searchbar [(ngModel)]="queryText" (ionChange)="updateSchedule()" placeholder="Search sessions"></ion-searchbar> |
| 30 | + </ion-toolbar> |
| 31 | + |
68 | 32 |
|
69 | 33 | <ion-list #scheduleList [hidden]="shownSessions !== 0"> |
70 | 34 | <ion-item> |
|
0 commit comments