Actually use the date of the last build.

refactor-builder
Eric Holscher 2014-07-31 16:14:27 -07:00
parent f5f9799fec
commit 5a02e0d432
3 changed files with 2 additions and 3 deletions

View File

@ -37,7 +37,6 @@ class NoProjectException(Exception):
pass
def homepage(request):
#latest = Project.objects.public(request.user).order_by('-modified_date')[:10]
latest_builds = Build.objects.order_by('-date')[:100]
latest = []
for build in latest_builds:

View File

@ -101,7 +101,7 @@
{% endif %}
<h3>{% trans "Last Built" %}</h3>
<p>{{ project.modified_date|timesince }} ago</p>
<p>{{ project.builds.all.0.date|timesince }} ago</p>
{% if project.project_url %}
<h3>{% trans "Home Page" %}</h3>

View File

@ -22,7 +22,7 @@
{% endif %}
{% endif %}
{% endwith %}
<span class="right-menu quiet">{% blocktrans with date=project.modified_date|timesince %}{{ date }} ago{% endblocktrans %}</span>
<span class="right-menu quiet">{% blocktrans with date=project.builds.all.0.date|timesince %}{{ date }} ago{% endblocktrans %}</span>
{% if project.has_good_build %}
<span class="dropdown" style="position:absolute; right:0px; top:0px;">