116 lines
5.7 KiB
HTML
Raw Normal View History

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">
<title>{% block title %}nsupdate.info{% endblock %}</title>
<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' %}" />
<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-09-29 02:44:09 +02:00
<a class="navbar-brand" href="{% url 'home' %}"><span style="color: #00ba00"></span> nsupdate.info</a>
2013-09-28 11:39:57 +02:00
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
2013-09-28 12:06:26 +02:00
<li{% if nav_home %} class="active"{% endif %}><a href="{% url 'home' %}">Home</a></li>
<li{% if nav_overview %} class="active"{% endif %}><a href="{% url 'overview' %}">Overview</a></li>
2013-09-28 16:46:33 +02:00
</ul>
<ul class="nav navbar-nav pull-right">
{% if not request.user.is_authenticated %}
<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>
{% if request.user.is_staff %}
<li><a href="/admin/">Admin</a></li>
{% endif %}
2013-09-28 16:46:33 +02:00
<li><a href="{% url 'auth_logout' %}">Logout</a></li>
</ul>
</li>
{% endif %}
2013-09-28 11:39:57 +02:00
</ul>
</div>
</div>
</div>
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">
{% if messages %}
{% for message in messages %}
<div class="alert alert-{{ message.tags }}">
<button type="button" class="close" data-dismiss="alert">&times;</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 %}
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">
Sourcecode available at <a href="https://github.com/asmaps/nsupdate.info">GitHub</a>
-
developed by <a href="https://github.com/asmaps/">Arne Schauf</a>,
2013-09-28 23:13:36 +02:00
<a href="https://github.com/Samuirai/">Fabian Faessler</a>,
<a href="https://github.com/ThomasWaldmann/">Thomas Waldmann</a>
during the <a href="http://djangodash.com/teams/c4/nsupdateinfo/">Django Dash 2013</a>.
2013-09-28 23:13:36 +02:00
</p>
</div>
</div>
2013-09-29 00:28:31 +02:00
<div style="display: none">
<img src="//{{ WWW_IPV4_HOST }}/detectip/{{ request.session.session_key }}/" />
<img src="//{{ WWW_IPV6_HOST }}/detectip/{{ request.session.session_key }}/" />
2013-09-29 00:28:31 +02:00
</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 03:13:04 +02:00
{% if ENABLE_PIWIK_PRODUCTION %}
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.nsupdate.info"]);
_paq.push(["setDomains", ["*.nsupdate.info"]]);
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.thelabmill.de/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "11"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
{% endif %}
2013-09-28 11:39:57 +02:00
</body>
</html>