From ea94813d94e60dea7f57902ab0d5411fda99561d Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 6 Jan 2026 12:36:15 +0530 Subject: [PATCH] feat: system notification for new courses published --- frontend/src/pages/Notifications.vue | 118 ++++++++++++++++------- lms/lms/api.py | 35 +++++-- lms/lms/doctype/lms_course/lms_course.py | 70 ++++++++------ 3 files changed, 156 insertions(+), 67 deletions(-) diff --git a/frontend/src/pages/Notifications.vue b/frontend/src/pages/Notifications.vue index afcfd9a5..525f091f 100644 --- a/frontend/src/pages/Notifications.vue +++ b/frontend/src/pages/Notifications.vue @@ -23,30 +23,71 @@ v-if="notifications?.length" v-for="log in notifications" :key="log.name" - class="flex items-center py-2 justify-between" + class="flex space-x-2 p-2 rounded-md" + :class="{ + 'cursor-pointer': log.link, + }" + @click="navigateToPage(log)" > -
- -
-
-
- +
+
+
+
+
+
+
+ {{ dayjs(log.creation).fromNow() }} +
+ +
+
+
- {{ __('View') }} - - +