2013-09-28 11:39:57 +02:00
|
|
|
{% load static from staticfiles %}
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta name="description" content="">
|
|
|
|
<meta name="author" content="nsupdate.info team">
|
|
|
|
|
2013-10-07 20:06:41 +02:00
|
|
|
<title>{% block title %}{{ WWW_HOST }}{% endblock %}</title>
|
2013-09-28 11:39:57 +02:00
|
|
|
|
|
|
|
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
|
2013-09-28 22:56:59 +02:00
|
|
|
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
|
2013-09-28 11:39:57 +02:00
|
|
|
<link href="{% static 'css/nsupdate.css' %}" rel="stylesheet">
|
2013-09-28 15:34:24 +02:00
|
|
|
<link rel="icon" type="image/png" href="{% static 'favicon.png' %}" />
|
2013-09-28 13:56:54 +02:00
|
|
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
2013-09-28 11:39:57 +02:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="navbar navbar-inverse navbar-fixed-top">
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2013-10-07 20:06:41 +02:00
|
|
|
<a class="navbar-brand" href="{% url 'home' %}"><span style="color: #00ba00">⬥</span> {{ WWW_HOST }}</a>
|
2013-09-28 11:39:57 +02:00
|
|
|
</div>
|
|
|
|
<div class="collapse navbar-collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
2013-09-29 17:06:39 +02:00
|
|
|
<li{% if nav_home %} class="active"{% endif %}>
|
|
|
|
<a href="{% url 'home' %}">Home</a>
|
|
|
|
</li>
|
2013-10-18 15:55:37 -07:00
|
|
|
{% if request.user.is_authenticated %}
|
2013-09-29 17:06:39 +02:00
|
|
|
<li{% if nav_overview %} class="active"{% endif %}>
|
|
|
|
<a href="{% url 'overview' %}">Overview</a>
|
|
|
|
</li>
|
2013-10-18 15:55:37 -07:00
|
|
|
{% endif %}
|
2013-09-29 17:06:39 +02:00
|
|
|
<li{% if nav_about %} class="active"{% endif %}>
|
|
|
|
<a href="{% url 'about' %}">About</a>
|
|
|
|
</li>
|
2013-09-29 17:12:32 +02:00
|
|
|
<li{% if nav_help %} class="active"{% endif %}>
|
|
|
|
<a href="{% url 'help' %}">Help</a>
|
|
|
|
</li>
|
2013-09-28 16:46:33 +02:00
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav pull-right">
|
|
|
|
{% if not request.user.is_authenticated %}
|
2013-09-29 16:39:03 +02:00
|
|
|
<li{% if nav_register %} class="active"{% endif %}><a href="{% url 'registration_register' %}">Register</a></li>
|
2013-09-28 16:46:33 +02:00
|
|
|
<li{% if nav_login %} class="active"{% endif %}><a href="{% url 'auth_login' %}">Login</a></li>
|
|
|
|
{% else %}
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ request.user.username }} <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="{% url 'account_profile' %}">Profile</a></li>
|
|
|
|
<li><a href="{% url 'password_change' %}">Change password</a></li>
|
2013-10-18 15:30:17 -07:00
|
|
|
<li><a href="{% url 'domain_overview' %}">Own Domains</a></li>
|
2013-09-29 14:08:22 +02:00
|
|
|
{% if request.user.is_staff %}
|
|
|
|
<li><a href="/admin/">Admin</a></li>
|
|
|
|
{% endif %}
|
2013-11-01 00:25:03 +01:00
|
|
|
<li><a href="{% url 'auth_logout' %}?next={% url 'auth_login' %}">Logout</a></li>
|
2013-09-28 16:46:33 +02:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2013-09-28 11:39:57 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-09-30 01:12:05 +02:00
|
|
|
{% block header %}{% endblock %}
|
2013-09-28 23:13:36 +02:00
|
|
|
<div class="container content wrap">
|
2013-09-29 00:28:31 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div id="message_box">
|
2013-11-02 01:09:24 +01:00
|
|
|
{% if not request.is_secure %}
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
|
|
|
Your connection is unsecure, please use our <a href="https://{{ WWW_HOST }}/">secure https site</a>.
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2013-09-29 00:28:31 +02:00
|
|
|
{% if messages %}
|
|
|
|
{% for message in messages %}
|
|
|
|
<div class="alert alert-{{ message.tags }}">
|
|
|
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
|
|
|
{{ message }}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-09-28 23:03:34 +02:00
|
|
|
</div>
|
2013-09-28 11:39:57 +02:00
|
|
|
{% block content %}
|
2013-09-29 14:08:22 +02:00
|
|
|
Here goes the content.
|
2013-09-28 11:39:57 +02:00
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
|
2013-09-28 23:13:36 +02:00
|
|
|
<div class="footer">
|
|
|
|
<div class="container">
|
|
|
|
<p class="text-muted credit">
|
2013-10-03 03:09:09 +02:00
|
|
|
<a href="{% url 'legal' %}">Legal notice</a>
|
2013-10-03 22:43:44 +02:00
|
|
|
|
|
2013-10-17 23:11:15 -07:00
|
|
|
<a href="http://validator.w3.org/check/referer">Valid HTML</a>
|
2013-10-03 22:43:44 +02:00
|
|
|
|
|
|
|
|
<a href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS</a>
|
2013-09-28 23:13:36 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-09-28 11:39:57 +02:00
|
|
|
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
|
2013-09-29 21:20:07 +02:00
|
|
|
<div style="display: none">
|
2013-11-01 04:03:34 +01:00
|
|
|
{% if not request.session.ipv4 %}
|
|
|
|
<img id="v4_img" alt="fake image used for ip v4 address detection" />
|
2013-11-01 06:03:36 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
function insert_src_v4() {
|
|
|
|
$('#v4_img').attr('src', "//{{ WWW_IPV4_HOST }}/detectip/{{ request.session.session_key }}/");
|
|
|
|
};
|
|
|
|
$(setTimeout("insert_src_v4()", 1000));
|
|
|
|
function insert_ip_v4() {
|
|
|
|
$.getJSON("{% url 'ajax_get_ips' %}")
|
|
|
|
.done(function(data) {
|
|
|
|
$('#ipv4').text(data['ipv4']);
|
|
|
|
});
|
|
|
|
};
|
|
|
|
$(setTimeout("insert_ip_v4()", 2000));
|
|
|
|
</script>
|
2013-11-01 04:03:34 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if not request.session.ipv6 %}
|
|
|
|
<img id="v6_img" alt="fake image used for ip v6 address detection" />
|
|
|
|
<script type="text/javascript">
|
2013-11-01 06:03:36 +01:00
|
|
|
function insert_src_v6() {
|
2013-11-01 04:03:34 +01:00
|
|
|
$('#v6_img').attr('src', "//{{ WWW_IPV6_HOST }}/detectip/{{ request.session.session_key }}/");
|
|
|
|
};
|
2013-11-01 06:03:36 +01:00
|
|
|
$(setTimeout("insert_src_v6()", 1000));
|
|
|
|
function insert_ip_v6() {
|
|
|
|
$.getJSON("{% url 'ajax_get_ips' %}")
|
|
|
|
.done(function(data) {
|
|
|
|
$('#ipv6').text(data['ipv6']);
|
|
|
|
});
|
|
|
|
};
|
|
|
|
$(setTimeout("insert_ip_v6()", 2000));
|
2013-11-01 04:03:34 +01:00
|
|
|
</script>
|
|
|
|
{% endif %}
|
2013-09-29 21:20:07 +02:00
|
|
|
</div>
|
2013-09-28 11:39:57 +02:00
|
|
|
</body>
|
|
|
|
</html>
|