cleaned up date formats a bit
This commit is contained in:
@@ -151,7 +151,7 @@ onMounted(async () => {
|
|||||||
@click="router.push(`/trainingReport/${report.event_id}`)">
|
@click="router.push(`/trainingReport/${report.event_id}`)">
|
||||||
<TableCell class="font-medium">{{ report.course_name.length > 30 ? report.course_shortname :
|
<TableCell class="font-medium">{{ report.course_name.length > 30 ? report.course_shortname :
|
||||||
report.course_name }}</TableCell>
|
report.course_name }}</TableCell>
|
||||||
<TableCell>{{ report.date }}</TableCell>
|
<TableCell>{{ report.date.split('T')[0] }}</TableCell>
|
||||||
<TableCell class="text-right">{{ report.created_by_name === null ? "Unknown User" :
|
<TableCell class="text-right">{{ report.created_by_name === null ? "Unknown User" :
|
||||||
report.created_by_name
|
report.created_by_name
|
||||||
}}</TableCell>
|
}}</TableCell>
|
||||||
@@ -173,7 +173,7 @@ onMounted(async () => {
|
|||||||
<p class="scroll-m-20 text-xl font-semibold tracking-tight">{{ focusedTrainingReport.course_name }}
|
<p class="scroll-m-20 text-xl font-semibold tracking-tight">{{ focusedTrainingReport.course_name }}
|
||||||
</p>
|
</p>
|
||||||
<div class="flex gap-10">
|
<div class="flex gap-10">
|
||||||
<p class="text-muted-foreground">{{ focusedTrainingReport.event_date }}</p>
|
<p class="text-muted-foreground">{{ focusedTrainingReport.event_date.split('T')[0] }}</p>
|
||||||
<p class="">Created by {{ focusedTrainingReport.created_by_name === null ? "Unknown User" :
|
<p class="">Created by {{ focusedTrainingReport.created_by_name === null ? "Unknown User" :
|
||||||
focusedTrainingReport.created_by_name
|
focusedTrainingReport.created_by_name
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user