diff --git a/Controller/ViewController.php b/Controller/ViewController.php index 3ebff02..12bf7f5 100644 --- a/Controller/ViewController.php +++ b/Controller/ViewController.php @@ -25,7 +25,7 @@ #[Route(path: '/auth/shared-project-timesheets')] class ViewController extends AbstractController { - #[Route(path: '/{sharedProject}/{shareKey}', name: 'view_shared_project_timesheets', methods: ['GET', 'POST'])] + #[Route(path: '/{project}/{shareKey}', name: 'view_shared_project_timesheets', methods: ['GET', 'POST'])] public function indexAction( Project $project, string $shareKey, diff --git a/Resources/views/manage/index.html.twig b/Resources/views/manage/index.html.twig index fc758f9..01bf09b 100644 --- a/Resources/views/manage/index.html.twig +++ b/Resources/views/manage/index.html.twig @@ -12,7 +12,7 @@ {% elseif column == 'url' %} {% if entry.shareKey %} {% if entry.project %} - {% set p_url = url('view_shared_project_timesheets', {sharedProject: entry.project.id, shareKey: entry.shareKey}) %} + {% set p_url = url('view_shared_project_timesheets', {project: entry.project.id, shareKey: entry.shareKey}) %} {% elseif entry.customer %} {% set p_url = url('view_shared_project_timesheets_customer', {customer: entry.customer.id, shareKey: entry.shareKey}) %} {% endif %} diff --git a/Resources/views/view/project.html.twig b/Resources/views/view/project.html.twig index ee7ad7d..7d8b604 100644 --- a/Resources/views/view/project.html.twig +++ b/Resources/views/view/project.html.twig @@ -95,10 +95,10 @@ {% if monthlyChartVisible %}
- + - +