django-loupe / loupe / templates / loupe / project_detail.html

{% extends "site_base.html" %}
{% load comments %}

{% block extranav %} &bull; Project: <a href="{% url project_detail project.slug %}">{{ project }}</a>{% endblock %}

{% block content %}
    <h2>Project {{ project.title }}</h2>
    <p>{{ cork.description }}</p>
    
    <div class="cork-item">
    <h3>Corkboards for this project</h3>
    <ul>
        {% for cork in corkboards %}
        {% get_comment_count for cork as comment_count %}
        <li>{% if user.is_authenticated and user.is_staff %}
        <form action="{% url corkboard_destroy cork.id %}" method="POST">
            <input type="image" src="{{ MEDIA_URL }}images/delete.png" align="right" />
        </form>
        {% endif %}<a href="{% url corkboard_detail cork.slug %}">{{ cork.title }}</a> {{ comment_count }} <img src="{{ MEDIA_URL }}images/comment.png" align="absmiddle" /></li>
        {% endfor %}
    </ul>
    </div>

    {% if user.is_authenticated %}
    <h2>Add New Corkboard</h2>
    <p>A corkboard is a place to group images for review by client or project team.<br />
    Example: a home page corkboard will store all screenshots of the home page design revisions.</p>
    <form action="" method="POST">
        <table>
            {{ form.as_table }}
            <tr>
                <td>
                    <input type="submit" name="submit" value="Create" />
                </td>
            </tr>
        </table>
    </form>
    {% endif %}
{% endblock %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.