diff --git a/nsupdate/main/views.py b/nsupdate/main/views.py index 74b7b36..ce1a206 100644 --- a/nsupdate/main/views.py +++ b/nsupdate/main/views.py @@ -18,6 +18,7 @@ class HomeView(TemplateView): def get_context_data(self, *args, **kwargs): context = super(HomeView, self).get_context_data(*args, **kwargs) + context.update(create_context(self.request)) context['nav_home'] = True return context diff --git a/nsupdate/nsupdate/static/css/nsupdate.css b/nsupdate/nsupdate/static/css/nsupdate.css index f151011..9192f19 100644 --- a/nsupdate/nsupdate/static/css/nsupdate.css +++ b/nsupdate/nsupdate/static/css/nsupdate.css @@ -1,3 +1,26 @@ +html, body { + height: 100%; + /* The html and body elements cannot have any padding or margin. */ +} + +.wrap { + min-height: 100%; + height: auto !important; + height: 100%; + /* Negative indent footer by its height */ + margin: 0 auto -120px; + /* Pad bottom by footer height */ + padding: 0 0 60px; +} + .content { margin-top: 70px; } + +.footer { + height: 50px; + padding: 15px; + background-color: #ddd; +} + + diff --git a/nsupdate/nsupdate/templates/base.html b/nsupdate/nsupdate/templates/base.html index ae0e5b3..45836cf 100644 --- a/nsupdate/nsupdate/templates/base.html +++ b/nsupdate/nsupdate/templates/base.html @@ -10,6 +10,8 @@
Welcome to the base template. Extend this template in all other - templates and override the content block
++ nsupdate.info is an open-source DynDNS service with IPv4 and IPv6 support. +
++ Powered by python, the magical pony django and a stupid three columned icon landing page. +
++ nsupdate.info is winner of the Django-Dash 2013 with the highest score in the history of the competition. +
+We think this are your IPs:
+ {% elif session.ipv4 or session.ipv6 %} +We think this is your IP:
+ {% endif %} + + {% if session.ipv4 %} +