mirror of
https://github.com/DarrylNixon/ghostforge
synced 2024-04-22 06:27:20 -07:00
Preparing to setup fastapi-users
This commit is contained in:
parent
7598e2c8fc
commit
216d2ac42b
15 changed files with 266 additions and 45 deletions
|
@ -2,7 +2,7 @@ import importlib.metadata
|
|||
|
||||
from fastapi.templating import Jinja2Templates
|
||||
|
||||
templates = Jinja2Templates(directory="templates")
|
||||
templates = Jinja2Templates(directory="ghostforge/templates")
|
||||
|
||||
# Inject version string and Github URL into every template for navbar display.
|
||||
try:
|
||||
|
@ -15,31 +15,31 @@ templates.env.globals["gf_repository_url"] = "https://github.com/DarrylNixon/gho
|
|||
# Same, but build the navbar from an ordered dictionary for centralization.
|
||||
# Since 3.7 (we require >= 3.9), dicts are guaranteed ordered as inserted.
|
||||
templates.env.globals["gf_navbar"] = {
|
||||
"Management": {
|
||||
"Dashboard": "/user/0",
|
||||
"New Ghost": "/user/0",
|
||||
"Active Ghosts": "/user/0",
|
||||
"Archived Ghosts": "/user/0",
|
||||
"Ghosts": {
|
||||
"Dashboard": "/users/0",
|
||||
"New": "/users/0",
|
||||
"Active": "/users/0",
|
||||
"Archived": "/users/0",
|
||||
},
|
||||
"Research": {
|
||||
"Guidebook": "/user/0",
|
||||
"Cheat Sheet": "/user/0",
|
||||
"Guidebook": "/users/0",
|
||||
"Cheat Sheet": "/users/0",
|
||||
},
|
||||
"Settings": {
|
||||
"Your Profile": "/user/0",
|
||||
"Configuration": "/user/0",
|
||||
"Integrations": "/user/0",
|
||||
"Manage Users": "/user/0",
|
||||
"Your Profile": "/users/0",
|
||||
"Configuration": "/users/0",
|
||||
"Integrations": "/users/0",
|
||||
"Manage Users": "/users/0",
|
||||
},
|
||||
"Meta": {
|
||||
"About GhostForge": "/user/0",
|
||||
"System Logs": "/user/0",
|
||||
"Logout": "/user/0",
|
||||
"About GhostForge": "/users/0",
|
||||
"System Logs": "/users/0",
|
||||
"Logout": "/users/0",
|
||||
},
|
||||
}
|
||||
|
||||
templates.env.globals["avatar_menu"] = {
|
||||
"Dashboard": "/user/0",
|
||||
"Your Profile": "/user/0",
|
||||
"Logout": "/user/0",
|
||||
"Dashboard": "/users/0",
|
||||
"Your Profile": "/users/0",
|
||||
"Logout": "/users/0",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue