Add Draft support
This commit is contained in:
@@ -19,10 +19,20 @@
|
||||
{% csrf_token %}
|
||||
<input name="text"/><input type="submit" name="search" value="Search" />
|
||||
</form>
|
||||
{% if drafts|length != 0 %}
|
||||
<b>Drafts</b>
|
||||
<table>
|
||||
{% for draft in drafts %}
|
||||
<tr><td><a href="/draft/edit/{{ draft.id }}">{{ draft.id }}</a></td><td>{{ draft.title }}</td><td>{{ draft.creation_date }}</td><td>{{ draft.modification_date }}</td><td><a href="/draft/delete/{{ draft.id }}" onclick="return confirm('Do you really want to delete this item ?')">Delete</a></td></tr>
|
||||
{% endfor %}
|
||||
</table><br/>
|
||||
{% endif %}
|
||||
|
||||
{% if posts|length == 0 %}
|
||||
<br/><br/>
|
||||
<b>Any post available</b><br/><br/>
|
||||
{% else %}
|
||||
<b>Posts</b>
|
||||
<table>
|
||||
{% for post in posts %}
|
||||
{% with post.id as cur_id %}
|
||||
|
Reference in New Issue
Block a user