Skip to content
Myr

Addressed issue #1134

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jeffrey D · committed by Jeffrey D · parent f6618c7 · Browse files · 11 files+52 added−52 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

11 files+52 added−52 removed

  • other:+52 added−52 removed

11 files+52 added−52 removed

modified:examples/blueprintexample/simple_page/templates/pages/layout.html+1 added-1 removed
modified:examples/flaskr/templates/layout.html+4 added-4 removed
modified:examples/flaskr/templates/login.html+5 added-5 removed
modified:examples/flaskr/templates/show_entries.html+5 added-5 removed
modified:examples/jqueryexample/templates/index.html+5 added-5 removed
modified:examples/jqueryexample/templates/layout.html+2 added-2 removed
modified:examples/minitwit/templates/layout.html+6 added-6 removed
modified:examples/minitwit/templates/login.html+5 added-5 removed
modified:examples/minitwit/templates/register.html+7 added-7 removed
1{% extends "layout.html" %}2{% block title %}Sign Up{% endblock %}3{% block body %}4 <h2>Sign Up</h2>5 {% if error %}<div class=error><strong>Error:</strong> {{ error }}</div>{% endif %}6 <form action="" method=post>5 {% if error %}<div class="error"><strong>Error:</strong> {{ error }}</div>{% endif %}6 <form action="" method="post">7 <dl>8 <dt>Username:9 <dd><input type=text name=username size=30 value="{{ request.form.username }}">9 <dd><input type="text" name="username" size="30" value="{{ request.form.username }}">10 <dt>E-Mail:11 <dd><input type=text name=email size=30 value="{{ request.form.email }}">11 <dd><input type="text" name="email" size="30" value="{{ request.form.email }}">12 <dt>Password:13 <dd><input type=password name=password size=30>13 <dd><input type="password" name="password" size="30">14 <dt>Password <small>(repeat)</small>:15 <dd><input type=password name=password2 size=30>15 <dd><input type="password" name="password2" size="30">16 </dl>17 <div class=actions><input type=submit value="Sign Up"></div>17 <div class="actions"><input type="submit" value="Sign Up"></div>18 </form>19{% endblock %}
modified:examples/minitwit/templates/timeline.html+8 added-8 removed
10 unmodified lines
11{% block body %}12 <h2>{{ self.title() }}</h2>13 {% if g.user %}14 {% if request.endpoint == 'user_timeline' %}15 <div class=followstatus>15 <div class="followstatus">16 {% if g.user.user_id == profile_user.user_id %}17 This is you!18 {% elif followed %}19 You are currently following this user.20 <a class=unfollow href="{{ url_for('unfollow_user', username=profile_user.username)20 <a class="unfollow" href="{{ url_for('unfollow_user', username=profile_user.username)21 }}">Unfollow user</a>.22 {% else %}23 You are not yet following this user.24 <a class=follow href="{{ url_for('follow_user', username=profile_user.username)24 <a class="follow" href="{{ url_for('follow_user', username=profile_user.username)25 }}">Follow user</a>.26 {% endif %}27 </div>28 {% elif request.endpoint == 'timeline' %}29 <div class=twitbox>29 <div class="twitbox">30 <h3>What's on your mind {{ g.user.username }}?</h3>31 <form action="{{ url_for('add_message') }}" method=post>32 <p><input type=text name=text size=60><!--33 --><input type=submit value="Share">31 <form action="{{ url_for('add_message') }}" method="post">32 <p><input type="text" name="text" size="60"><!--33 --><input type="submit" value="Share">34 </form>35 </div>36 {% endif %}37 {% endif %}38 <ul class=messages>38 <ul class="messages">39 {% for message in messages %}40 <li><img src="{{ message.email|gravatar(size=48) }}"><p>41 <strong><a href="{{ url_for('user_timeline', username=message.username)42 }}">{{ message.username }}</a></strong>
7 unmodified lines
modified:examples/persona/templates/layout.html+4 added-4 removed
10 unmodified lines
11 javascript support knows about the current user */12 var $CURRENT_USER = {{ g.user|tojson }};13</script>14<script src="{{ url_for('static', filename='persona.js') }}"></script>15<link rel=stylesheet href="{{ url_for('static', filename='style.css') }}">15<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">16<header>17 <h1>Mozilla Persona Example</h1>18 <div class=authbar>18 <div class="authbar">19 {% if g.user %}20 Signed in as <em>{{ g.user }}</em>21 (<a href="#" class=signout>Sign out</a>)21 (<a href="#" class="signout">Sign out</a>)22 {% else %}23 Not signed in. <a href="#" class=signin>Sign in</a>23 Not signed in. <a href="#" class="signin">Sign in</a>24 {% endif %}25 </div>26</header>27{% block body %}{% endblock %}