Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More detail page cleanup

  • Loading branch information...
commit 341d30ee5d44b5b1506ea1ee0cce1ba8f98e0206 1 parent aef8a3b
@ericholscher ericholscher authored
Showing with 33 additions and 41 deletions.
  1. +33 −41 readthedocs/templates/core/project_details.html
View
74 readthedocs/templates/core/project_details.html
@@ -83,6 +83,33 @@
{% endif %}
<div class="project_details">
+
+ {% if project.repo %}
+ <h3>{% trans "Repository" %}</h3>
+ <p>{{ project.repo }}</p>
+ {% endif %}
+
+ {% if project.tags.count %}
+ <h3>{% trans "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">{% trans "No tags" %}</span>
+ {% endfor %}
+ </p>
+ {% endif %}
+
+ <h3>{% trans "Last Built" %}</h3>
+ <p>{{ project.modified_date|timesince }} ago</p>
+
+ {% if project.project_url %}
+ <h3>Home Page</h3>
@julen Collaborator
julen added a note

{% trans "Home Page" %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ <p>
+ <a href="{{ project.project_url }}" rel="nofollow,noindex">{{ project.project_url }}</a>
+ </p>
+ {% endif %}
+
<h3>{% trans "Project Privacy Level" %}</h3>
<div id="privacy_level">
<p>
@@ -117,53 +144,18 @@
</ul>
{% endif %}
- <h3>{% trans "Last Built" %}</h3>
- <p>{{ project.modified_date|timesince }} ago</p>
-
- {% if project.repo %}
- <h3>{% trans "Repository" %}</h3>
- <p>{{ project.repo }}</p>
- {% endif %}
-
- {% if project.project_url %}
- <h3>Home Page</h3>
- <p>
- <a href="{{ project.project_url }}" rel="nofollow,noindex">{{ project.project_url }}</a>
- </p>
- {% endif %}
-
- {% if project.tags.count %}
- <h3>{% trans "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">{% trans "No tags" %}</span>
- {% endfor %}
- </p>
- {% endif %}
-
- {% if project.get_latest_revisions.count %}
- <h3>{% trans "Latest Revisions" %}</h3>
- <ul>
- {% for revision in project.get_latest_revisions|slice:":5" %}
- <li>{% blocktrans with revision.created_date|timesince as timesince %}{{ revision }} {{ timesince }} ago{% endblocktrans %}</li>
- {% empty %}
- <li class="quiet">{% trans "No revisions" %}</li>
- {% endfor %}
- </ul>
- {% endif %}
-
-<h3>{% trans "Latest version" %}</h3>
-<p> {{ project.get_default_branch }}</p>
-
<h3>{% trans "Default Version" %}</h3>
<p> {{ project.get_default_version }}</p>
+<h3>{% trans "'latest' version" %}</h3>
+<p> {{ project.get_default_branch }}</p>
{% if request.user in project.users.all %}
<h3>{% trans "Post Commit Hook" %}</h3>
- <p>http://{{ PRODUCTION_DOMAIN }}{% url generic_build project.pk %}</p>
+ <p>
+ curl -X POST http://{{ PRODUCTION_DOMAIN }}{% url generic_build project.pk %}
+ </p>
+
{% endif %}
{% if pageview_list %}
Please sign in to comment.
Something went wrong with that request. Please try again.