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 http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0, maximum-scale=1.0" >
2015-04-28 17:55:35 +00:00
2015-12-04 16:56:01 +00:00
< title > OIDC Provider Example< / title >
2015-04-28 17:55:35 +00:00
2015-12-04 16:56:01 +00:00
< link rel = "stylesheet" type = "text/css" href = "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.6/semantic.min.css" >
2015-08-18 21:04:59 +00:00
< link rel = "stylesheet" type = "text/css" href = "{% static 'css/custom.css' %}" >
< / head >
2015-12-04 16:56:01 +00:00
< div class = "ui page grid fixed large blue inverted menu" >
< a href = "{% url 'home' %}" class = " item" > django-oidc-provider< / a >
2015-08-18 21:04:59 +00:00
< div class = "right menu" >
2015-04-28 17:55:35 +00:00
{% if user.is_authenticated %}
2015-12-04 16:56:01 +00:00
< a href = "#" class = "item" > {{ user.email }}< / a >
2015-08-18 21:04:59 +00:00
{% if user.is_superuser %}
< a href = "{% url 'admin:index' %}" class = "item" > Admin< / a >
{% endif %}
< a href = "{% url 'logout' %}" class = "item" > < i class = "remove icon" > < / i > < / a >
2015-04-28 17:55:35 +00:00
{% else %}
2015-08-18 21:04:59 +00:00
< a href = "{% url 'login' %}" class = "item" > Login< / a >
2015-04-28 17:55:35 +00:00
{% endif %}
2015-08-18 21:04:59 +00:00
< / div >
< / div >
2015-04-28 17:55:35 +00:00
2015-08-18 21:04:59 +00:00
{% block content %}{% endblock %}
2015-08-21 16:05:34 +00:00
< div class = "ui stackable page grid" >
< div class = "column" >
< div class = "ui right aligned secondary segment" >
2015-12-04 16:56:01 +00:00
View the project < a href = "https://github.com/juanifioren/django-oidc-provider" target = "_BLANK" > on Github< / a > . Example by < a href = "https://github.com/juanifioren" target = "_BLANK" > Juan Ignacio Fiorentino< / a > .
2015-08-21 16:05:34 +00:00
< / div >
< / div >
< / div >
2015-12-04 16:56:01 +00:00
< script src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js" > < / script >
< script src = "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.6/semantic.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 >