add some intro texts

This commit is contained in:
Nico Schottelius 2020-12-04 22:17:47 +01:00
parent 8925e939a7
commit 5b733a6172
4 changed files with 80 additions and 70 deletions

View File

@ -151,8 +151,10 @@ AUTH_USER_MODEL = 'ipv6ula.User'
CRISPY_TEMPLATE_PACK = 'bootstrap4'
LOGIN_REDIRECT_URL = '/'
LOGOUT_URL="/logout"
# Overwrite in local settings
try:
from ipv6ula.local_settings import *

View File

@ -10,64 +10,33 @@
<link rel="stylesheet" href="{% static '/bootstrap/css/bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static '/css/sticky-footer-navbar.css' %}">
<title>The IPv6 ULA registry</title>
<title>The IPv6 ULA registry by ungleich.ch</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="/">{{ site_name }}</a>
<a class="navbar-brand" href="/">The IPv6 ULA registry</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<div class="collapse navbar-collapse"
id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
{% if page_obj.has_previous %}
<li class="nav-item">
<a class="nav-link" href="?page=1">first</a>
</li>
<li class="nav-item">
<a class="nav-link" href="?page={{ page_obj.previous_page_number }}">previous</a>
</li>
{% else %}
<li class="nav-item">
<a class="nav-link disabled" href="#">first</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">previous</a>
</li>
{% endif %}
<li class="nav-item"> <a class="nav-link" href="/submit">Submit prefix</a></li>
<li class="nav-item active">
<a class="nav-link" href="#">{{ page_obj.number }} / {{ page_obj.paginator.num_pages }}</a>
</li>
{% if page_obj.has_next %}
<li class="nav-item">
<a class="nav-link" href="?page={{ page_obj.next_page_number }}">next</a>
</li>
<li class="nav-item">
<a class="nav-link" href="?page={{ page_obj.paginator.num_pages }}">last</a>
</li>
{% else %}
<li class="nav-item">
<a class="nav-link disabled" href="#">next</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">last</a>
</li>
{% endif %}
<li class="nav-item">
<a class="nav-link" href="/submit">submit</a>
</li>
</ul>
{% if user.is_authenticated %}
<span class="navbar-text">Logged in as {{ user }}.</span>
<ul class="navbar-nav mr-auto">
<span class="navbar-text">Logged in as {{ user }}.</span>
<li class="nav-item">
<a class="nav-link" href="/logout">Logout</a>
</li>
{% else %}
<li class="nav-item">
<a class="nav-link" href="/login">Login</a>
</li>
</ul>
{% endif %}
</div>
</nav>
@ -77,7 +46,7 @@
<footer class="footer">
<div class="container">
<span class="text-muted">Powered by
<a href="http://ungleich.ch/u/projects/ipv6ula">ipv6ula</a>,
<a href="http://ungleich.ch/u/projects/ipv6ula/">ipv6ula</a>,
a FOSS project created by <a href="https://ungleich.ch">ungleich</a>.</span>
</div>
</footer>

View File

@ -3,12 +3,24 @@
{% block content %}
<div class="container">
<div class="row">
<div class="col">
<form method="post">
{% csrf_token %}
{{ form|crispy }}
<input type="submit" value="Submit">
</form>
All ULA prefixes are /48 networks. Simply add the first IP address
(without any netmask, for instance fd23:2323:2323::).
You can choose the name of your liking and an optional
organization name.
</div>
<div class="col">
<form method="post">
{% csrf_token %}
{{ form|crispy }}
<input type="submit" value="Submit">
</form>
</div>
</div>
</div>
{% endblock %}

View File

@ -1,27 +1,54 @@
{% extends 'ipv6ula/base.html' %}
{% block content %}
<div class="container">
<table class="table">
<thead>
<tr>
<th>Prefix</th>
<th>Name</th>
<th>Organization</th>
<th>URL</th>
</tr>
</thead>
<tbody>
{% for ula in object_list %}
<tr>
<td>{{ ula.prefix }}</td>
<td>{{ ula.name }}</td>
<td>{{ ula.organization }}</td>
<td><a href="{{ ula.website }}">{{ ula.website }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="row">
<p>
This is the new IPv6 ULA registry. It is inspired by the original
<a href="https://www.sixxs.net/tools/grh/ula/list/">ULA registry
from sixxs</a> and (will contain!) contains all of the prefixes
that were in the sixxs database.
</p>
<p>
While is is debatable whether or not there should be a ULA
registry at all, we at ungleich frequently were asked to provide a
ULA registry for those who don't have the resources to use global
unique addresses, but still want to indicate that a network is
used.
</p>
<p>
At <a href="https://ungleich.ch">ungleich</a>
we neither endorse nor condemn the use of ULA. Our objective is
to enable everyone everywhere with IPv6. In this regard we
hope that this ULA registry is enabling some additional people
to migrate to IPv6.
</p>
</div>
<div class="row">
<table class="table table-striped">
<thead>
<tr>
<th>Prefix</th>
<th>Name</th>
<th>Organization</th>
<th>URL</th>
</tr>
</thead>
<tbody>
{% for ula in object_list %}
<tr>
<td>{{ ula.prefix }}</td>
<td>{{ ula.name }}</td>
<td>{{ ula.organization }}</td>
<td><a href="{{ ula.website }}">{{ ula.website }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}