Skip to content

Commit 2ef9f4e

Browse files
committed
Rename get_latest_build -> latest_internal_build
Ref readthedocs/readthedocs.org#12400
1 parent 564506a commit 2ef9f4e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

readthedocsext/theme/templates/core/project_list_detailed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{% endwith %}
2424

2525
{% if project.has_good_build %}
26-
<span>{% blocktrans with date=project.get_latest_build.date|timesince %}{{ date }} ago{% endblocktrans %}</span>
26+
<span>{% blocktrans with date=project.latest_internal_build.date|timesince %}{{ date }} ago{% endblocktrans %}</span>
2727
{% else %}
2828
<span>{% trans "No builds" %}</span>
2929
{% endif %}

readthedocsext/theme/templates/projects/partials/project_list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{% block list_item_header %}
5353
<a href="{% url "projects_detail" object.slug %}">{{ object.name }}</a>
5454
<div class="sub header">
55-
{% with build=object.get_latest_build %}
55+
{% with build=object.latest_internal_build %}
5656
{% if build %}
5757
<time data-content="{{ build.date }}">
5858
{% if build.finished %}
@@ -78,7 +78,7 @@
7878
{% endblock list_item_meta %}
7979

8080
{% block list_item_extra_items %}
81-
{% with build=object.get_latest_build %}
81+
{% with build=object.latest_internal_build %}
8282
{% if build %}
8383
{% include "includes/elements/chips/build.html" with project=object build=build %}
8484
{% endif %}

0 commit comments

Comments
 (0)