fix(Routes): /projects instead of /project

This commit is contained in:
Matthieu Bessat 2022-08-02 22:14:23 +02:00
parent 92da1cc8e4
commit 7e6a7d47d6
3 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ function addRoutes(\Slim\App $app): void
$container = $app->getContainer(); $container = $app->getContainer();
$app->get('/', [Controller\HomeController::class, 'getHome']); $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('/html-resume', [Controller\ResumeController::class, 'getHTMLResume']);
$app->get('/json-resume', [Controller\ResumeController::class, 'getJsonResume']); $app->get('/json-resume', [Controller\ResumeController::class, 'getJsonResume']);

View file

@ -170,7 +170,7 @@
(% for exp in pro_projects %) (% for exp in pro_projects %)
\textbf{(( _self.cdate(exp.to) ))} & \textbf{(( _self.cdate(exp.to) ))} &
(% if exp.detailled %) (% if exp.detailled %)
\link{(( website ))/(( getLocale() ))/project/(( exp.id )).html}{% \link{(( website ))/(( getLocale() ))/projects/(( exp.id )).html}{%
(% endif %) (% endif %)
\textbf{(( getDynLocalizedStr(exp.name) ))}(% if exp.detailled %)}(% 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 %) \\* \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} \begin{minipage}[t]{\dimexpr(\linewidth) - 1.5em}
(% if exp.detailled %) (% if exp.detailled %)
\link{(( website ))/(( getLocale() ))/project/(( exp.id )).html}{% \link{(( website ))/(( getLocale() ))/projects/(( exp.id )).html}{%
(% endif %) (% endif %)
\textbf{\textsc{(( getDynLocalizedStr(exp.name) | raw ))}}% \textbf{\textsc{(( getDynLocalizedStr(exp.name) | raw ))}}%
(% if exp.detailled %)}(% endif %) (% if exp.detailled %)}(% endif %)

View file

@ -14,7 +14,7 @@
<div class="project-content"> <div class="project-content">
<h3 class="project-title"> <h3 class="project-title">
{% if project.detailled %} {% if project.detailled %}
<a href="/project/{{ project.id }}"> <a href="/projects/{{ project.id }}">
{{ getDynLocalizedStr(project.name) }} {{ getDynLocalizedStr(project.name) }}
</a> </a>
{% else %} {% else %}