Restructured everything.
This commit is contained in:
33
apps/base/templates/base/base.html
Normal file
33
apps/base/templates/base/base.html
Normal 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>
|
||||
27
apps/base/templates/base/root.html
Normal file
27
apps/base/templates/base/root.html
Normal 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 }};"> #{{ color_hex }} </span>
|
||||
{% endwith %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock page-body %}
|
||||
1
apps/base/templates/signum.html
Normal file
1
apps/base/templates/signum.html
Normal file
@@ -0,0 +1 @@
|
||||
<a href="mailto:heinzel@heinzelwelt.de">heinzel@heinzelwelt.de</a>
|
||||
Reference in New Issue
Block a user