aboutsummaryrefslogtreecommitdiff
path: root/templates/layout.html
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2011-12-05 22:38:43 -0500
committerArmin Ronacher <armin.ronacher@active-4.com>2011-12-05 22:38:43 -0500
commit803d20968fea1e25a298aa3b4e670d5670995e0d (patch)
tree2f90c6b8403e85576d0109a672dccb46598ce115 /templates/layout.html
downloadstackbin-803d20968fea1e25a298aa3b4e670d5670995e0d.tar.gz
stackbin-803d20968fea1e25a298aa3b4e670d5670995e0d.tar.bz2
stackbin-803d20968fea1e25a298aa3b4e670d5670995e0d.zip
Added as example app
Diffstat (limited to 'templates/layout.html')
-rw-r--r--templates/layout.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/layout.html b/templates/layout.html
new file mode 100644
index 0000000..206f750
--- /dev/null
+++ b/templates/layout.html
@@ -0,0 +1,28 @@
+<!doctype html>
+<title>{% block title %}{% endblock %} | Flask Pastebin</title>
+<link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}">
+<script type=text/javascript src="{{ config.JUGGERNAUT_DRIVER }}"></script>
+<script type=text/javascript src="{{ url_for('static', filename='jquery.js') }}"></script>
+<script type=text/javascript src="{{ url_for('static', filename='pastebin.js') }}"></script>
+<script type=text/javascript>
+ pastebin.urlRoot = {{ request.url_root|tojson|safe }};
+{%- if g.user %}
+ pastebin.subscribeUser({{ g.user.id }});
+{%- endif %}
+</script>
+<div class=page>
+ <h1>Flask Pastebin</h1>
+ <ul class=nav>
+ <li><a href="{{ url_for('new_paste') }}">New Paste</a>
+ {% if g.user %}
+ <li><a href="{{ url_for('my_pastes') }}">My Pastes</a>
+ <li><a href="{{ url_for('logout') }}">Sign out ({{ g.user.display_name }})</a>
+ {% else %}
+ <li><a href="{{ url_for('login') }}">Sign in with Facebook</a>
+ {% endif %}
+ </ul>
+ {% for message in get_flashed_messages() %}
+ <p class=flash>{{ message }}
+ {% endfor %}
+ {% block body %}{% endblock %}
+</div>
bgstack15