mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +00:00
Add warning after copying templates
This commit is contained in:
parent
fb084eb17f
commit
43b54215d2
1 changed files with 21 additions and 3 deletions
|
@ -27,11 +27,29 @@ def copyAdminTemplates():
|
||||||
|
|
||||||
copytree(src, dist)
|
copytree(src, dist)
|
||||||
print("Copied", src, "->", dist)
|
print("Copied", src, "->", dist)
|
||||||
|
|
||||||
|
print(
|
||||||
|
f"""
|
||||||
|
_________
|
||||||
|
| WARNING
|
||||||
|
| -------
|
||||||
|
|
|
||||||
|
| You might have to edit the file {dist}/base.html by adding nav in the following way:
|
||||||
|
| This line:\t<ul class="navbar-nav mr-auto">
|
||||||
|
| Becomes:\t<ul class="nav navbar-nav mr-auto">
|
||||||
|
|
|
||||||
|
| This will prevent the navigation bar from expanding such that some elements can not be seen.
|
||||||
|
| Refer to this pull request: https://github.com/flask-admin/flask-admin/pull/2233
|
||||||
|
|
|
||||||
|
| If the above pull request is merged and flask-admin is on a new release after the merge,
|
||||||
|
| then this step is not needed.
|
||||||
|
_________
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
if copyAdminTemplates():
|
if not copyAdminTemplates():
|
||||||
print("Done!")
|
|
||||||
else:
|
|
||||||
print("Did not copy!")
|
print("Did not copy!")
|
||||||
|
|
Loading…
Reference in a new issue