From 111e8295e4dc592b4a1441308ac378cbb9a63f0f Mon Sep 17 00:00:00 2001 From: Florimond Manca Date: Fri, 27 Sep 2024 15:55:33 +0200 Subject: [PATCH] =?UTF-8?q?Remet=20en=20place=20le=20lien=20d'abonnement?= =?UTF-8?q?=20au=20calendrier=20des=20cong=C3=A9s=20(#445)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Remet en place le lien d'abonnement au calendrier des congés * Fix docker-compose -> docker compose --- .github/workflows/ci.yml | 2 +- Makefile | 4 +++- .../Leave/Controller/ListLeaveRequestsController.ts | 5 ++++- src/templates/pages/leave_requests/list.njk | 10 ++++++++++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b181320b..e7f19ad8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - name: Tests - run: make ci + run: make ci BIN_DOCKER_COMPOSE="docker compose" - uses: codecov/codecov-action@v1 with: diff --git a/Makefile b/Makefile index 5387166d..205f33cc 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,9 @@ help: @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' -compose = docker-compose -p permacoop +BIN_DOCKER_COMPOSE=docker-compose + +compose = ${BIN_DOCKER_COMPOSE} -p permacoop run_server = ./tools/colorize_prefix.sh [server] 31 run_watch = ./tools/colorize_prefix.sh [watch] 36 diff --git a/src/Infrastructure/HumanResource/Leave/Controller/ListLeaveRequestsController.ts b/src/Infrastructure/HumanResource/Leave/Controller/ListLeaveRequestsController.ts index 36fc147c..0e591589 100644 --- a/src/Infrastructure/HumanResource/Leave/Controller/ListLeaveRequestsController.ts +++ b/src/Infrastructure/HumanResource/Leave/Controller/ListLeaveRequestsController.ts @@ -54,11 +54,14 @@ export class ListLeaveRequestsController { userId ); + const calendarToken = process.env.CALENDAR_TOKEN; + return { table, overviewTable, pagination, - currentPage: dto.page + currentPage: dto.page, + calendarToken }; } } diff --git a/src/templates/pages/leave_requests/list.njk b/src/templates/pages/leave_requests/list.njk index 41e7e67a..db56dbb9 100644 --- a/src/templates/pages/leave_requests/list.njk +++ b/src/templates/pages/leave_requests/list.njk @@ -15,6 +15,16 @@ {{ links.add(path('people_leave_requests_add'), text='leave-requests-add-title'|trans) }} +
+ + + + + +
+

{{ 'leaves-summary-title'|trans }}