Skip to content

Instantly share code, notes, and snippets.

@willemarcel
Last active February 2, 2016 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willemarcel/13469c1756b4bdb8136f to your computer and use it in GitHub Desktop.
Save willemarcel/13469c1756b4bdb8136f to your computer and use it in GitHub Desktop.
Imagery - suggested base.html
{% load staticfiles %}
{% load i18n %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{% block title %}PROJECT NAME{% endblock title %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- This file store project specific CSS -->
<link href="{% static 'css/project.css' %}" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css">
{% block extra_css %}{% endblock extra_css %}
</head>
<body>
<div class="navbar navbar-inverse">
<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>
{% comment %}
<a class="navbar-brand navbar-brand-img" href="{% url 'imagery:index' %}">
<img width="30" height="30" src="">
</a>
{% endcomment %}
<a class="navbar-brand" href="{% url 'imagery:index' %}">PROJECT NAME</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="{% url 'imagery:index' %}">{% trans 'Landsat Catalog' %}</a></li>
{% if request.user.is_authenticated %}
<li><a href="{% url 'imagery:request-scene' %}"><span class="glyphicon glyphicon-circle-arrow-down"></span> {% trans 'Request Scene' %}</a></li>
<li><a href="{% url 'imagery:user-scene-request' %}"><span class="glyphicon glyphicon-list"></span> {% trans 'My Requests' %}</a></li>
{% endif %}
</ul>
<!-- You can use the package https://github.com/ibamacsr/loginlogout to have views and templates that handle login and logout
{% include 'loginlogout/login_menu.html' %}
-->
</div><!--/.nav-collapse -->
</div>
</div>
<div class="container">
{% block page_title %}{% endblock page_title %}
{% block content %}
{% endblock content %}
</div> <!-- /container -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min.js"></script>
<!-- place project specific Javascript in this file -->
{% block extra_js %}{% endblock extra_js %}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment