File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ def create_api(manager):
2424
2525 # 挂载静态文件
2626 app .mount ("/static" , StaticFiles (directory = "static" ), name = "static" )
27+ app .mount ("/templates" , StaticFiles (directory = "templates" ), name = "templates" )
2728
2829 @app .get ("/" )
2930 async def read_root ():
Original file line number Diff line number Diff line change 1111 < script src ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js "
1212 integrity ="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz "
1313 crossorigin ="anonymous "> </ script >
14- < link href =". /css/style.css " rel ="stylesheet ">
14+ < link href ="/templates /css/style.css " rel ="stylesheet ">
1515</ head >
1616< body >
1717 < nav class ="navbar bg-body-secondary navbar-expand-lg sticky-top ">
2020 < img src ="../static/favicon.svg " alt ="Stable Diffusion 模型管理器 " height ="26 ">
2121 </ a >
2222
23- < button class ="btn ms-auto " id ="nsfwToggle ">
23+ < button class ="btn btn-success ms-auto " id ="nsfwToggle ">
2424 < i class ="bi bi-eye-slash-fill " id ="nsfwIcon "> </ i >
2525 < span class ="ms-1 " id ="nsfwText "> NSFW 已关闭</ span >
2626 </ button >
You can’t perform that action at this time.
0 commit comments