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>
|
2018-03-27 04:30:56 +00:00
|
|
|
<html>
|
|
|
|
<meta charset="utf-8">
|
2018-10-13 00:00:55 +00:00
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Sans">
|
|
|
|
<link rel="stylesheet" href="{% static 'map/bootstrap/css/bootstrap.min.css' %}">
|
|
|
|
<link rel="stylesheet" href="{% static 'css/ojuso.css' %}">
|
|
|
|
<link rel="stylesheet" href="{% static 'map/bootstrap/css/bootstrap-theme.min.css' %}">
|
|
|
|
<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">
|
2018-03-27 04:30:56 +00:00
|
|
|
|
|
|
|
<title>{% block page_title %}Ojuso{% endblock %}</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
|
|
|
|
{# Additional Stylesheets #}
|
2018-10-13 00:08:06 +00:00
|
|
|
{% block stylesheets %}{% endblock %}
|
2018-04-19 19:52:40 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<nav class="navbar navbar-default">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
|
|
|
<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 'index' %}">
|
2018-10-13 00:25:14 +00:00
|
|
|
<img src="{% static 'img/navicon.png' %}" height="40">
|
2018-04-19 19:52:40 +00:00
|
|
|
</a>
|
2017-10-08 20:21:51 +00:00
|
|
|
</div>
|
2018-04-19 19:52:40 +00:00
|
|
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<li><a href="{% url 'index' %}">{% trans 'Map' %}</a></li>
|
2018-05-23 17:49:23 +00:00
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">About <span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
{% get_flatpages '/about/' as about_pages %}
|
|
|
|
{% for page in about_pages %}
|
|
|
|
<li><a class="nav-link" href="{{page.url}}">{{page.title}}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
2018-04-19 19:52:40 +00:00
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
2018-05-19 17:52:19 +00:00
|
|
|
<li class="form-group">
|
|
|
|
<form class="navbar-form navbar-left">
|
|
|
|
{# Global language selection dropdown #}
|
|
|
|
{% get_available_languages as LANGUAGES %}
|
|
|
|
{% get_current_language as LANGUAGE_CODE %}
|
|
|
|
<select id="id-language-dropdown" name="language-dropdown">
|
|
|
|
{% for language in LANGUAGES %}
|
|
|
|
{% if language.0 == LANGUAGE_CODE %}
|
|
|
|
<option value="{{ language.0 }}" selected="selected">{{ language.0|language_name_local|title }}</option>
|
|
|
|
{% else %}
|
|
|
|
<option value="{{ language.0 }}">{{ language.0|language_name_local|title }}</option>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</form>
|
|
|
|
</li>
|
2018-04-19 19:52:40 +00:00
|
|
|
{% if user.is_authenticated %}
|
2018-10-12 23:51:59 +00:00
|
|
|
|
|
|
|
<a class="btn btn-primary navbar-btn" href="{% url 'create' %}">
|
|
|
|
<i class="fa fa-plus" aria-hidden="true"></i> Contribute
|
|
|
|
</a>
|
|
|
|
|
2018-04-19 19:52:40 +00:00
|
|
|
<li class="dropdown">
|
|
|
|
<a style="margin:-10px 0 -10px 0" class="dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
<img src="{% avatar_url user %}" class="img-circle" width="40" height="40" style="position:relative;margin-right:5px"/><span>{{user}}</span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu dropdown-menu-right" style="padding-bottom:0px" aria-labelledby="navbarDropdown">
|
|
|
|
<li><a href="{% url 'avatar_change' %}"><i class="fa fa-cog" aria-hidden="true"></i> Change Avatar</a></li>
|
|
|
|
<li><a href="{% url 'profile:detail' %}"><i class="fa fa-cog" aria-hidden="true"></i> Profile</a></li>
|
|
|
|
<li role="separator" style="margin-bottom:0px"></li>
|
|
|
|
<li><a class="dropdown-item no-hover" style="background-color:red;color:white;padding:0.5rem 1.5rem" href="{% url 'auth_logout' %}"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> {% trans 'Logout' %}</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2017-10-31 14:57:26 +00:00
|
|
|
|
2018-04-19 19:52:40 +00:00
|
|
|
{% else %}
|
|
|
|
<a style="margin: 5px;" class="btn btn-primary navbar-btn" href="{% url 'auth_login' %}">{% trans 'Login' %}</a></li>
|
|
|
|
<a style="margin: 5px;" class="btn btn-info navbar-btn" href="{% url 'registration_register' %}">{% trans 'Register' %}</a></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2018-04-14 11:46:01 +00:00
|
|
|
</div>
|
2018-04-19 19:52:40 +00:00
|
|
|
</div>
|
|
|
|
</nav>
|
2018-04-14 11:46:01 +00:00
|
|
|
|
2018-04-19 19:52:40 +00:00
|
|
|
{% if messages %}
|
|
|
|
{% for message in messages %}
|
|
|
|
<div class="alert alert-{{ message.tags }} alert-dismissible" role="alert">
|
|
|
|
{{ message }}
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2018-04-14 11:46:01 +00:00
|
|
|
|
2018-04-19 19:52:40 +00:00
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block footer %}
|
|
|
|
<footer class="footer">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2018-10-13 00:08:06 +00:00
|
|
|
<ul class="footer-list">
|
|
|
|
<li><a class="footer-list-item" href="{% url 'index' %}">Map of all case studies</a>
|
2018-05-23 17:55:57 +00:00
|
|
|
{% get_flatpages '/about/' as all_pages %}
|
|
|
|
{% for page in all_pages %}
|
2018-10-13 00:08:06 +00:00
|
|
|
<li><a class="footer-list-item" href="{{ page.url }}">{{ page.title }}</a></li>
|
2018-05-23 17:55:57 +00:00
|
|
|
{% endfor %}
|
2018-10-13 00:08:06 +00:00
|
|
|
<li class="footer-list-item--spacer">© Ojuso 2018
|
2018-04-19 19:52:40 +00:00
|
|
|
</ul>
|
2018-04-14 11:46:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-19 19:52:40 +00:00
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
{% endblock %}
|
2017-10-08 20:21:51 +00:00
|
|
|
|
2018-04-19 19:52:40 +00:00
|
|
|
{# CDN Javascript #}
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js" integrity="sha256-JmvOoLtYsmqlsWxa7mDSLMwa6dZ9rrIdtrrVYRnDRH0=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
2018-05-19 17:52:19 +00:00
|
|
|
<script src="{% static "map/language.js" %}"></script>
|
2018-04-19 19:52:40 +00:00
|
|
|
{% block scripts %}{% endblock %}
|
2018-03-27 04:30:56 +00:00
|
|
|
|
2017-10-08 20:21:51 +00:00
|
|
|
</html>
|
|
|
|
{% endspaceless %}
|