Add internal post search to Dynastie

This commit is contained in:
Gregory Soutade
2014-03-18 20:30:17 +01:00
parent f7a3e3f9c9
commit 814fd6c667
5 changed files with 44 additions and 0 deletions

View File

@@ -15,6 +15,10 @@
<br/><br/>
<a href="/post/add/{{ blog.id }}">Add a post</a> <a href="/generate/{{ blog.id }}">Generate blog</a> <a href="/search/generate/{{ blog.id }}">Generate search index</a>
<br/><br/>
<form action="/blog/search/{{ blog.id }}" method="post">
{% csrf_token %}
<input name="text"/><input type="submit" name="search" value="Search" />
</form>
{% if posts|length == 0 %}
<br/><br/>
<b>Any post available</b><br/><br/>