django-oidc-provider/example_project/provider_app/templates/base.html

51 lines
2 KiB
HTML
Raw Normal View History

2015-08-18 21:04:59 +00:00
{% load i18n %}
{% load staticfiles %}
2015-04-28 17:55:35 +00:00
<!DOCTYPE html>
<html lang="en">
2015-08-18 21:04:59 +00:00
<head>
2015-04-28 17:55:35 +00:00
2015-08-18 21:04:59 +00:00
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
2015-04-28 17:55:35 +00:00
<title>OpenID Provider Example</title>
2015-04-28 17:55:35 +00:00
<link rel="stylesheet" href="http://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/css/materialize.min.css">
2015-08-18 21:04:59 +00:00
<link rel="stylesheet" type="text/css" href="{% static 'css/custom.css' %}">
</head>
2015-04-28 17:55:35 +00:00
<div class="navbar-fixed">
<nav class="white">
<div class="nav-wrapper">
<a href="{% url 'home' %}" class="brand-logo center black-text">OpenID Provider</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
{% if user.is_authenticated %}
{% if user.is_superuser %}
<li><a href="{% url 'admin:index' %}" class="black-text">{% trans 'Admin' %}</a></li>
{% endif %}
<li><a href="{% url 'logout' %}" class="black-text">X</a></li>
{% else %}
<li><a href="{% url 'login' %}" class="black-text"><i class="material-icons left">input</i> {% trans 'Login' %}</a></li>
{% endif %}
</ul>
</div>
</nav>
</div>
<div id="main-container" class="container">
2015-08-18 21:04:59 +00:00
{% block content %}{% endblock %}
</div>
2015-08-18 21:04:59 +00:00
<footer class="page-footer white">
<div class="footer-copyright">
<div class="container black-text"><a href="https://www.linkedin.com/in/juanifioren" target="_BLANK">Created by Juan Ignacio Fiorentino</a><a class="right" href="https://github.com/juanifioren/django-oidc-provider" target="_BLANK">View on Github</a></div>
2015-08-21 16:05:34 +00:00
</div>
</footer>
2015-08-21 16:05:34 +00:00
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/js/materialize.min.js"></script>
2015-04-28 17:55:35 +00:00
2015-08-18 21:04:59 +00:00
</body>
2015-04-28 17:55:35 +00:00
</html>