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

143 lines
5.9 KiB
HTML
Raw Normal View History

2015-07-22 05:16:15 -06:00
{% load staticfiles %}
2014-08-27 10:42:50 -06:00
{% load avatar_tags %}
2014-09-01 11:06:51 -06:00
{% load tags %}
2015-09-15 04:26:28 -06:00
{% load compress %}
2014-09-01 11:06:51 -06:00
2014-08-27 10:42:50 -06:00
<!DOCTYPE html>
<html lang="en">
2014-08-26 13:36:38 -06:00
<head>
<meta charset="utf-8">
<title>SatNOGS Network{% block title %}{% endblock title %}</title>
2014-08-26 13:36:38 -06:00
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2015-09-15 04:26:28 -06:00
{% compress css %}
<link rel="stylesheet" href="{% static 'lib/bootstrap/dist/css/bootstrap.min.css' %}">
<link rel="stylesheet" type="text/scss" href="{% static 'css/app.scss' %}">
2015-09-15 04:26:28 -06:00
{% block css %}
{% endblock %}
{% endcompress %}
2014-08-26 13:36:38 -06:00
2015-08-06 02:43:16 -06:00
<link rel="shortcut icon" href="{% static 'favicon.ico' %}">
2014-08-26 13:36:38 -06:00
</head>
<body {% block body-class %}{% endblock %}>
2015-05-10 04:31:10 -06:00
{{ stage_notice }}
2015-05-11 11:05:54 -06:00
{% block prenav-content %}{% endblock %}
2015-05-10 04:31:10 -06:00
2014-08-27 10:42:50 -06:00
<div class="container">
<nav class="navbar navbar-default navbar-main" role="navigation">
2014-08-27 10:42:50 -06:00
<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>
2014-12-19 06:06:58 -07:00
<a class="navbar-brand" href="{% url 'base:home' %}">
<img class="navbar-logo" src="{% static 'img/satnogs_net.png' %}" alt="SatNOGS net">
2014-09-01 11:06:51 -06:00
</a>
2014-08-27 10:42:50 -06:00
</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">
2015-07-11 15:37:51 -06:00
<li class="{% active request 'base:home' %}"><a href="{% url 'base:home' %}">Home</a></li>
2015-07-21 02:43:01 -06:00
<li class="{% active request 'base:about' %}"><a href="{% url 'base:about' %}">About</a></li>
2015-07-11 15:37:51 -06:00
<li class="{% active request 'base:observations_list' %}"><a href="{% url 'base:observations_list' %}">Observations</a></li>
<li class="{% active request 'base:stations_list' %}"><a href="{% url 'base:stations_list' %}">Ground Stations</a></li>
<li><a href="https://community.satnogs.org/" target="_blank" class="hidden-sm">Community</a></li>
2014-08-27 10:42:50 -06:00
</ul>
<ul class="nav navbar-nav navbar-right">
{% if request.user.is_authenticated %}
{% if owner_vetting_count %}
<li data-toggle="tooltip"
data-placement="bottom"
title="{{ owner_vetting_count }} observations need vetting">
<a href="{% url 'base:observations_list' %}?observer={{ request.user.id }}&future=0&good=0&bad=0&unvetted=1&failed=0">
<span class="glyphicon glyphicon-check" aria-hidden="true"></span>
<span class="badge badge-unvetted">{{ owner_vetting_count }}</span>
</a>
</li>
{% endif %}
2014-08-27 10:42:50 -06:00
<li class="dropdown">
2014-09-18 07:07:43 -06:00
<a href="#"
class="dropdown-toggle"
data-toggle="dropdown">
{% avatar request.user 35 %}
<span class="caret"></span>
2014-08-27 10:42:50 -06:00
</a>
<ul class="dropdown-menu" role="menu">
<li><a href="{% url 'users:view_user' username=request.user.username %}">Dashboard</a></li>
<li role="separator" class="divider"></li>
2015-07-22 05:16:15 -06:00
{% if request.user.is_superuser %}
<li><a href="{% url 'base:settings_site' %}">Site Settings</a></li>
{% endif %}
2015-01-26 10:38:13 -07:00
<li><a href="{% url 'account_logout' %}">Logout</a></li>
2014-08-27 10:42:50 -06:00
</ul>
</li>
{% else %}
{{ auth_block }}
2014-08-27 10:42:50 -06:00
{% endif %}
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
2014-08-26 13:36:38 -06:00
</div>
<div class="container">
2014-09-18 07:07:43 -06:00
2014-08-26 13:36:38 -06:00
{% if messages %}
2015-04-11 11:14:47 -06:00
<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|safe }}
2015-04-11 11:14:47 -06:00
</div>
{% endfor %}
</div>
</div>
2014-08-26 13:36:38 -06:00
{% endif %}
2014-08-27 10:42:50 -06:00
{% block content %}{% endblock content %}
2014-08-26 13:36:38 -06:00
</div> <!-- /container -->
2014-09-18 07:07:43 -06:00
2014-08-26 13:36:38 -06:00
{% block modal %}{% endblock modal %}
{% block footer %}
<footer>
<div class="container">
<hr>
<div class="row">
<div class="col-md-6">
<span class="glyphicon glyphicon-copyright-mark" aria-hidden="true"></span> 2014<span id="copy"></span>
<a href="https://libre.space/" 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://satnogs.org/" target="_blank">SatNOGS</a> |
<a href="#top">Back to top</a>
</div>
2015-05-06 02:52:49 -06:00
</div>
2015-04-11 11:14:47 -06:00
</div>
</footer>
{% endblock %}
2014-08-27 10:42:50 -06:00
2015-09-15 04:26:28 -06:00
{% compress js %}
<script src="{% static 'lib/jquery/dist/jquery.min.js' %}"></script>
<script src="{% static 'lib/bootstrap/dist/js/bootstrap.min.js' %}"></script>
2017-02-21 13:37:06 -07:00
<script src="{% static 'js/app.js' %}"></script>
2015-09-15 04:26:28 -06:00
{% block javascript %}
{% endblock javascript %}
2017-02-21 14:52:39 -07:00
{% endcompress %}
{{ analytics_code }}
2014-09-01 11:06:51 -06:00
</body>
2014-08-26 13:36:38 -06:00
</html>