Macro Planning: add link to project label

This commit is contained in:
Jérémy Munsch 2022-05-22 13:23:50 +02:00
parent f7f9af4196
commit 5af1101c02
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
2 changed files with 2 additions and 1 deletions

View file

@ -61,7 +61,7 @@
<template v-if="isAdmin">
<tr v-for="project of projects" :key="project.id" class="projectRow">
<th scope="col">
<span :class="'rounded-1 p-1 project text-nowrap text-truncate overflow-hidden bg-enum-'+project.status">{{ project.name | str_limit(45) }}</span>
<a :href="route('projects.show', {PROJECT: project.id })" :class="'rounded-1 p-1 project text-nowrap text-truncate overflow-hidden bg-enum-'+project.status">{{ project.name | str_limit(45) }}</a>
</th>
<td>
<span class="fw-bold text-nowrap text-truncate overflow-hidden">{{ projectStatusEnum[project.status].label }}</span>

View file

@ -21,6 +21,7 @@
<script>
window._routes = {
"macroplanning.activity": "{{ route('macroplanning.activity') }}",
"projects.show": "{{ route('projects.show', ['project' => 'PROJECT']) }}",
};
</script>
@endpush