From 74b2396376e7c2eb1555cc482813d287adc0df3d Mon Sep 17 00:00:00 2001
From: Tom Zhao <tom.zhao@dsv.su.se>
Date: Mon, 2 Dec 2024 14:49:40 +0100
Subject: [PATCH] 3470: Add new panel to show unread message count (as POC so
 far)

---
 .../scipro/forum/panels/NumberOfMessagesPanel.html  | 11 +++++++++++
 .../scipro/forum/panels/NumberOfMessagesPanel.java  | 13 +++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 view/src/main/java/se/su/dsv/scipro/forum/panels/NumberOfMessagesPanel.html
 create mode 100644 view/src/main/java/se/su/dsv/scipro/forum/panels/NumberOfMessagesPanel.java

diff --git a/view/src/main/java/se/su/dsv/scipro/forum/panels/NumberOfMessagesPanel.html b/view/src/main/java/se/su/dsv/scipro/forum/panels/NumberOfMessagesPanel.html
new file mode 100644
index 0000000000..5184048389
--- /dev/null
+++ b/view/src/main/java/se/su/dsv/scipro/forum/panels/NumberOfMessagesPanel.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html xmlns:wicket="http://wicket.apache.org">
+<head>
+    <title></title>
+</head>
+<body>
+<wicket:panel>
+    <span wicket:id="msgCount"></span>
+</wicket:panel>
+</body>
+</html>
\ No newline at end of file
diff --git a/view/src/main/java/se/su/dsv/scipro/forum/panels/NumberOfMessagesPanel.java b/view/src/main/java/se/su/dsv/scipro/forum/panels/NumberOfMessagesPanel.java
new file mode 100644
index 0000000000..b7a5900689
--- /dev/null
+++ b/view/src/main/java/se/su/dsv/scipro/forum/panels/NumberOfMessagesPanel.java
@@ -0,0 +1,13 @@
+package se.su.dsv.scipro.forum.panels;
+
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.panel.Panel;
+
+public class NumberOfMessagesPanel extends Panel {
+
+    public NumberOfMessagesPanel(final String id) {
+        super(id);
+
+        add(new Label("msgCount", " (0)"));
+    }
+}