54 lines
1.6 KiB
HTML
54 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Simple Dynamic DNS Service</title>
|
|
|
|
<!-- Bootstrap -->
|
|
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
|
|
<style>
|
|
.col-centered { float: none; margin: 0px auto; }
|
|
hr { border-color: #cccccc; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
{% block body %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-8 col-md-7 col-lg-6 col-centered">
|
|
<h1><a href="/">{% block title %}Simple Dynamic DNS Service{% endblock %}</a></h1>
|
|
<hr>
|
|
{% block flash_messages %}
|
|
{%- with messages = get_flashed_messages(with_categories=true) -%}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
{% if category=='error' %}
|
|
{% set category='danger' %}
|
|
{% endif %}
|
|
<div class="alert alert-{{category}}">{{ message|safe }}</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{%- endwith %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% endblock %}
|
|
<hr>
|
|
{% block footer %}
|
|
Your IP: {{ request.remote_addr }}<br>
|
|
Have fun!
|
|
{% endblock %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
|
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
|
|
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
|
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
|
|
</body>
|
|
</html> |