From 06a20250f15ddf2dd9c32f26370ea057fffe2f9c Mon Sep 17 00:00:00 2001
From: Julian Leucker <leuckerj@gmail.com>
Date: Thu, 12 Sep 2024 14:09:03 +0200
Subject: [PATCH] Show StatisticsForGroupTab.vue on GroupOverviewPage

---
 aleksis/apps/alsijil/frontend/index.js         | 14 ++++++++++++++
 aleksis/apps/alsijil/frontend/messages/en.json |  6 ++++++
 2 files changed, 20 insertions(+)

diff --git a/aleksis/apps/alsijil/frontend/index.js b/aleksis/apps/alsijil/frontend/index.js
index d1f4bcc16..c7cc473f9 100644
--- a/aleksis/apps/alsijil/frontend/index.js
+++ b/aleksis/apps/alsijil/frontend/index.js
@@ -4,6 +4,20 @@ import {
 } from "aleksis.core/routeValidators";
 import { DateTime } from "luxon";
 
+export const collectionItems = {
+  coreGroupOverview: [
+    {
+      tab: {
+        id: "alsijil.statistics",
+        titleKey: "group.tabs.statistics_tab",
+      },
+      titleKey: "group.tabs.statistics",
+      component: () =>
+        import("./components/coursebook/statistics/StatisticsForGroupTab.vue"),
+    },
+  ],
+};
+
 export default {
   meta: {
     inMenu: true,
diff --git a/aleksis/apps/alsijil/frontend/messages/en.json b/aleksis/apps/alsijil/frontend/messages/en.json
index 808126e52..c9e36553c 100644
--- a/aleksis/apps/alsijil/frontend/messages/en.json
+++ b/aleksis/apps/alsijil/frontend/messages/en.json
@@ -92,5 +92,11 @@
   },
   "actions": {
     "back_to_overview": "Back to overview"
+  },
+  "group": {
+    "tabs": {
+      "statistics": "Coursebook Statistics",
+      "statistics_tab": "Coursebook"
+    }
   }
 }
-- 
GitLab