forked from orbit-oss/flask
i noticed that <li> tag haven't closed in lines 15,18 which is bad practice as if i put "some thing : <h1> some text </h1>" in the text-area all the other articles become <h1> so big and color blue
21 lines
631 B
HTML
21 lines
631 B
HTML
{% extends "layout.html" %}
|
|
{% block body %}
|
|
{% if session.logged_in %}
|
|
<form action="{{ url_for('add_entry') }}" method="post" class="add-entry">
|
|
<dl>
|
|
<dt>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">
|
|
</dl>
|
|
</form>
|
|
{% endif %}
|
|
<ul class="entries">
|
|
{% for entry in entries %}
|
|
<li><h2>{{ entry.title }}</h2>{{ entry.text|safe }}</li>
|
|
{% else %}
|
|
<li><em>Unbelievable. No entries here so far</em></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endblock %}
|