3470: Add new panel to show unread message count (as POC so far)

This commit is contained in:
Tom Zhao 2024-12-02 14:49:40 +01:00
parent 552aaade6e
commit 74b2396376
2 changed files with 24 additions and 0 deletions
view/src/main/java/se/su/dsv/scipro/forum/panels

@ -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>

@ -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)"));
}
}