~linuxgoose/bocpress

a72c4771fa8b0612594b4b98382b3e2605399074 — Jordan Robinson 2 months ago 4f52258
add tags to draft posts list
1 files changed, 9 insertions(+), 0 deletions(-)

M main/templates/main/blog_posts.html
M main/templates/main/blog_posts.html => main/templates/main/blog_posts.html +9 -0
@@ 52,6 52,15 @@
            {% for d in drafts %}
            <li>
                <a href="{% url 'post_detail' d.slug %}">{{ d.title }}</a>
                {% if d.tag_list and request.blog_user.show_tags_in_post_list %}
                <small>
                    — <b>Tags</b>:
                    {% for tag in d.tag_list %}
                        <a href="{% url 'post_list' %}?tags={{ tag }}" class="tag">{{ tag }}</a>
                        {% if not forloop.last %}, {% endif %}
                    {% endfor %}
                </small>
            {% endif %}
            </li>
            {% endfor %}
        </ul>