Merge branch 'today-in-history' into collapsable-posts
This commit is contained in:
commit
28493a4649
5 changed files with 10 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
|||
<form method="post">
|
||||
<label for="title">Title</label>
|
||||
<input name="title" id="title" value="{{ request.form['title'] }}" required>
|
||||
<label for="body">Body</label>
|
||||
<label for="body">Body (Markdown supported)</label>
|
||||
<textarea name="body" id="body">{{ request.form['body'] }}</textarea>
|
||||
<input type="submit" value="Save">
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
<button class="toggle-content" onclick="toggleContent(this)">Expand</button>
|
||||
</header>
|
||||
<p class="body" style="display: none;">{{ post['body'] }}</p>
|
||||
<p class="body" style="display: none;">{{ post['body']|safe }}</p>
|
||||
</article>
|
||||
{% if not loop.last %}
|
||||
<hr>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
<form method="post">
|
||||
<label for="title">Title</label>
|
||||
<input name="title" id="title" value="{{ request.form['title'] or post['title'] }}" required>
|
||||
<label for="body">Body</label>
|
||||
<label for="body">Body (Markdown supported)</label>
|
||||
<textarea name="body" id="body">{{ request.form['body'] or post['body'] }}</textarea>
|
||||
<input type="submit" value="Save">
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue