Actually use the date of the last build.
parent
f5f9799fec
commit
5a02e0d432
|
@ -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:
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;">
|
||||
|
|
Loading…
Reference in New Issue