File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ class NoProjectException(Exception):
37
37
pass
38
38
39
39
def homepage (request ):
40
- #latest = Project.objects.public(request.user).order_by('-modified_date')[:10]
41
40
latest_builds = Build .objects .order_by ('-date' )[:100 ]
42
41
latest = []
43
42
for build in latest_builds :
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ <h3>{% trans "Tags" %}</h3>
101
101
{% endif %}
102
102
103
103
< h3 > {% trans "Last Built" %}</ h3 >
104
- < p > {{ project.modified_date |timesince }} ago</ p >
104
+ < p > {{ project.builds.all.0.date |timesince }} ago</ p >
105
105
106
106
{% if project.project_url %}
107
107
< h3 > {% trans "Home Page" %}</ h3 >
Original file line number Diff line number Diff line change 22
22
{% endif %}
23
23
{% endif %}
24
24
{% 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 >
26
26
27
27
{% if project.has_good_build %}
28
28
< span class ="dropdown " style ="position:absolute; right:0px; top:0px; ">
You can’t perform that action at this time.
0 commit comments