Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
1617:e338426ed4de | 1618:5d9889f14012 |
---|---|
99 # XXX: app is not available anymore since removal of pyjamas code with Python 3 | 99 # XXX: app is not available anymore since removal of pyjamas code with Python 3 |
100 # port. It should come back at a later point with an alternative (Brython | 100 # port. It should come back at a later point with an alternative (Brython |
101 # probably). | 101 # probably). |
102 ] | 102 ] |
103 | 103 |
104 DEFAULT_ICONS = { | |
105 "chat": "comments", | |
106 "blog": "blog", | |
107 "forums": "message", | |
108 "photos": "images", | |
109 "files": "file-lines", | |
110 "calendar": "calendar", | |
111 "events": "calendar-check", | |
112 "lists": "rectangle-list", | |
113 "merge-requests": "code-pull-request", | |
114 "calls": "video", | |
115 } | |
116 | |
104 ## Session flags ## | 117 ## Session flags ## |
105 FLAG_CONFIRM = "CONFIRM" | 118 FLAG_CONFIRM = "CONFIRM" |
106 | 119 |
107 ## Data post ## | 120 ## Data post ## |
108 POST_NO_CONFIRM = "POST_NO_CONFIRM" | 121 POST_NO_CONFIRM = "POST_NO_CONFIRM" |