mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +00:00
refactor: replace amDateFormat with new pipes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<div *ngIf="origin.type === 'user'">
|
||||
<p>{{ origin.created | amDateFormat: 'll' }}</p>
|
||||
<p>{{origin.created | dateFormat}}</p>
|
||||
</div>
|
||||
|
||||
<div *ngIf="origin.type === 'remote'">
|
||||
<p>{{ origin.indexed | amDateFormat: 'll' }}</p>
|
||||
<p>{{origin.indexed | dateFormat}}</p>
|
||||
</div>
|
||||
|
||||
@@ -7,13 +7,11 @@
|
||||
<ion-icon name="calendar"></ion-icon>
|
||||
<span>
|
||||
{{ item.repeatFrequency | amDuration }},
|
||||
{{ item.dates[0] | amDateFormat: 'dddd' }}
|
||||
<span
|
||||
>({{ item.dates[0] | amDateFormat: 'll' }} -
|
||||
{{
|
||||
item.dates[item.dates.length - 1] | amDateFormat: 'll'
|
||||
}})</span
|
||||
>
|
||||
{{ item.dates[0] | dateFormat: 'weekday:long' }}
|
||||
<span>
|
||||
({{ item.dates[0] | dateFormat }} -
|
||||
{{ item.dates[item.dates.length - 1] | dateFormat }})
|
||||
</span>
|
||||
</span>
|
||||
</p>
|
||||
<ion-note *ngIf="item.event.type === 'academic event'">{{
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<div *ngIf="dishes | async as dishes; else loading">
|
||||
<ion-segment [(ngModel)]="selectedDay" mode="md">
|
||||
<ion-segment-button *ngFor="let day of dishes | keyvalue" [value]="day.key">
|
||||
<ion-label class="ion-hide-sm-down">{{day.key | amLocal | amDateFormat:'dddd, l'}}</ion-label>
|
||||
<ion-label class="ion-hide-sm-up">{{day.key | amLocal | amDateFormat:'dd, l'}}</ion-label>
|
||||
<ion-label class="ion-hide-sm-down">{{day.key | dateFormat:'weekday:long,month:numeric,day:numeric'}}</ion-label>
|
||||
<ion-label class="ion-hide-sm-up">{{day.key | dateFormat:'weekday:short,month:numeric,day:numeric' }}</ion-label>
|
||||
</ion-segment-button>
|
||||
</ion-segment>
|
||||
<div [ngSwitch]="selectedDay">
|
||||
|
||||
@@ -5,10 +5,7 @@
|
||||
<h2 class="name">{{ 'name' | thingTranslate: item }}</h2>
|
||||
<p>
|
||||
<ion-icon name="calendar"></ion-icon>
|
||||
<span
|
||||
>{{ item.startDate | amDateFormat: 'll' }} -
|
||||
{{ item.endDate | amDateFormat: 'll' }}</span
|
||||
>
|
||||
<span>{{item.startDate | dateFormat}} - {{item.endDate | dateFormat}}</span>
|
||||
</p>
|
||||
<ion-note>{{ 'type' | thingTranslate: item }}</ion-note>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user