Restructured everything.

This commit is contained in:
2019-10-08 14:50:10 +02:00
parent 5336de4959
commit 587c2849b6
46 changed files with 102 additions and 328 deletions

View File

@@ -0,0 +1,33 @@
<!DOCTYPE html>
{% load static %}
<html lang="{{ LANGUAGE_CODE|default:'de' }}">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link type="text/css" href="{% static 'base/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet" />
<link type="text/css" href="{% static 'base/css/local.css' %}" rel="stylesheet" />
<script type="text/javascript" src="{% static 'base/js/jquery.min.js' %}"></script>
<script type="text/javascript" src="{% static 'base/bootstrap/js/bootstrap.min.js' %}"></script>
<title>django-test</title>
</head>
<body>
<div id="page">
<div id="page-header">
<h1>
<a href="{% url 'root' %}">django-test</a>
</h1>
</div>
<div id="page-body">
{% block page-body %}{% endblock %}
</div>
<div id="page-footer">
<div class="signum">{% block signum %}{% include 'signum.html' %}{% endblock %}</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,27 @@
{% extends "base/base.html" %}
{% block page-body %}
<div class="container">
<div class="jumbotron">
<h1>Hello,</h1>
<p>
my name is {{ hostname|capfirst }} and I am your server right now.
</p>
<p>
Did I say now?<br />
My clock says {{ time|time:'TIME_FORMAT'|default:'nothing' }},
{% if time %}
and we are talking about the {{ time|time:'e' }} timezone.
{% else %}
and this is no good.
{% endif %}
</p>
<p>
{% with color_hex=color_hex|default:'47825b' %}
By the way, this is my favorite color:
<span class="badge" style="background-color: #{{ color_hex }};">&nbsp; #{{ color_hex }} &nbsp;</span>
{% endwith %}
</p>
</div>
</div>
{% endblock page-body %}

View File

@@ -0,0 +1 @@
<a href="mailto:heinzel@heinzelwelt.de">heinzel@heinzelwelt.de</a>