From d932baf8969f481cc5a7dd3847261f7b0bd00ddb Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 5 Jun 2024 10:53:31 +0530 Subject: [PATCH] feat: job application count --- frontend/src/components/AppSidebar.vue | 2 +- frontend/src/pages/JobDetail.vue | 75 +- lms/hooks.py | 3 +- .../job_opportunity/job_opportunity.py | 13 +- yarn.lock | 3358 +---------------- 5 files changed, 92 insertions(+), 3359 deletions(-) diff --git a/frontend/src/components/AppSidebar.vue b/frontend/src/components/AppSidebar.vue index bcfe7239..69735a48 100644 --- a/frontend/src/components/AppSidebar.vue +++ b/frontend/src/components/AppSidebar.vue @@ -147,7 +147,7 @@ const sidebarSettings = createResource({ Object.keys(data).forEach((key) => { if (!parseInt(data[key])) { sidebarLinks.value = sidebarLinks.value.filter( - (link) => link.label.toLowerCase() !== key + (link) => link.label.toLowerCase().split(' ').join('_') !== key ) } }) diff --git a/frontend/src/pages/JobDetail.vue b/frontend/src/pages/JobDetail.vue index f8e5b9b4..afb2fdf3 100644 --- a/frontend/src/pages/JobDetail.vue +++ b/frontend/src/pages/JobDetail.vue @@ -59,29 +59,41 @@ :alt="job.data.company_name" />
-
+
{{ job.data.job_title }}
-
- {{ __('posted by') }} - {{ job.data.company_name }} - {{ __('on') }} - {{ - dayjs(job.data.creation).format('DD MMM YYYY') - }} -
-
- - - - + {{ job.data.location }} +
+
+
+
+ + {{ job.data.type }} +
+
+ + {{ applicationCount.data }} + {{ __('applications received') }} +
+
+
+
+ + {{ + dayjs(job.data.creation).format('DD MMM YYYY') + }} +
+
@@ -101,7 +113,15 @@