diff libervia/web/server/constants.py @ 1618:5d9889f14012 default tip @

server: start major redesign - Add icons to menu items - Switch menu items representation from tuple to dictionary for future extensibility: - Include icon information - Prepare for additional data - Remove "login" from main menu, add login page URL to template data, as it is now a separate right-aligned item
author Goffi <goffi@goffi.org>
date Sat, 26 Oct 2024 23:07:01 +0200
parents 7941444c1671
children
line wrap: on
line diff
--- a/libervia/web/server/constants.py	Wed Aug 07 00:02:40 2024 +0200
+++ b/libervia/web/server/constants.py	Sat Oct 26 23:07:01 2024 +0200
@@ -101,6 +101,19 @@
         #    probably).
     ]
 
+    DEFAULT_ICONS = {
+        "chat": "comments",
+        "blog": "blog",
+        "forums": "message",
+        "photos": "images",
+        "files": "file-lines",
+        "calendar": "calendar",
+        "events": "calendar-check",
+        "lists": "rectangle-list",
+        "merge-requests": "code-pull-request",
+        "calls": "video",
+    }
+
     ## Session flags ##
     FLAG_CONFIRM = "CONFIRM"