|
4 | 4 | <ion-menu-button></ion-menu-button> |
5 | 5 | </ion-buttons> |
6 | 6 | <ion-buttons slot="end"> |
7 | | - <ion-button tappable (short-press)="addBrew()" (long-press)="longPressAdd($event)" class="big-add-icon" fill="clear"> |
| 7 | + <ion-button tappable (short-press)="addBrew()" (long-press)="longPressAdd($event)" class="big-add-icon" |
| 8 | + fill="clear"> |
8 | 9 | <ion-icon class="ion-color-accent" name="beanconqueror-add" slot="icon-only"></ion-icon> |
9 | 10 | </ion-button> |
10 | 11 | </ion-buttons> |
|
15 | 16 | </ion-header> |
16 | 17 | <ion-content> |
17 | 18 | <ion-grid> |
18 | | - <ion-row> |
19 | | - <ion-col size="6"> |
20 | | - <ion-card [routerLink]="['/home/brews']" class="dashboard ion-no-margin" tappable> |
21 | | - <ion-card-header class="ion-no-padding ion-no-margin"> |
22 | | - <ion-card-title>{{getBrewsDrunk}}</ion-card-title> |
23 | | - <ion-card-subtitle> |
24 | | - @if(getBrewsDrunk === 1) { |
25 | | - <span>{{"PAGE_HOME_TOTAL_BREW" | translate}}</span> |
26 | | - } @else { |
27 | | - <span>{{"PAGE_HOME_TOTAL_BREWS" | translate}}</span> |
28 | | - } |
29 | | - </ion-card-subtitle> |
30 | | - </ion-card-header> |
31 | | - </ion-card> |
32 | | - </ion-col> |
33 | | - <ion-col size="6"> |
34 | | - <ion-card [routerLink]="['/statistic']" class="dashboard ion-no-margin no-border" tappable> |
35 | | - <ion-card-header class="ion-no-padding ion-no-margin"> |
36 | | - <ion-card-title>{{getTimePassedSinceLastBrew}}</ion-card-title> |
37 | | - <ion-card-subtitle> |
38 | | - {{getTimePassedSinceLastBrewMessage}} {{"WITHOUT_COFFEE" | translate}} |
39 | | - </ion-card-subtitle> |
40 | | - </ion-card-header> |
41 | | - </ion-card> |
42 | | - </ion-col> |
43 | | - </ion-row> |
44 | | - <ion-row> |
45 | | - <ion-col size="6"> |
46 | | - <ion-card [routerLink]="['/home/beans']" class="dashboard ion-no-margin" tappable> |
47 | | - <ion-card-header class="ion-no-padding ion-no-margin"> |
48 | | - <ion-card-title>{{getBeansCount}}</ion-card-title> |
49 | | - <ion-card-subtitle> |
50 | | - @if(getBeansCount === 1) { |
51 | | - <span>{{"PAGE_HOME_BEAN_EXPLORED" | translate}}</span> |
52 | | - } @else { |
53 | | - <span>{{"PAGE_HOME_BEANS_EXPLORED" | translate}}</span> |
54 | | - } |
55 | | - </ion-card-subtitle> |
56 | | - </ion-card-header> |
57 | | - </ion-card> |
58 | | - </ion-col> |
59 | | - <ion-col size="6"> |
60 | | - <ion-card [routerLink]="['/home/beans']" class="dashboard ion-no-margin no-border" tappable> |
61 | | - <ion-card-header class="ion-no-padding ion-no-margin"> |
62 | | - <ion-card-title> |
| 19 | + @if (showUnwrapped) { |
| 20 | + <ion-row> |
| 21 | + <ion-col size="12"> |
| 22 | + <ion-card (click)="openUnwrapped()" tappable> |
| 23 | + <ion-card-header> |
| 24 | + <ion-card-title> |
| 25 | + <ion-icon color='accent' name="gift-outline"></ion-icon> |
| 26 | + {{ 'UNWRAPPED.BUTTON.TITLE' | translate }} |
| 27 | + </ion-card-title> |
| 28 | + <ion-card-subtitle>{{ 'UNWRAPPED.BUTTON.SUBTITLE' | translate }}</ion-card-subtitle> |
| 29 | + </ion-card-header> |
| 30 | + </ion-card> |
| 31 | + </ion-col> |
| 32 | + </ion-row> |
| 33 | + } |
| 34 | + <ion-row> |
| 35 | + <ion-col size="6"> |
| 36 | + <ion-card [routerLink]="['/home/brews']" class="dashboard ion-no-margin" tappable> |
| 37 | + <ion-card-header class="ion-no-padding ion-no-margin"> |
| 38 | + <ion-card-title>{{getBrewsDrunk}}</ion-card-title> |
| 39 | + <ion-card-subtitle> |
| 40 | + @if(getBrewsDrunk === 1) { |
| 41 | + <span>{{"PAGE_HOME_TOTAL_BREW" | translate}}</span> |
| 42 | + } @else { |
| 43 | + <span>{{"PAGE_HOME_TOTAL_BREWS" | translate}}</span> |
| 44 | + } |
| 45 | + </ion-card-subtitle> |
| 46 | + </ion-card-header> |
| 47 | + </ion-card> |
| 48 | + </ion-col> |
| 49 | + <ion-col size="6"> |
| 50 | + <ion-card [routerLink]="['/statistic']" class="dashboard ion-no-margin no-border" tappable> |
| 51 | + <ion-card-header class="ion-no-padding ion-no-margin"> |
| 52 | + <ion-card-title>{{getTimePassedSinceLastBrew}}</ion-card-title> |
| 53 | + <ion-card-subtitle> |
| 54 | + {{getTimePassedSinceLastBrewMessage}} {{"WITHOUT_COFFEE" | translate}} |
| 55 | + </ion-card-subtitle> |
| 56 | + </ion-card-header> |
| 57 | + </ion-card> |
| 58 | + </ion-col> |
| 59 | + </ion-row> |
| 60 | + <ion-row> |
| 61 | + <ion-col size="6"> |
| 62 | + <ion-card [routerLink]="['/home/beans']" class="dashboard ion-no-margin" tappable> |
| 63 | + <ion-card-header class="ion-no-padding ion-no-margin"> |
| 64 | + <ion-card-title>{{getBeansCount}}</ion-card-title> |
| 65 | + <ion-card-subtitle> |
| 66 | + @if(getBeansCount === 1) { |
| 67 | + <span>{{"PAGE_HOME_BEAN_EXPLORED" | translate}}</span> |
| 68 | + } @else { |
| 69 | + <span>{{"PAGE_HOME_BEANS_EXPLORED" | translate}}</span> |
| 70 | + } |
| 71 | + </ion-card-subtitle> |
| 72 | + </ion-card-header> |
| 73 | + </ion-card> |
| 74 | + </ion-col> |
| 75 | + <ion-col size="6"> |
| 76 | + <ion-card [routerLink]="['/home/beans']" class="dashboard ion-no-margin no-border" tappable> |
| 77 | + <ion-card-header class="ion-no-padding ion-no-margin"> |
| 78 | + <ion-card-title> |
63 | 79 | @if(settings.freeze_coffee_beans) { |
64 | | - <ion-icon color='accent-secondary' style="top: 3px;position: relative;" name="thermometer-outline"></ion-icon> {{leftOverBeansWeight}}<br/><ion-icon color='accent-secondary' style="top: 3px;position: relative;" name="snow-outline"></ion-icon> {{leftOverFrozenBeansWeight}} |
| 80 | + <ion-icon color='accent-secondary' style="top: 3px;position: relative;" |
| 81 | + name="thermometer-outline"></ion-icon> {{leftOverBeansWeight}}<br /><ion-icon |
| 82 | + color='accent-secondary' style="top: 3px;position: relative;" |
| 83 | + name="snow-outline"></ion-icon> {{leftOverFrozenBeansWeight}} |
65 | 84 | } @else { |
66 | | - {{leftOverBeansWeight}} |
| 85 | + {{leftOverBeansWeight}} |
67 | 86 | } |
68 | | - </ion-card-title> |
69 | | - <ion-card-subtitle> |
70 | | - {{"BEANS_WEIGHT_AVAILABLE" | translate}} |
71 | | - </ion-card-subtitle> |
72 | | - </ion-card-header> |
73 | | - </ion-card> |
74 | | - </ion-col> |
75 | | - </ion-row> |
76 | | - </ion-grid> |
| 87 | + </ion-card-title> |
| 88 | + <ion-card-subtitle> |
| 89 | + {{"BEANS_WEIGHT_AVAILABLE" | translate}} |
| 90 | + </ion-card-subtitle> |
| 91 | + </ion-card-header> |
| 92 | + </ion-card> |
| 93 | + </ion-col> |
| 94 | + </ion-row> |
| 95 | + </ion-grid> |
77 | 96 |
|
78 | 97 | <div class="ion-padding-horizontal ion-padding-top"> |
79 | 98 | <h4 class="ion-no-margin">{{"PAGE_HOME_LAST_BREWS" | translate}}</h4> |
80 | 99 | </div> |
81 | | - @if (brews?.length > 0) { |
82 | | - @for(brew of brews; track brew.config.uuid) { |
83 | | - <brew-information [layout]="'dashboard'" (brewAction)="brewAction($event[0],$event[1])" |
84 | | - [brew]="brew"></brew-information> |
85 | | - } |
86 | | - } @else { |
87 | | - <div class="ion-padding ion-text-center"> |
88 | | - <div> |
89 | | - <ion-icon color="inactive" name="beanconqueror-cup" size="large"></ion-icon> |
90 | | - </div> |
91 | | - <div class="text-color-inactive ion-margin-top"> |
92 | | - {{"PAGE_BREWS_NO_ENTRIES" | translate}} |
93 | | - </div> |
94 | | - </div> |
95 | | - } |
| 100 | + @if (brews?.length > 0) { |
| 101 | + @for(brew of brews; track brew.config.uuid) { |
| 102 | + <brew-information [layout]="'dashboard'" (brewAction)="brewAction($event[0],$event[1])" |
| 103 | + [brew]="brew"></brew-information> |
| 104 | + } |
| 105 | + } @else { |
| 106 | + <div class="ion-padding ion-text-center"> |
| 107 | + <div> |
| 108 | + <ion-icon color="inactive" name="beanconqueror-cup" size="large"></ion-icon> |
| 109 | + </div> |
| 110 | + <div class="text-color-inactive ion-margin-top"> |
| 111 | + {{"PAGE_BREWS_NO_ENTRIES" | translate}} |
| 112 | + </div> |
| 113 | + </div> |
| 114 | + } |
96 | 115 |
|
97 | 116 | </ion-content> |
0 commit comments