2017-10-08 20:21:51 +00:00
|
|
|
{% spaceless %}
|
2017-10-31 14:57:26 +00:00
|
|
|
{% load avatar_tags %}
|
2017-10-09 16:37:33 +00:00
|
|
|
{% load flatpages %}
|
2017-10-08 20:21:51 +00:00
|
|
|
{% load i18n %}
|
|
|
|
{% load leaflet_tags %}
|
|
|
|
{% load static %}
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<!-- Required meta tags -->
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>{% block page_title %}Ojuso{% endblock %}</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2017-10-31 14:57:26 +00:00
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"></script>
|
|
|
|
<!--{# <script src="{% static 'map/bundle.js'%}"></script> #}-->
|
2017-10-08 20:21:51 +00:00
|
|
|
|
|
|
|
{# Additional Stylesheets #}
|
|
|
|
{% block stylesheets %}
|
|
|
|
<style>
|
|
|
|
.navbar-brand {padding: 5px 15px;}
|
|
|
|
.navbar-brand > img {height: 40px;}
|
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
2017-10-31 14:57:26 +00:00
|
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
2017-10-08 20:21:51 +00:00
|
|
|
<a class="navbar-brand" href="{% url 'index' %}">
|
2017-10-31 14:57:26 +00:00
|
|
|
<img src="{% static 'map/images/ojuso-logo-black.png' %}" height="20px"/>
|
2017-10-08 20:21:51 +00:00
|
|
|
</a>
|
2017-10-31 14:57:26 +00:00
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
2017-10-08 20:21:51 +00:00
|
|
|
</button>
|
2017-10-31 14:57:26 +00:00
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
|
|
<ul class="navbar-nav mr-auto">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{% url 'index' %}">{% trans 'Map' %}<span class="sr-only">(current)</span></a>
|
|
|
|
</li>
|
|
|
|
{% get_flatpages as flatpages %}
|
|
|
|
{% for page in flatpages %}
|
|
|
|
<li class="nav-item"><a class="nav-link" href="{{page.url}}">{{page.title}}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
<ul class="navbar-nav my-2 my-lg-0">
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="btn btn-outline-info" href="{% url 'create' %}"><i class="fa fa-plus" aria-hidden="true"> New Case Study</i></a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a style="margin:-10px 0 -10px 0" class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
<img src="{% avatar_url user %}" class="rounded-circle" width="40" height="40" style="position:relative;margin-right:5px"/><span>{{user}}</span>
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu dropdown-menu-right" style="padding-bottom:0px" aria-labelledby="navbarDropdown">
|
|
|
|
<a class="dropdown-item" href="{% url 'avatar_change' %}"><i class="fa fa-cog" aria-hidden="true"></i> Change Avatar</a>
|
|
|
|
<a class="dropdown-item" href="{% url 'profile:detail' %}"><i class="fa fa-cog" aria-hidden="true"></i> Profile</a>
|
|
|
|
<div class="dropdown-divider" style="margin-bottom:0px"></div>
|
|
|
|
<a class="dropdown-item bg-danger" style="color:white;padding:0.5rem 1.5rem" href="{% url 'auth_logout' %}"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> {% trans 'Logout' %}</a>
|
|
|
|
</div>
|
2017-10-08 20:21:51 +00:00
|
|
|
</li>
|
2017-10-31 14:57:26 +00:00
|
|
|
|
|
|
|
{% else %}
|
|
|
|
<li class="nav-item"><a style="margin: 5px;" class="btn btn-outline-primary" href={% url 'auth_login' %}>{% trans 'Login' %}</a></li>
|
|
|
|
<li class="nav-item"><a style="margin: 5px;" class="btn btn-info" href={% url 'registration_register' %}>{% trans 'Register' %}</a></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2017-10-08 20:21:51 +00:00
|
|
|
</div>
|
2017-10-31 14:57:26 +00:00
|
|
|
</nav>
|
|
|
|
|
|
|
|
{% if messages %}
|
|
|
|
{% for message in messages %}
|
|
|
|
<div class="alert alert-{{ message.tags }} alert-dismissible fade show" role="alert">
|
|
|
|
{{ message }}
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2017-10-08 20:21:51 +00:00
|
|
|
|
2017-10-09 16:37:33 +00:00
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
2017-10-08 20:21:51 +00:00
|
|
|
</body>
|
|
|
|
|
|
|
|
{# CDN Javascript #}
|
2017-10-31 14:57:26 +00:00
|
|
|
<script src="//code.jquery.com/jquery-3.2.1.min.js" integrity="sha384-xBuQ/xzmlsLoJpyjoggmTEz8OWUFM0/RC5BsqQBDX2v5cMvDHcMakNTNrHIW2I5f" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
|
2017-10-08 20:21:51 +00:00
|
|
|
{% block scripts %}{% endblock %}
|
|
|
|
</html>
|
|
|
|
{% endspaceless %}
|