Source

meblog / templates / admin / postlist.html

Full commit
{% extends 'admin/base.html' %}

{% block content %}
<div class="grid_12">
	<table>
		<thead>
			<tr>
				<th class="first">Action</th>
				<th>Title</th>
				<th class="last">Created</th>
			</tr>
		</thead>
		<tbody>
		{% if posts %}
			{% for p in posts %}
				<tr>
					<td><a href="{{ p.get_edit_url }}">Edit</a> | <a href="{{ p.get_delete_url }}">Remove</a></td>
					<td>{{ p.title }}</td>
					<td>{{ p.pub_date.year }}-{{ p.pub_date.month }}-{{ p.pub_date.day }}</td>
				</tr>
			{% endfor %}
		{% else %}
			No Post
		{% endif %}
		</tbody>
	</table>
</div>
{% endblock %}