Merge pull request #1138 from LiterallyElvis/master
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Quoted all HTML attributes.
authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parents f6618c7, 3c48bf8 · 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
Provenance
- Commit
1d55b89- Tree
65d5d07- Author
Daniel Neuhäuser <ich@danielneuhaeuser.de>- Committer
Daniel Neuhäuser <ich@danielneuhaeuser.de>- Parent 1
f6618c7- Parent 2
3c48bf8
11 files changed+52 added−52 removed
modified:examples/blueprintexample/simple_page/templates/pages/layout.html+1 added-1 removed
1233456713 unmodified lines<!doctype html><title>Simple Page Blueprint</title><div class=page><div class="page"> <h1>This is blueprint example</h1> <p> A simple page blueprint is registered under / and /pages you can access it using this urls:13 unmodified linesmodified:examples/flaskr/templates/layout.html+4 added-4 removed
123434566789101112131414151617<!doctype html><title>Flaskr</title><link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}"><div class=page><link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}"><div class="page"> <h1>Flaskr</h1> <div class=metanav> <div class="metanav"> {% if not session.logged_in %} <a href="{{ url_for('login') }}">log in</a> {% else %} <a href="{{ url_for('logout') }}">log out</a> {% endif %} </div> {% for message in get_flashed_messages() %} <div class=flash>{{ message }}</div> <div class="flash">{{ message }}</div> {% endfor %} {% block body %}{% endblock %}</div>modified:examples/flaskr/templates/login.html+5 added-5 removed
12345456788910111011121314{% extends "layout.html" %}{% block body %} <h2>Login</h2> {% if error %}<p class=error><strong>Error:</strong> {{ error }}{% endif %} <form action="{{ url_for('login') }}" method=post> {% if error %}<p class="error"><strong>Error:</strong> {{ error }}{% endif %} <form action="{{ url_for('login') }}" method="post"> <dl> <dt>Username: <dd><input type=text name=username> <dd><input type="text" name="username"> <dt>Password: <dd><input type=password name=password> <dd><input type=submit value=Login> <dd><input type="password" name="password"> <dd><input type="submit" value="Login"> </dl> </form>{% endblock %}modified:examples/flaskr/templates/show_entries.html+5 added-5 removed
12344567789109101112131414151617183 unmodified lines{% extends "layout.html" %}{% block body %} {% if session.logged_in %} <form action="{{ url_for('add_entry') }}" method=post class=add-entry> <form action="{{ url_for('add_entry') }}" method="post" class="add-entry"> <dl> <dt>Title: <dd><input type=text size=30 name=title> <dd><input type="text" size="30" name="title"> <dt>Text: <dd><textarea name=text rows=5 cols=40></textarea> <dd><input type=submit value=Share> <dd><textarea name="text" rows="5" cols="40"></textarea> <dd><input type="submit" value="Share"> </dl> </form> {% endif %} <ul class=entries> <ul class="entries"> {% for entry in entries %} <li><h2>{{ entry.title }}</h2>{{ entry.text|safe }} {% else %} <li><em>Unbelievable. No entries here so far</em>3 unmodified linesmodified:examples/jqueryexample/templates/index.html+5 added-5 removed
1233456717 unmodified lines25262728293031322930313233{% extends "layout.html" %}{% block body %}<script type=text/javascript><script type="text/javascript"> $(function() { var submit_form = function(e) { $.getJSON($SCRIPT_ROOT + '/_add_numbers', { a: $('input[name="a"]').val(),17 unmodified lines });</script><h1>jQuery Example</h1><p> <input type=text size=5 name=a> + <input type=text size=5 name=b> = <span id=result>?</span><p><a href=# id=calculate>calculate server side</a> <input type="text" size="5" name="a"> + <input type="text" size="5" name="b"> = <span id="result">?</span><p><a href=# id="calculate">calculate server side</a>{% endblock %}modified:examples/jqueryexample/templates/layout.html+2 added-2 removed
1233455678<!doctype html><title>jQuery Example</title><script type=text/javascript<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script><script type=text/javascript><script type="text/javascript"> var $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};</script>{% block body %}{% endblock %}modified:examples/minitwit/templates/layout.html+6 added-6 removed
123434566789104 unmodified lines151617181919202122232425262627282929303132<!doctype html><title>{% block title %}Welcome{% endblock %} | MiniTwit</title><link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}"><div class=page><link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}"><div class="page"> <h1>MiniTwit</h1> <div class=navigation> <div class="navigation"> {% if g.user %} <a href="{{ url_for('timeline') }}">my timeline</a> | <a href="{{ url_for('public_timeline') }}">public timeline</a> | <a href="{{ url_for('logout') }}">sign out [{{ g.user.username }}]</a>4 unmodified lines {% endif %} </div> {% with flashes = get_flashed_messages() %} {% if flashes %} <ul class=flashes> <ul class="flashes"> {% for message in flashes %} <li>{{ message }} {% endfor %} </ul> {% endif %} {% endwith %} <div class=body> <div class="body"> {% block body %}{% endblock %} </div> <div class=footer> <div class="footer"> MiniTwit — A Flask Application </div></div>modified:examples/minitwit/templates/login.html+5 added-5 removed
123456567899101111121313141516{% extends "layout.html" %}{% block title %}Sign In{% endblock %}{% block body %} <h2>Sign In</h2> {% if error %}<div class=error><strong>Error:</strong> {{ error }}</div>{% endif %} <form action="" method=post> {% if error %}<div class="error"><strong>Error:</strong> {{ error }}</div>{% endif %} <form action="" method="post"> <dl> <dt>Username: <dd><input type=text name=username size=30 value="{{ request.form.username }}"> <dd><input type="text" name="username" size="30" value="{{ request.form.username }}"> <dt>Password: <dd><input type=password name=password size=30> <dd><input type="password" name="password" size="30"> </dl> <div class=actions><input type=submit value="Sign In"></div> <div class="actions"><input type="submit" value="Sign In"></div> </form>{% endblock %}
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 lines11 {% 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 linesmodified:examples/persona/templates/layout.html+4 added-4 removed
10 unmodified lines11 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 %}