From 05fbdab54c4d0f703e5427fdcf82643a84ce0f65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Schmidt?= <9435005+AnSch1510@users.noreply.github.com> Date: Sun, 15 Dec 2024 00:09:40 +0100 Subject: [PATCH 1/2] remove nested menu --- .../app/components/app/menu/menu.component.ts | 32 ++++++++----------- src/client/src/app/i18n/de.json | 1 - src/client/src/app/i18n/en.json | 1 - 3 files changed, 13 insertions(+), 21 deletions(-) diff --git a/src/client/src/app/components/app/menu/menu.component.ts b/src/client/src/app/components/app/menu/menu.component.ts index fbfee57..7288ff4 100644 --- a/src/client/src/app/components/app/menu/menu.component.ts +++ b/src/client/src/app/components/app/menu/menu.component.ts @@ -66,25 +66,19 @@ export class MenuComponent { routerLink: '/home', }, { - label: this.translations.nav_manage(), - icon: 'i-[mdi--table-edit]', - items: [ - { - label: this.translations.nav_maps(), - icon: 'i-[mdi--golf]', - routerLink: '/manage/maps', - }, - { - label: this.translations.nav_users(), - icon: 'i-[mdi--account-multiple]', - routerLink: '/manage/users', - }, - { - label: this.translations.nav_events(), - icon: 'i-[mdi--calendar]', - routerLink: '/manage/events', - }, - ], + label: this.translations.nav_maps(), + icon: 'i-[mdi--golf]', + routerLink: '/manage/maps', + }, + { + label: this.translations.nav_users(), + icon: 'i-[mdi--account-multiple]', + routerLink: '/manage/users', + }, + { + label: this.translations.nav_events(), + icon: 'i-[mdi--calendar]', + routerLink: '/manage/events', }, { label: this.translations.nav_settings(), diff --git a/src/client/src/app/i18n/de.json b/src/client/src/app/i18n/de.json index fc52885..bd01bd5 100644 --- a/src/client/src/app/i18n/de.json +++ b/src/client/src/app/i18n/de.json @@ -18,7 +18,6 @@ }, "nav": { "home": "Startseite", - "manage": "Verwalten", "events": "Veranstaltungen", "event": "Veranstaltung", "eventTimeslot": "Zeitslot", diff --git a/src/client/src/app/i18n/en.json b/src/client/src/app/i18n/en.json index b5ed139..d9c2690 100644 --- a/src/client/src/app/i18n/en.json +++ b/src/client/src/app/i18n/en.json @@ -18,7 +18,6 @@ }, "nav": { "home": "Home", - "manage": "Manage", "events": "Events", "event": "Event", "eventTimeslot": "Timeslot", From ca67a800b39e9b14238709f1357788c0fbda3e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Schmidt?= <9435005+AnSch1510@users.noreply.github.com> Date: Sun, 15 Dec 2024 00:10:29 +0100 Subject: [PATCH 2/2] improve event-details view --- .../event-details.component.html | 64 ++++++++++++------- 1 file changed, 42 insertions(+), 22 deletions(-) diff --git a/src/client/src/app/components/events/event-details/event-details.component.html b/src/client/src/app/components/events/event-details/event-details.component.html index 4d9852f..8cbcdfe 100644 --- a/src/client/src/app/components/events/event-details/event-details.component.html +++ b/src/client/src/app/components/events/event-details/event-details.component.html @@ -72,7 +72,7 @@
-

{{ translations.events_facebookLink() }}

+

{{ translations.events_facebookLink() }}

-

{{ translations.events_timeslots() }}

+

{{ translations.events_timeslots() }}

@@ -118,29 +118,49 @@

{{ translations.events_timeslots() }}

@for (timeslot of timeslots(); track timeslot.id; let index = $index) { - -
- - - {{ timeslot.time.hour | number: '2.0-0' }}:{{ - timeslot.time.minute | number: '2.0-0' - }} - @if (timeslot.mapId) { - @if (maps()[timeslot.mapId]; as map) { - - {{ map.name }} + +
+ + @if (timeslot.isFallbackAllowed) { + } - } - - {{ timeslot.playerIds.length }} -
-
+ + {{ timeslot.time.hour | number: '2.0-0' }}:{{ + timeslot.time.minute | number: '2.0-0' + }} + @if (timeslot.mapId) { + @if (maps()[timeslot.mapId]; as map) { + + {{ map.name }} + } + } + + {{ timeslot.playerIds.length }} + +
+ + +
+ } @if (event.timeslots.length === 0) {
@@ -151,7 +171,7 @@

{{ translations.events_timeslots() }}

@if (canBuildInstances()) {
-

{{ translations.events_groups() }}

+

{{ translations.events_groups() }}

@if (!event.startedAt) {