{% extends "main.html" %}
{% block title %}Blog Posts{% endblock %}
{% block unittestphrase %}blog_posts_list_page{% endblock %}
{% block head %}
{{ super() }}
<style type="text/css">
</style>
{% endblock %}

{% block content %}
<div class="panel">
    <div class="content">
		{% if current_user.is_authenticated %}<a href="/blog/new">Create New Post</a>{% endif %}
    	<h2>Posts</h2>
	    <ul>
	    {% for post in posts %}
			{% if current_user.is_authenticated %}
				<li>
					<a href=/blog/edit/{{post.id}}>Edit</a>
					{% if post.state == 1 %}[Draft]{% endif %}
					<a href=/blog/post/{{post.url}}>{{post.title}}</a>
				</li>
			{% else %}
				{% if post.state == 2 %}
				<li><a href=/blog/post/{{post.url}}>{{post.title}}</a></li>
				{% endif %}
			{% endif %}
	    {% endfor %}
	    </ul>
		<h2>Tags</h2>
		<div>{% for tag in tags %}<a href="/blog/tag/{{tag}}">{{tag}}</a> {% endfor %}</div>
    </div>
</div>
{% endblock %}

{% extends "main.html" %}
{% block title %}Blog Posts{% endblock %}
{% block unittestphrase %}blog_posts_list_page{% endblock %}
{% block head %}
{{ super() }}
<style type="text/css">
</style>
{% endblock %}

{% block content %}
<div class="panel">
    <div class="content">
		{% if current_user.is_authenticated %}
		<a href="/blog/new">Create New Post</a>
		<a href="/blog/edit_tags">Edit Tags</a>
		{% endif %}
    	<h2>Posts</h2>
	    <ul>
	    {% for post in posts %}
			{% if current_user.is_authenticated %}
				<li>
					<a href=/blog/edit/{{post.id}}>Edit</a>
					{% if post.state == 1 %}[Draft]{% endif %}
					<a href=/blog/post/{{post.url}}>{{post.title}}</a>
				</li>
			{% else %}
				{% if post.state == 2 %}
				<li><a href=/blog/post/{{post.url}}>{{post.title}}</a></li>
				{% endif %}
			{% endif %}
	    {% endfor %}
	    </ul>
		<h2>Tags</h2>
		<div>{% for tag in tags %}<a href="/blog/tag/{{tag}}">{{tag}}</a> {% endfor %}</div>
    </div>
</div>
{% endblock %}

Edit Tags link in blog post listing
Edit Tags link in blog post listing
