{% load markup %}

{% if project.description %}
  <h3>Description</h3>
  <p>
    {{ project.description|restructuredtext }}
  </p>
{% endif %}

<h3>Short URL</h3>
<p><a href="http://{{ project.slug}}.readthedocs.org">{{ project.slug }}.readthedocs.org</a></p>


<h3>Last Built</h3>
<p>{{ project.modified_date|date:"N j, Y. P" }}</p>

{% if project.tags.count %}
<h3>Tags</h3>
<p>
  {% for tag in project.tags.all %}
    <a href="{% url projects_tag_detail tag.slug %}">{{ tag.name }}</a>{% if forloop.last %}{% else %}, {% endif %}
  {% empty %}
    <span class="quiet">No tags</span>
  {% endfor %}
</p>
{% endif %}

<h3>Latest Revisions</h3>
<ul>
  {% for revision in project.get_latest_revisions|slice:":5" %}
    <li>{{ revision }} {{ revision.created_date|timesince }} ago</li>
  {% empty %}
    <li class="quiet">No revisions</li>
  {% endfor %}
</ul>

{% if request.user == project.user %}
  <h3>Post Commit Hook</h3>
  <p>http://readthedocs.org{% url generic_build project.pk %}</p>
{% else %}
  {% include "projects/includes/flagging.html" %}
{% endif %}

{% load markup %}

{% if project.description %}
  <h3>Description</h3>
  <p>
    {{ project.description|restructuredtext }}
  </p>
{% endif %}

<h3>Short URLs</h3>
<p>
    <a href="http://{{ project.slug}}.readthedocs.org">{{ project.slug }}.readthedocs.org</a>
    <a href="http://{{ project.slug}}.rtfd.org">{{ project.slug }}.rtfd.org</a>
</p>


<h3>Last Built</h3>
<p>{{ project.modified_date|date:"N j, Y. P" }}</p>

{% if project.tags.count %}
<h3>Tags</h3>
<p>
  {% for tag in project.tags.all %}
    <a href="{% url projects_tag_detail tag.slug %}">{{ tag.name }}</a>{% if forloop.last %}{% else %}, {% endif %}
  {% empty %}
    <span class="quiet">No tags</span>
  {% endfor %}
</p>
{% endif %}

<h3>Latest Revisions</h3>
<ul>
  {% for revision in project.get_latest_revisions|slice:":5" %}
    <li>{{ revision }} {{ revision.created_date|timesince }} ago</li>
  {% empty %}
    <li class="quiet">No revisions</li>
  {% endfor %}
</ul>

{% if request.user == project.user %}
  <h3>Post Commit Hook</h3>
  <p>http://readthedocs.org{% url generic_build project.pk %}</p>
{% else %}
  {% include "projects/includes/flagging.html" %}
{% endif %}

Add more fun short url :)
Add more fun short url :)
