ngFor -> @For finished
LocationBasedServices/mowesta/pipeline/head There was a failure building this commit
LocationBasedServices/mowesta/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -10,9 +10,11 @@
|
||||
</mat-toolbar>
|
||||
<mat-dialog-content style="margin: 0;">
|
||||
<div class="fx-fill fx-row fx-wrap">
|
||||
<ng-container *ngFor="let c of conditions" >
|
||||
<app-weather-condition [condition]="c" [timezone]="timezone"></app-weather-condition>
|
||||
</ng-container>
|
||||
@for(c of conditions; track $index){
|
||||
<ng-container>
|
||||
<app-weather-condition [condition]="c" [timezone]="timezone"></app-weather-condition>
|
||||
</ng-container>
|
||||
}
|
||||
<div class="fx-auto"></div>
|
||||
</div>
|
||||
</mat-dialog-content>
|
||||
|
||||
@@ -22,11 +22,13 @@
|
||||
<mat-select-trigger>
|
||||
{{ correspondence.address }}
|
||||
</mat-select-trigger>
|
||||
<ng-container *ngFor="let email of emails">
|
||||
<mat-option [value]="email" [disabled]="!email.verified">
|
||||
<mat-icon class="icon-button">{{ email.verified?"mail":"send" }}</mat-icon>{{email.address}}
|
||||
</mat-option>
|
||||
</ng-container>
|
||||
@for(email of emails; track $index){
|
||||
<ng-container>
|
||||
<mat-option [value]="email" [disabled]="!email.verified">
|
||||
<mat-icon class="icon-button">{{ email.verified?"mail":"send" }}</mat-icon>{{email.address}}
|
||||
</mat-option>
|
||||
</ng-container>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</form>
|
||||
@@ -79,7 +81,8 @@
|
||||
<h2>{{ res.strings('user_account_del_email_title') }}</h2>
|
||||
<h4>{{ res.strings('user_account_del_email_subtitle') }}</h4>
|
||||
<mat-list>
|
||||
<ng-container *ngFor="let e of emails">
|
||||
@for (e of emails; track $index) {
|
||||
<ng-container>
|
||||
@if(!e.correspondence){
|
||||
<ng-container>
|
||||
<mat-list-item>
|
||||
@@ -89,6 +92,7 @@
|
||||
</ng-container>
|
||||
}
|
||||
</ng-container>
|
||||
}
|
||||
</mat-list>
|
||||
</div>
|
||||
</mat-tab>
|
||||
|
||||
@@ -96,10 +96,12 @@
|
||||
</div>
|
||||
<div class="fx-auto"></div>
|
||||
<div class="pt-md fx-column" style="width: 125px;">
|
||||
<div *ngFor="let d of data" class="fx-row mb-sm mr-sm">
|
||||
<div class="ta-c fs-md" style="width: 40px;" [matTooltip]="d.key | measurementType" matTooltipPosition="right"><i [class]="d.key | measurementTypeIcon"></i></div>
|
||||
<div class="fx-fill ta-r">{{ d.value }}</div>
|
||||
</div>
|
||||
@for (d of data; track $index) {
|
||||
<div class="fx-row mb-sm mr-sm">
|
||||
<div class="ta-c fs-md" style="width: 40px;" [matTooltip]="d.key | measurementType" matTooltipPosition="right"><i [class]="d.key | measurementTypeIcon"></i></div>
|
||||
<div class="fx-fill ta-r">{{ d.value }}</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
|
||||
@@ -6,42 +6,44 @@
|
||||
<app-layout-double class="fx-fill fx-row fx-stretch">
|
||||
@if(!loading){
|
||||
<div id='main' class="fx-row fx-wrap fx-stretch fx-even bg-world">
|
||||
<mat-card appearance="outlined" class="mat-elevantion-z2 m-sm clickable hov-accent" style="width: 300px; height: 180px;" *ngFor="let location of locations" (click)="onClick(location)">
|
||||
<mat-card-header>
|
||||
<mat-icon mat-card-avatar class="fs-avatar">{{ location.type | locationIcon}}</mat-icon>
|
||||
<mat-card-title class="ellipsis" style="width: 165px;" [ngClass]="{ 'pt-sm': !location.parent, 'pb-sm': !location.parent }">{{ location.names | localName }}</mat-card-title>
|
||||
@if(location.parent){
|
||||
<mat-card-subtitle class="ellipsis" style="width: 165px;">
|
||||
@if(location.parent.parent){
|
||||
<span>{{ location.parent.names | localName:true }}<span>, {{ location.parent.parent.names | localName:true }}</span></span>
|
||||
}
|
||||
</mat-card-subtitle>
|
||||
}
|
||||
</mat-card-header>
|
||||
@if(getCondition(location) != null){
|
||||
<ng-container>
|
||||
<mat-divider></mat-divider>
|
||||
<mat-card-content>
|
||||
<div class="pt-md fx-auto fx-column">
|
||||
<div class="fx-row">
|
||||
<div style="font-size: 42px; width: 60px;"><i [class]="getCondition(location).type | weatherIcon"></i></div>
|
||||
<div class="fx-column fx-even ml-sm">
|
||||
<div class="fs-lg">{{ getCondition(location).type | weather }}</div>
|
||||
<div class="fw-b">{{ getCondition(location).temperature | temperature }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
@if(location.type != 'City'){
|
||||
<ng-container>
|
||||
<mat-card-footer>
|
||||
<div class="fx-fill fs-sm ta-c bg-primary fg-white">{{ res.strings('user_favorites_city_hint') }} {{ conditions.get(location).city.names | localName }}</div>
|
||||
</mat-card-footer>
|
||||
</ng-container>
|
||||
@for(location of locations; let location = $index; track location) {
|
||||
<mat-card appearance="outlined" class="mat-elevantion-z2 m-sm clickable hov-accent" style="width: 300px; height: 180px;" (click)="onClick(location)">
|
||||
<mat-card-header>
|
||||
<mat-icon mat-card-avatar class="fs-avatar">{{ location.type | locationIcon}}</mat-icon>
|
||||
<mat-card-title class="ellipsis" style="width: 165px;" [ngClass]="{ 'pt-sm': !location.parent, 'pb-sm': !location.parent }">{{ location.names | localName }}</mat-card-title>
|
||||
@if(location.parent){
|
||||
<mat-card-subtitle class="ellipsis" style="width: 165px;">
|
||||
@if(location.parent.parent){
|
||||
<span>{{ location.parent.names | localName:true }}<span>, {{ location.parent.parent.names | localName:true }}</span></span>
|
||||
}
|
||||
</mat-card-subtitle>
|
||||
}
|
||||
</ng-container>
|
||||
}
|
||||
</mat-card>
|
||||
</mat-card-header>
|
||||
@if(getCondition(location) != null){
|
||||
<ng-container>
|
||||
<mat-divider></mat-divider>
|
||||
<mat-card-content>
|
||||
<div class="pt-md fx-auto fx-column">
|
||||
<div class="fx-row">
|
||||
<div style="font-size: 42px; width: 60px;"><i [class]="getCondition(location).type | weatherIcon"></i></div>
|
||||
<div class="fx-column fx-even ml-sm">
|
||||
<div class="fs-lg">{{ getCondition(location).type | weather }}</div>
|
||||
<div class="fw-b">{{ getCondition(location).temperature | temperature }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
@if(location.type != 'CITY'){
|
||||
<ng-container>
|
||||
<mat-card-footer>
|
||||
<div class="fx-fill fs-sm ta-c bg-primary fg-white">{{ res.strings('user_favorites_city_hint') }} {{ conditions.get(location).city.names | localName }}</div>
|
||||
</mat-card-footer>
|
||||
</ng-container>
|
||||
}
|
||||
</ng-container>
|
||||
}
|
||||
</mat-card>
|
||||
}
|
||||
<div class="m-sm" style="width: 300px;"></div>
|
||||
<div class="m-sm" style="width: 300px;"></div>
|
||||
</div>
|
||||
|
||||
@@ -47,7 +47,9 @@
|
||||
<div class="fx-row fx-wrap fx-even">
|
||||
@if(dayForecasts | async; as daily){
|
||||
<ng-container>
|
||||
<app-weather-summary *ngFor="let d of daily" [conditions]="d.conditions" [title]="d.title" [subtitle]="d.subtitle" ></app-weather-summary>
|
||||
@for (d of daily; track $index) {
|
||||
<app-weather-summary [conditions]="d.conditions" [title]="d.title" [subtitle]="d.subtitle" ></app-weather-summary>
|
||||
}
|
||||
</ng-container>
|
||||
}
|
||||
</div>
|
||||
@@ -61,7 +63,9 @@
|
||||
<div class="fx-row fx-wrap fx-even">
|
||||
@if(daytimeForecasts | async; as time){
|
||||
<ng-container>
|
||||
<app-weather-summary *ngFor="let t of time" [conditions]="t.conditions" [title]="t.title" [subtitle]="t.subtitle" ></app-weather-summary>
|
||||
@for (t of time; track $index) {
|
||||
<app-weather-summary [conditions]="t.conditions" [title]="t.title" [subtitle]="t.subtitle" ></app-weather-summary>
|
||||
}
|
||||
</ng-container>
|
||||
}
|
||||
</div>
|
||||
@@ -73,7 +77,9 @@
|
||||
</ng-template>
|
||||
<ng-template matTabContent>
|
||||
<div class="fx-row fx-wrap fx-even">
|
||||
<app-weather-condition *ngFor="let c of f.conditions" [condition]="c" [timezone]="city.timezone"></app-weather-condition>
|
||||
@for (c of f.conditions; track $index) {
|
||||
<app-weather-condition [condition]="c" [timezone]="city.timezone"></app-weather-condition>
|
||||
}
|
||||
</div>
|
||||
</ng-template>
|
||||
</mat-tab>
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
<form #langForm="ngForm" style="font-size: 12px;" class="fx-row fx-center">
|
||||
<mat-form-field style="display: flex;flex: 1 1 100px;">
|
||||
<mat-select [placeholder]="res.strings('language_select_placeholder')" [(value)]="value" (change)="change.emit(value)">
|
||||
<mat-option *ngFor="let lang of languages" [value]="lang.value">
|
||||
<img [src]='lang.flag' height="12px">
|
||||
<span>{{ lang.title }}</span>
|
||||
</mat-option>
|
||||
@for (lang of languages; track $index) {
|
||||
<mat-option [value]="lang.value">
|
||||
<img [src]='lang.flag' height="12px">
|
||||
<span>{{ lang.title }}</span>
|
||||
</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</form>
|
||||
|
||||
@@ -1,20 +1,22 @@
|
||||
<mat-autocomplete #auto="matAutocomplete" [panelWidth]="panelWidth" autoActiveFirstOption (optionSelected)="onLocationSelected($event);">
|
||||
<mat-option style="padding-left: 3px; padding-right: 3px;" *ngFor="let option of locations; let i = index" [value]="option" [id]="i">
|
||||
<div class="fx-row" style="justify-content: start; align-items: center;">
|
||||
<mat-icon style="margin-right: 4px;">{{ option.type | locationIcon }}</mat-icon>
|
||||
<div class="fx-column">
|
||||
<div class="m-z p-z ellipsis" style="font-size: 14px; line-height: 16px; width: 162px;">{{ option.names | localName }}</div>
|
||||
<div class="m-z p-z ellipsis" style="font-size: 10px; line-height: 12px; width: 162px;">
|
||||
@if(option.parent){
|
||||
<span>
|
||||
{{ option.parent.names | localName:true }}
|
||||
@if(opt.parent.parent){
|
||||
<span {{ option.parent.parent.names | localName:true }}</span>
|
||||
}
|
||||
</span>
|
||||
}
|
||||
@for(option of locations; track i; let i = $index){
|
||||
<mat-option style="padding-left: 3px; padding-right: 3px;" [value]="option" [id]="i">
|
||||
<div class="fx-row" style="justify-content: start; align-items: center;">
|
||||
<mat-icon style="margin-right: 4px;">{{ option.type | locationIcon }}</mat-icon>
|
||||
<div class="fx-column">
|
||||
<div class="m-z p-z ellipsis" style="font-size: 14px; line-height: 16px; width: 162px;">{{ option.names | localName }}</div>
|
||||
<div class="m-z p-z ellipsis" style="font-size: 10px; line-height: 12px; width: 162px;">
|
||||
@if(option.parent){
|
||||
<span>
|
||||
{{ option.parent.names | localName:true }}
|
||||
@if(opt.parent.parent){
|
||||
<span {{ option.parent.parent.names | localName:true }}</span>
|
||||
}
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</mat-option>
|
||||
</mat-option>
|
||||
}
|
||||
</mat-autocomplete>
|
||||
|
||||
@@ -1,45 +1,59 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" [attr.viewBox]="'-' + boundsLeft + ' -' + boundsHeight + ' ' + (viewWidth + boundsLeft + boundsRight) + ' ' + (viewHeight + 2 * boundsHeight)">
|
||||
<line [attr.x1]="viewWidth" y1="0" [attr.x2]="viewWidth" [attr.y2]="viewHeight" stroke-width="1" stroke="#cccccc"></line>
|
||||
<ng-container *ngFor="let i of bars; last as end">
|
||||
<line x1="0" [attr.y1]="viewHeight * i / (bars.length - 1)" [attr.x2]="viewWidth"
|
||||
[attr.y2]="viewHeight * i / (bars.length - 1)" [attr.stroke-width]="end?2:1" [attr.stroke]="end?'black':'#cccccc'"></line>
|
||||
<ng-container *ngFor="let s of settings; index as j" >
|
||||
@if(s.available){
|
||||
<text style="font-size: small; font-weight: bold;" [attr.fill]="colors[j]" x="-10" [attr.y]="viewHeight * i / (bars.length - 1) - ((j - 1) * textHeight)"
|
||||
[matTooltip]="labels[j]" dominant-baseline="central" text-anchor="end">{{ pipes[j].transform(s.min + ((s.max - s.min) / (bars.length - 1) * (bars.length - 1 - i))) }}</text>
|
||||
}
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
<line x1="0" y1="0" x2="0" [attr.y2]="viewHeight" stroke-width="2" stroke="black"></line>
|
||||
<ng-container *ngFor="let s of settings; index as i" >
|
||||
@if(s.available){
|
||||
<ng-container>
|
||||
<ng-container *ngFor="let v of values[i]; index as j">
|
||||
@if(j > 0){
|
||||
<ng-container>
|
||||
<line [attr.x1]="values[i][j].x" [attr.x2]="values[i][j - 1].x"
|
||||
[attr.y1]="values[i][j].y" [attr.y2]="values[i][j - 1].y" [attr.stroke]="colors[i]" stroke-width="2"></line>
|
||||
</ng-container>
|
||||
@for (i of bars; track $index; let end = $last) {
|
||||
<ng-container>
|
||||
<line x1="0" [attr.y1]="viewHeight * i / (bars.length - 1)" [attr.x2]="viewWidth"
|
||||
[attr.y2]="viewHeight * i / (bars.length - 1)" [attr.stroke-width]="end?2:1" [attr.stroke]="end?'black':'#cccccc'">
|
||||
</line>
|
||||
@for (s of settings; track j; let j = $index) {
|
||||
<ng-container>
|
||||
@if(s.available){
|
||||
<text style="font-size: small; font-weight: bold;" [attr.fill]="colors[j]" x="-10" [attr.y]="viewHeight * i / (bars.length - 1) - ((j - 1) * textHeight)"
|
||||
[matTooltip]="labels[j]" dominant-baseline="central" text-anchor="end">{{ pipes[j].transform(s.min + ((s.max - s.min) / (bars.length - 1) * (bars.length - 1 - i))) }}</text>
|
||||
}
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
}
|
||||
</ng-container>
|
||||
<ng-container *ngFor="let s of settings; index as i" >
|
||||
@if(s.available){
|
||||
<ng-container>
|
||||
<ng-container *ngFor="let v of values[i];">
|
||||
<circle (click)="onClick(v.data)" [ngClass]="{ 'clickable': interactive }" [matTooltip]="v.tooltip" [attr.cx]="v.x" [attr.cy]="v.y" r="5"
|
||||
[attr.fill]="colors[i]" fill="none"></circle>
|
||||
}
|
||||
</ng-container>
|
||||
}
|
||||
<line x1="0" y1="0" x2="0" [attr.y2]="viewHeight" stroke-width="2" stroke="black"></line>
|
||||
@for (s of settings; track i; let i = $index) {
|
||||
<ng-container>
|
||||
@if(s.available){
|
||||
<ng-container>
|
||||
@for (v of values[i]; track j; let j = $index) {
|
||||
<ng-container>
|
||||
@if(j > 0){
|
||||
<ng-container>
|
||||
<line [attr.x1]="values[i][j].x" [attr.x2]="values[i][j - 1].x"
|
||||
[attr.y1]="values[i][j].y" [attr.y2]="values[i][j - 1].y" [attr.stroke]="colors[i]" stroke-width="2"></line>
|
||||
</ng-container>
|
||||
}
|
||||
</ng-container>
|
||||
}
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
}
|
||||
</ng-container>
|
||||
<ng-container *ngFor="let t of ticks">
|
||||
<line [attr.x1]="t.x" [attr.x2]="t.x" [attr.y1]="viewHeight" [attr.y2]="viewHeight + 10" stroke-width="1" stroke="black"></line>
|
||||
<text [attr.x]="t.x" [attr.y]="viewHeight + 10" style="font-size: small; font-weight: bold;"
|
||||
dominant-baseline="hanging" text-anchor="middle" [matTooltip]="t.tooltip"> {{ t.label }}
|
||||
</text>
|
||||
</ng-container>
|
||||
|
||||
}
|
||||
</ng-container>
|
||||
}
|
||||
@for (s of settings; track i; let i = $index) {
|
||||
<ng-container>
|
||||
@if(s.available){
|
||||
<ng-container>
|
||||
@for (v of values[i]; track $index) {
|
||||
<ng-container>
|
||||
<circle (click)="onClick(v.data)" [ngClass]="{ 'clickable': interactive }" [matTooltip]="v.tooltip" [attr.cx]="v.x" [attr.cy]="v.y" r="5"
|
||||
[attr.fill]="colors[i]" fill="none"></circle>
|
||||
</ng-container>
|
||||
}
|
||||
</ng-container>
|
||||
}
|
||||
</ng-container>
|
||||
}
|
||||
@for (t of ticks; track $index) {
|
||||
<ng-container>
|
||||
<line [attr.x1]="t.x" [attr.x2]="t.x" [attr.y1]="viewHeight" [attr.y2]="viewHeight + 10" stroke-width="1" stroke="black"></line>
|
||||
<text [attr.x]="t.x" [attr.y]="viewHeight + 10" style="font-size: small; font-weight: bold;"
|
||||
dominant-baseline="hanging" text-anchor="middle" [matTooltip]="t.tooltip"> {{ t.label }}
|
||||
</text>
|
||||
</ng-container>
|
||||
}
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.5 KiB |
@@ -7,12 +7,14 @@
|
||||
</ng-template>
|
||||
<ng-template matTabContent>
|
||||
<div class="fx-row fx-wrap fx-even mt-md">
|
||||
<ng-container *ngFor="let v of cosmoEurope">
|
||||
<div class="fx-column fx-center">
|
||||
<app-weather-video class="mat-elevation-z2" [video]="v" [timezone]="timezone" [coordinate]="coordinate" width="310"></app-weather-video>
|
||||
<h2>{{ v.type | videoType }}</h2>
|
||||
</div>
|
||||
</ng-container>
|
||||
@for (v of cosmoEurope; track $index) {
|
||||
<ng-container>
|
||||
<div class="fx-column fx-center">
|
||||
<app-weather-video class="mat-elevation-z2" [video]="v" [timezone]="timezone" [coordinate]="coordinate" width="310"></app-weather-video>
|
||||
<h2>{{ v.type | videoType }}</h2>
|
||||
</div>
|
||||
</ng-container>
|
||||
}
|
||||
</div>
|
||||
</ng-template>
|
||||
</mat-tab>
|
||||
@@ -24,12 +26,14 @@
|
||||
</ng-template>
|
||||
<ng-template matTabContent>
|
||||
<div class="fx-row fx-wrap fx-even mt-md">
|
||||
<ng-container *ngFor="let v of iconEurope">
|
||||
<div class="fx-column fx-center">
|
||||
<app-weather-video class="mat-elevation-z2" [video]="v" [timezone]="timezone" [coordinate]="coordinate" width="310"></app-weather-video>
|
||||
<h2>{{ v.type | videoType }}</h2>
|
||||
</div>
|
||||
</ng-container>
|
||||
@for (v of iconEurope; track $index) {
|
||||
<ng-container>
|
||||
<div class="fx-column fx-center">
|
||||
<app-weather-video class="mat-elevation-z2" [video]="v" [timezone]="timezone" [coordinate]="coordinate" width="310"></app-weather-video>
|
||||
<h2>{{ v.type | videoType }}</h2>
|
||||
</div>
|
||||
</ng-container>
|
||||
}
|
||||
</div>
|
||||
</ng-template>
|
||||
</mat-tab>
|
||||
@@ -41,12 +45,14 @@
|
||||
</ng-template>
|
||||
<ng-template matTabContent>
|
||||
<div class="fx-row fx-wrap fx-even mt-md">
|
||||
<ng-container *ngFor="let v of iconGlobal">
|
||||
<div class="fx-column fx-center">
|
||||
<app-weather-video class="mat-elevation-z2" [video]="v" [timezone]="timezone" [coordinate]="coordinate" width="310"></app-weather-video>
|
||||
<h2>{{ v.type | videoType }}</h2>
|
||||
</div>
|
||||
</ng-container>
|
||||
@for (v of iconGlobal; track $index) {
|
||||
<ng-container>
|
||||
<div class="fx-column fx-center">
|
||||
<app-weather-video class="mat-elevation-z2" [video]="v" [timezone]="timezone" [coordinate]="coordinate" width="310"></app-weather-video>
|
||||
<h2>{{ v.type | videoType }}</h2>
|
||||
</div>
|
||||
</ng-container>
|
||||
}
|
||||
</div>
|
||||
</ng-template>
|
||||
</mat-tab>
|
||||
|
||||
@@ -15,37 +15,41 @@
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@if(forecast | async; as f){
|
||||
@if(forecast$ | async; as f){
|
||||
<div class="mws-flexbox">
|
||||
<div class="mws-flexbox">
|
||||
<ng-container *ngFor="let t of f; let i = index">
|
||||
@if(i < tileNoPerContainer){
|
||||
<app-weather-summary
|
||||
[ngClass]="(this.dayTime || this.todayTomorrow) ? 'mws-tiles-pl' : ''"
|
||||
[title]="t.title"
|
||||
[subtitle]="t.subtitle"
|
||||
[conditions]="t.conditions"
|
||||
[clickHandler]="goToMowestaHandler"
|
||||
[noMargin]="!dayTime && !todayTomorrow"
|
||||
[concise]="!verbose">
|
||||
</app-weather-summary>
|
||||
}
|
||||
</ng-container>
|
||||
@for (t of f; track i; let i = $index) {
|
||||
<ng-container>
|
||||
@if(i < tileNoPerContainer){
|
||||
<app-weather-summary
|
||||
[ngClass]="(this.dayTime || this.todayTomorrow) ? 'mws-tiles-pl' : ''"
|
||||
[title]="t.title"
|
||||
[subtitle]="t.subtitle"
|
||||
[conditions]="t.conditions"
|
||||
[clickHandler]="goToMowestaHandler"
|
||||
[noMargin]="!dayTime && !todayTomorrow"
|
||||
[concise]="!verbose">
|
||||
</app-weather-summary>
|
||||
}
|
||||
</ng-container>
|
||||
}
|
||||
</div>
|
||||
<div class="mws-flexbox">
|
||||
<ng-container *ngFor="let t of f; let i = index">
|
||||
@if(i >= tileNoPerContainer){
|
||||
<app-weather-summary
|
||||
[ngClass]="(this.dayTime || this.todayTomorrow) ? 'mws-tiles-pl' : ''"
|
||||
[title]="t.title"
|
||||
[subtitle]="t.subtitle"
|
||||
[conditions]="t.conditions"
|
||||
[clickHandler]="goToMowestaHandler"
|
||||
[noMargin]="!dayTime && !todayTomorrow"
|
||||
[concise]="!verbose">
|
||||
</app-weather-summary>
|
||||
}
|
||||
</ng-container>
|
||||
@for (t of f; track i;let i = $index) {
|
||||
<ng-container>
|
||||
@if(i >= tileNoPerContainer){
|
||||
<app-weather-summary
|
||||
[ngClass]="(this.dayTime || this.todayTomorrow) ? 'mws-tiles-pl' : ''"
|
||||
[title]="t.title"
|
||||
[subtitle]="t.subtitle"
|
||||
[conditions]="t.conditions"
|
||||
[clickHandler]="goToMowestaHandler"
|
||||
[noMargin]="!dayTime && !todayTomorrow"
|
||||
[concise]="!verbose">
|
||||
</app-weather-summary>
|
||||
}
|
||||
</ng-container>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}@else{
|
||||
|
||||
Reference in New Issue
Block a user