From 7e6a7d47d67cb08128d435fb5d73dae138714c68 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Tue, 2 Aug 2022 22:14:23 +0200 Subject: [PATCH] fix(Routes): /projects instead of /project --- src/routes.php | 2 +- templates/cv.tex | 4 ++-- templates/home/projects_list.html.twig | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes.php b/src/routes.php index c6eb3e3..43ca67a 100644 --- a/src/routes.php +++ b/src/routes.php @@ -11,7 +11,7 @@ function addRoutes(\Slim\App $app): void $container = $app->getContainer(); $app->get('/', [Controller\HomeController::class, 'getHome']); - $app->get('/project/{id}', [Controller\HomeController::class, 'getProject']); + $app->get('/projects/{id}', [Controller\HomeController::class, 'getProject']); $app->get('/html-resume', [Controller\ResumeController::class, 'getHTMLResume']); $app->get('/json-resume', [Controller\ResumeController::class, 'getJsonResume']); diff --git a/templates/cv.tex b/templates/cv.tex index cabd411..86a2f6b 100644 --- a/templates/cv.tex +++ b/templates/cv.tex @@ -170,7 +170,7 @@ (% for exp in pro_projects %) \textbf{(( _self.cdate(exp.to) ))} & (% if exp.detailled %) - \link{(( website ))/(( getLocale() ))/project/(( exp.id )).html}{% + \link{(( website ))/(( getLocale() ))/projects/(( exp.id )).html}{% (% endif %) \textbf{(( getDynLocalizedStr(exp.name) ))}(% if exp.detailled %)}(% endif %) \\* \textbf{(( _self.cdate(exp.from) ))} & \textsc{(( exp.organization.name ))} (% if exp.organization.location is defined %), (( exp.organization.location ))(% endif %) \\* @@ -198,7 +198,7 @@ \begin{minipage}[t]{\dimexpr(\linewidth) - 1.5em} (% if exp.detailled %) - \link{(( website ))/(( getLocale() ))/project/(( exp.id )).html}{% + \link{(( website ))/(( getLocale() ))/projects/(( exp.id )).html}{% (% endif %) \textbf{\textsc{(( getDynLocalizedStr(exp.name) | raw ))}}% (% if exp.detailled %)}(% endif %) diff --git a/templates/home/projects_list.html.twig b/templates/home/projects_list.html.twig index b0ebfd9..5991203 100644 --- a/templates/home/projects_list.html.twig +++ b/templates/home/projects_list.html.twig @@ -14,7 +14,7 @@

{% if project.detailled %} - + {{ getDynLocalizedStr(project.name) }} {% else %}