diff --git a/coffee_scale/urls.py b/coffee_scale/urls.py index f750576..acaa103 100644 --- a/coffee_scale/urls.py +++ b/coffee_scale/urls.py @@ -1,4 +1,5 @@ from django.conf.urls import url +from django.conf import settings from django.views.generic.base import RedirectView from .views import coffee_view @@ -6,7 +7,10 @@ from .views import coffee_view favicon_view = RedirectView.as_view(url='static/img/favicon.ico', permanent=True) urlpatterns = [ - # landing page url(r'^$', coffee_view), ] + +if settings.DEBUG: + from django.contrib.staticfiles.urls import staticfiles_urlpatterns + urlpatterns += staticfiles_urlpatterns() diff --git a/infoscreen/static/css/infoscreen_admin.css b/infoscreen/static/css/admin.css similarity index 89% rename from infoscreen/static/css/infoscreen_admin.css rename to infoscreen/static/css/admin.css index f4ceb48..5a43ebc 100644 --- a/infoscreen/static/css/infoscreen_admin.css +++ b/infoscreen/static/css/admin.css @@ -49,7 +49,12 @@ td { } } - #header { max-width: 100%; } + +.logout-button { + float: right; + margin-top: 10px; + margin-right: 30px; +} diff --git a/infoscreen/templates/base.html b/infoscreen/templates/base.html new file mode 100644 index 0000000..8091d50 --- /dev/null +++ b/infoscreen/templates/base.html @@ -0,0 +1,41 @@ +{% load i18n %} +{% load static %} +{% load staticfiles %} + + + +{% block html %} + + + + + {% block title %} + {% endblock title %} + + + {% block libraries %} + + + + + + + + + + {% endblock libraries %} + + {% block styles %} + + {% endblock styles %} + + {% block controllers %} + + {% endblock controllers %} + + + {% block body %} + {% endblock body %} + + +{% endblock html %} \ No newline at end of file diff --git a/infoscreen/templates/infoscreen_admin.html b/infoscreen/templates/infoscreen_admin.html index 9ab758e..4e57597 100644 --- a/infoscreen/templates/infoscreen_admin.html +++ b/infoscreen/templates/infoscreen_admin.html @@ -1,154 +1,154 @@ +{% extends "infoscreen:base.html" %} + {% load i18n %} {% load static %} {% load staticfiles %} - - - - - Infoscreen admin - - - - - - - - - - - -