1
0
Fork 0
satnogs-network/network/templates/base.html

121 lines
4.9 KiB
HTML

{% load staticfiles i18n %}
{% load avatar_tags %}
{% load tags %}
<!DOCTYPE html>
<html lang="en" ng-app>
<head>
<meta charset="utf-8">
<title>SatNOGS - Network - {% block title %}{% endblock title %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{% static 'css/lib/bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'css/lib/bootstrap-theme.min.css' %}">
<link rel="stylesheet" href="{% static 'css/app.css' %}">
{% block css %}
{% endblock %}
<link rel="shortcut icon" href="{% static 'img/favicon.ico' %}">
</head>
<body>
{% block prenav-content %}{% endblock %}
<div class="container">
<nav class="navbar navbar-default" role="navigation" id="main-navbar">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{% url 'base:home' %}">
<img id="navbar-logo" src="{% static 'img/satnogs_net.png' %}" alt="SatNOGS net">
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="{% active request '^/$' %}"><a href="{% url 'base:home' %}">Home</a></li>
<li class="{% active request '^/observations/$' %}"><a href="{% url 'base:observations_list' %}">Observations</a></li>
<li class="{% active request '^/stations/$' %}"><a href="{% url 'base:stations_list' %}">Ground Stations</a></li>
<li class="{% active request '^/about/$' %}"><a href="{% url 'base:about' %}">About</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
{% if request.user.is_authenticated %}
<li class="dropdown">
<a href="#"
class="dropdown-toggle"
data-toggle="dropdown">{% avatar request.user 35 %} {{ request.user.username }}
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li><a href="{% url 'users:view_user' username=request.user.username %}">My Profile</a></li>
<li><a href="{% url 'account_logout' %}">Logout</a></li>
</ul>
</li>
{% else %}
<li><a href="{% url 'account_signup' %}">Sign Up</a></li>
<li><a href="{% url 'account_login' %}">Log In</a></li>
{% endif %}
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div>
<div class="container">
{% if messages %}
<div class="row messages">
<div class="col-md-12">
{% for notification in messages %}
<div class="alert alert-{{ notification.tags }}" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
{{ notification.message }}
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% block content %}{% endblock content %}
</div> <!-- /container -->
{% block modal %}{% endblock modal %}
<footer>
<div class="container">
<hr>
<div class="row">
<div class="col-md-6">
<span class="glyphicon glyphicon-copyright-mark" aria-hidden="true"></span> 2014<script>document.write("-"+new Date().getFullYear());</script>
<a href="http://librespacefoundation.org/" target="_blank">Libre Space Foundation</a>.<br>
<span class="glyphicon glyphicon-cloud" aria-hidden="true"></span>
Observation data are freely distributed under the
<a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">CC BY-SA</a> license.
</div>
<div class="col-md-6 text-right footer-options">
<a href="https://github.com/satnogs/satnogs-network">Contribute</a> |
<a href="#top">Back to top</a>
</div>
</div>
</div>
</footer>
<script src="{% static 'js/lib/jquery-1.11.2.min.js' %}"></script>
<script src="{% static 'js/lib/bootstrap.min.js' %}"></script>
{% block javascript %}
{% endblock javascript %}
<!-- Google Analytics -->
{{ analytics_code }}
</body>
</html>