forked from expo/troggle
Turn menu bar magenta if running on localserver
This commit is contained in:
parent
067fcd9892
commit
d2bcef6e36
@ -385,7 +385,13 @@ div#editLinks a{
|
|||||||
text-align:center;
|
text-align:center;
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
}
|
}
|
||||||
|
.toolbarlinkslocal
|
||||||
|
{
|
||||||
|
padding:5px;
|
||||||
|
background-color:#f9f;
|
||||||
|
text-align:center;
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
.footer {
|
.footer {
|
||||||
Dposition:fixed;
|
Dposition:fixed;
|
||||||
visibility:none;
|
visibility:none;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import sys
|
||||||
"""
|
"""
|
||||||
Django settings for troggle project.
|
Django settings for troggle project.
|
||||||
|
|
||||||
@ -17,6 +18,11 @@ https://docs.djangoproject.com/en/dev/ref/settings/
|
|||||||
|
|
||||||
|
|
||||||
print("* importing troggle/settings.py")
|
print("* importing troggle/settings.py")
|
||||||
|
if 'runserver' in sys.argv:
|
||||||
|
print(">>>>running on dev local runserver<<<<")
|
||||||
|
DEVSERVER = True
|
||||||
|
else:
|
||||||
|
DEVSERVER = False
|
||||||
|
|
||||||
# default value, then gets overwritten by real secrets
|
# default value, then gets overwritten by real secrets
|
||||||
SECRET_KEY = "not-the-real-secret-key-a#vaeozn0---^fj!355qki*vj2"
|
SECRET_KEY = "not-the-real-secret-key-a#vaeozn0---^fj!355qki*vj2"
|
||||||
|
@ -25,7 +25,11 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% if settings.DEVSERVER %}
|
||||||
|
<div class="toolbarlinkslocal">
|
||||||
|
{% else %}
|
||||||
<div class="toolbarlinks">
|
<div class="toolbarlinks">
|
||||||
|
{% endif %}
|
||||||
<a href="/survexfile/caves-1623/264/264.svx">264</a> |
|
<a href="/survexfile/caves-1623/264/264.svx">264</a> |
|
||||||
<a href="/survexfile/caves-1623/290/290.svx">290</a> |
|
<a href="/survexfile/caves-1623/290/290.svx">290</a> |
|
||||||
<a href="/survexfile/caves-1626/359/359.svx">359</a> |
|
<a href="/survexfile/caves-1626/359/359.svx">359</a> |
|
||||||
|
Loading…
Reference in New Issue
Block a user