Skip to content

Commit 5a02e0d

Browse files
committed
Actually use the date of the last build.
1 parent f5f9799 commit 5a02e0d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

readthedocs/core/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class NoProjectException(Exception):
3737
pass
3838

3939
def homepage(request):
40-
#latest = Project.objects.public(request.user).order_by('-modified_date')[:10]
4140
latest_builds = Build.objects.order_by('-date')[:100]
4241
latest = []
4342
for build in latest_builds:

readthedocs/templates/core/project_details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ <h3>{% trans "Tags" %}</h3>
101101
{% endif %}
102102

103103
<h3>{% trans "Last Built" %}</h3>
104-
<p>{{ project.modified_date|timesince }} ago</p>
104+
<p>{{ project.builds.all.0.date|timesince }} ago</p>
105105

106106
{% if project.project_url %}
107107
<h3>{% trans "Home Page" %}</h3>

readthedocs/templates/core/project_list_detailed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{% endif %}
2323
{% endif %}
2424
{% endwith %}
25-
<span class="right-menu quiet">{% blocktrans with date=project.modified_date|timesince %}{{ date }} ago{% endblocktrans %}</span>
25+
<span class="right-menu quiet">{% blocktrans with date=project.builds.all.0.date|timesince %}{{ date }} ago{% endblocktrans %}</span>
2626

2727
{% if project.has_good_build %}
2828
<span class="dropdown" style="position:absolute; right:0px; top:0px;">

0 commit comments

Comments
 (0)