-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Reopening Time to OH Panel, Make OH Panel Responsive (#385)
* Add Reopening Time to OH Panel, Make OH Panel Responsive * Fix Month and Date Orientation
- Loading branch information
1 parent
72fe4aa
commit 0abfac2
Showing
4 changed files
with
76 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 26 additions & 16 deletions
42
frontend/src/app/coworking/widgets/operating-hours-panel/operating-hours-panel.widget.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,30 @@ | ||
<mat-card appearance="outlined"> | ||
<mat-card-header class="header"> | ||
<mat-card-title | ||
class="hours-title open" | ||
*ngIf="openOperatingHours; else closed"> | ||
<div class="header-row"> | ||
<span class="badge">Open</span> | ||
until {{ openOperatingHours!.end | date: 'h:mma' | lowercase }} | ||
</div> | ||
</mat-card-title> | ||
<ng-template #closed> | ||
<mat-card-title class="hours-title closed" | ||
><span class="badge">Closed</span></mat-card-title | ||
> | ||
</ng-template> | ||
<button mat-stroked-button id="hours-button" (click)="openDialog()"> | ||
All Hours | ||
</button> | ||
<div class="header-row"> | ||
<mat-card-title | ||
class="hours-title open" | ||
*ngIf="openOperatingHours; else closed"> | ||
<div class="header-row"> | ||
<span class="badge">Open</span> | ||
until {{ openOperatingHours!.end | date: 'h:mma' | lowercase }} | ||
</div> | ||
</mat-card-title> | ||
<ng-template #closed> | ||
<mat-card-title class="hours-title closed"> | ||
<span class="badge">Closed</span> | ||
<span *ngIf="operatingHours.length > 0" | ||
>Open | ||
{{ | ||
operatingHours[0]!.start | ||
| date: "EEE, MMM d 'at' h:mma" | ||
| operatingHoursCapitalizationPipe | ||
}}</span | ||
> | ||
</mat-card-title> | ||
</ng-template> | ||
<button mat-stroked-button id="hours-button" (click)="openDialog()"> | ||
All Hours | ||
</button> | ||
</div> | ||
</mat-card-header> | ||
</mat-card> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters