make home view customizable via includes

This commit is contained in:
Thomas Waldmann 2013-11-03 22:57:37 +01:00
parent f12539aee8
commit 9dcefda8d3
5 changed files with 7 additions and 0 deletions

View File

@ -3,11 +3,13 @@
{% load static %}
{% block content %}
{% include "main/includes/home_top.html" %}
<div class="jumbotron">
<h4>Your current IP(s):</h4>
<h1>IPv4: <span id="ipv4">{{ request.session.ipv4 }}</span></h1>
<h3>IPv6: <span id="ipv6">{{ request.session.ipv6 }}</span></h3>
</div>
{% include "main/includes/home_middle.html" %}
<div class="row">
<div class="col-sm-12" style="text-align: center">
<h1>{{ WWW_HOST }} &mdash; the Dynamic DNS service you waited for.</h1>
@ -39,4 +41,5 @@
</p>
</div>
</div>
{% include "main/includes/home_bottom.html" %}
{% endblock %}

View File

@ -0,0 +1 @@
<div id="home_bottom"></div>

View File

@ -0,0 +1 @@
<div id="home_middle"></div>

View File

@ -0,0 +1 @@
<div id="home_top"></div>

View File

@ -139,6 +139,7 @@ ROOT_URLCONF = 'nsupdate.urls'
WSGI_APPLICATION = 'nsupdate.wsgi.application'
TEMPLATE_DIRS = (
# you can add site-specific template dirs here to customize nsupdate.info
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.