overview view: more clear wording, rearranged a bit

This commit is contained in:
Thomas Waldmann 2013-10-03 04:13:17 +02:00
parent 496d1d5c38
commit 94d6aad803

View File

@ -4,9 +4,9 @@
{% block content %} {% block content %}
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<h3>Host List</h3> <h3>Your Hosts</h3>
<table class="table"> <table class="table">
<tr><th>Domain</th><th>Last IP Update</th><th>IPv4 Address</th><th>IPv6 Address</th><th>Comment</th><th>Action</th></tr> <tr><th>Host</th><th>Last IP Update</th><th>IPv4 Address</th><th>IPv6 Address</th><th>Comment</th><th>Action</th></tr>
{% for host in hosts %} {% for host in hosts %}
<tr> <tr>
<td><a href="{% url 'host_view' host.pk %}"><b>{{ host.subdomain }}.{{ host.domain.domain }}</b></a></td> <td><a href="{% url 'host_view' host.pk %}"><b>{{ host.subdomain }}.{{ host.domain.domain }}</b></a></td>
@ -44,7 +44,7 @@
<div class="row"> <div class="row">
<div class="col-lg-4"> <div class="col-lg-4">
<div class="well well-sm"> <div class="well well-sm">
<h3>New Host</h3> <h3>Create a new Host</h3>
<form method="post" action=""> <form method="post" action="">
{% csrf_token %} {% csrf_token %}
{{ form|bootstrap }} {{ form|bootstrap }}
@ -54,10 +54,18 @@
</div> </div>
<div class="col-lg-8"> <div class="col-lg-8">
<div class="well well-sm"> <div class="well well-sm">
<h3>Information</h3> <h3>Your current IPs</h3>
<p>We try to get your IP addresses through a trick. We host two fake images on a IPv4 and IPv6 domain and we can associate those with your session. If we find an IP address, we will update this information accordingly. This allows us to get your IPv4 address even when you are using your IPv6 and vice versa.</p> <p><b>Your IPv4:</b> <span class="ipv4addr">{{ request.session.ipv4 }}</span></p>
<b>your IPv4:</b> <span class="ipv4addr">{{ request.session.ipv4 }}</span> <br> <p><b>Your IPv6:</b> <span class="ipv6addr">{{ request.session.ipv6 }}</span></p>
<b>your IPv6:</b> <span class="ipv6addr">{{ request.session.ipv6 }}</span> <p>Note: We try to get your IP addresses through a trick, by hosting two fake images:
<ol>
<li>on a IPv4-only server</li>
<li>on a IPv6-only server</li>
</ol>
That way we can detect your IPs when your browser tries to load the images and
associate them with your session.
If we detected an IP address, we will update this information accordingly.
</p>
</div> </div>
</div> </div>
</div> </div>