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

127 lines
4.9 KiB
HTML
Raw Normal View History

2014-08-27 10:42:50 -06:00
{% load staticfiles i18n %}
{% load avatar_tags %}
2014-09-01 11:06:51 -06:00
{% load tags %}
2014-08-27 10:42:50 -06:00
<!DOCTYPE html>
2014-08-26 13:36:38 -06:00
<html lang="en" ng-app>
<head>
<meta charset="utf-8">
2014-09-01 11:06:51 -06:00
<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">
<meta name="description" content="">
<meta name="author" content="">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Latest compiled and minified CSS -->
2014-08-27 10:42:50 -06:00
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
2014-08-26 13:36:38 -06:00
<!-- Optional theme -->
2014-08-27 10:42:50 -06:00
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
2014-08-26 13:36:38 -06:00
<!-- Your stuff: Third-party css libraries go here -->
<!-- This file store project specific CSS -->
<link href="{% static 'css/project.css' %}" rel="stylesheet">
2014-09-01 11:06:51 -06:00
{% block css %}
2014-08-26 13:36:38 -06:00
{% endblock %}
2014-09-01 11:06:51 -06:00
<link rel="shortcut icon" href="{% static 'images/favicon.ico' %}">
2014-08-26 13:36:38 -06:00
</head>
<body>
2014-09-01 11:06:51 -06:00
{% block prenav-content %}{% endblock %}
2014-08-27 10:42:50 -06:00
<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>
2014-12-19 06:06:58 -07:00
<a class="navbar-brand" href="{% url 'base:home' %}">
2014-09-01 11:06:51 -06:00
<img id="navbar-logo" src="{% static 'images/satnogs_net.png' %}" alt="SatNOGS net">
</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">
2014-12-19 06:06:58 -07:00
<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>
2014-08-27 10:42:50 -06:00
</ul>
<ul class="nav navbar-nav navbar-right">
{% if request.user.is_authenticated %}
<li class="dropdown">
2014-09-18 07:07:43 -06:00
<a href="#"
class="dropdown-toggle"
data-toggle="dropdown">{% avatar request.user 35 %} {{ request.user.username }}
2014-08-27 10:42:50 -06:00
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
2014-12-19 06:06:58 -07:00
<li><a href="{% url 'users:view_user' username=request.user.username %}">My Profile</a></li>
2014-08-27 10:42:50 -06:00
<li><a href="{% url 'account_logout' %}">{% trans "Logout" %}</a></li>
</ul>
</li>
{% else %}
<li><a href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a></li>
<li><a href="{% url 'account_login' %}">{% trans "Log In" %}</a></li>
{% 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 %}
{% for message in messages %}
<div class="alert {% if message.tags %}alert-{{ message.tags }}"{% endif %}>{{ message }}</div>
{% endfor %}
{% 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 %}
2014-08-27 10:42:50 -06:00
<footer>
<div class="container">
<hr>
<p class="pull-right">
<a href="https://github.com/satnogs/satnogs-network">Contribute</a> |
<a href="#">Back to top</a>
</p>
<p>&copy; 2014 SatNOGS Team &middot;</p>
</div>
</footer>
2014-08-26 13:36:38 -06:00
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
2014-09-01 11:06:51 -06:00
<!-- Latest JQuery -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
2014-08-26 13:36:38 -06:00
2014-09-01 11:06:51 -06:00
<!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
2014-08-26 13:36:38 -06:00
2014-09-01 11:06:51 -06:00
<!-- Your stuff: Third-party javascript libraries go here -->
2014-08-26 13:36:38 -06:00
2014-09-01 11:06:51 -06:00
<!-- place project specific Javascript in this file -->
<script src="{% static 'js/project.js' %}"></script>
{% block javascript %}
2014-08-26 13:36:38 -06:00
{% endblock javascript %}
2014-09-01 11:06:51 -06:00
</body>
2014-08-26 13:36:38 -06:00
</html>