flask/examples/persona/templates/layout.html

28 lines
1,019 B
HTML
Raw Normal View History

2013-06-09 01:30:15 +01:00
<!doctype html>
2013-06-09 01:39:51 +01:00
<title>{% block title %}{% endblock %} | Flask Persona Example</title>
2013-06-09 01:30:15 +01:00
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<script src="{{ config.PERSONA_JS }}"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script>
/* the url root is useful for doing HTTP requests */
var $URL_ROOT = {{ request.url_root|tojson }};
/* we store the current user here so that the persona
javascript support knows about the current user */
var $CURRENT_USER = {{ g.user|tojson }};
</script>
<script src="{{ url_for('static', filename='persona.js') }}"></script>
2014-07-29 20:42:28 -05:00
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
2013-06-09 01:30:15 +01:00
<header>
<h1>Mozilla Persona Example</h1>
2014-07-29 20:42:28 -05:00
<div class="authbar">
2013-06-09 01:30:15 +01:00
{% if g.user %}
Signed in as <em>{{ g.user }}</em>
2014-07-29 20:42:28 -05:00
(<a href="#" class="signout">Sign out</a>)
2013-06-09 01:30:15 +01:00
{% else %}
2014-07-29 20:42:28 -05:00
Not signed in. <a href="#" class="signin">Sign in</a>
2013-06-09 01:30:15 +01:00
{% endif %}
</div>
</header>
{% block body %}{% endblock %}