{% extends "base.html" %}

{% block content %}
<!-- List the projects -->
{% if projects %}
    <h2 style='float: left'>Projects</h2>
    {% if user.is_authenticated %}
    <ul class='project-info'>
        <li>
            <a href="{% url dashboard.views.projects.add %}">
                Add a Project
            </a>
        </li>
    </ul>
    {% endif %}
    <div id="projects-list">
        {% for project in projects %}
        <div class="project" id="project-{{ project.id }}">
            <h3><a href="{% url dashboard.views.projects.show project.id %}">
                {{ project.title }}
            </a></h3>
            <ul>
            {% if project.website %}
                <li><a href="{{ project.website }}">Website</a></li>
            {% endif %}
            {% if project.blog.url %}
                <li><a href="{{ project.blog.url }}">Blog</a></li>
            {% endif %}
            {% if project.repository.url %}
                <li><a href="{{ project.repository.url }}">
                    Repository
                </a></li>
            {% endif %}
            {% if user in project.authors.all %}
                <li>
                <a href="{% url dashboard.views.projects.modify project.id %}">
                    Modify
                </a>
                </li>
            {% endif %}
            </ul>
        </div>
        {% endfor %}
    </div>
{% else %}
    <h2>No projects found.</h2>
{% endif %}
{% endblock %}
{% extends "base.html" %}

{% block content %}
<!-- List the projects -->
{% if projects %}
    <h2 style='float: left'>Projects</h2>
    {% if user.is_authenticated %}
    <ul class='project-info'>
        <li>
            <a href="{% url dashboard.views.projects.add %}">
                Add a Project
            </a>
        </li>
    </ul>
    {% endif %}
    <div id="projects-list">
        {% for project in projects %}
        <div class="project" id="project-{{ project.id }}">
            <h3><a href="{% url dashboard.views.projects.show project.id %}">
                {{ project.title }}
            </a></h3>
            <ul>
            {% if project.website %}
                <li><a href="{{ project.website }}">Website</a></li>
            {% endif %}
            {% if project.blog.url %}
                <li><a href="{{ project.blog.url }}">Blog</a></li>
            {% endif %}
            {% if project.repository.url %}
                <li><a href="{{ project.repository.url }}">
                    Repository
                </a></li>
            {% endif %}
            {% if user in project.authors.all %}
                <li>
                <a href="{% url dashboard.views.projects.modify project.id %}">
                    Modify
                </a>
                </li>
            {% endif %}
            </ul>
        </div>
        {% endfor %}
    </div>
{% else %}
    <h2 style="float:left">No projects found.</h2>
    {% if user.is_authenticated %}
    <ul class='project-info'>
        <li>
            <a href="{% url dashboard.views.projects.add %}">
                Add a Project
            </a>
        </li>
    </ul>
    {% endif %}
    <div style="clear:both"></div>
{% endif %}
{% endblock %}
Fix add project link not being displayed if there are no projects.
Fix add project link not being displayed if there
are no projects.