File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed
readthedocsext/theme/templates Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
- {% load i18n %}
1
+ {% load trans blocktrans from i18n %}
2
2
3
3
{% for project in project_list %}
4
4
< li class ="item ">
5
5
< a href ="{{ project.get_absolute_url }} "> {{ project.name }}</ a >
6
6
7
7
{% with project.users.all as users %}
8
8
{% if users|length > 1 %}
9
- ({% for user in project.users.all|slice:":3" %}
9
+ (
10
+ {% for user in project.users.all|slice:":3" %}
10
11
{% if omit and user.pk != omit.pk %}
11
12
< a href ="{{ user.get_absolute_url }} "> {{ user }}</ a >
12
13
{% endif %}
13
14
{% if not omit %}
14
15
< a href ="{{ user.get_absolute_url }} "> {{ user }}</ a >
15
16
{% endif %}
16
- {% endfor %})
17
+ {% endfor %}
18
+ )
17
19
{% else %}
18
- {% if omit and users.0.pk == omit.pk %}{% else %}{% with project.users.all.0 as user %}
19
- (< a href ="{{ user.get_absolute_url }} "> {{ user }}</ a > )
20
- {% endwith %}
20
+ {% if omit and users.0.pk == omit.pk %}
21
+ {% else %}
22
+ {% with project.users.all.0 as user %}
23
+ (< a href ="{{ user.get_absolute_url }} "> {{ user }}</ a > )
24
+ {% endwith %}
21
25
{% endif %}
22
26
{% endif %}
23
27
{% endwith %}
24
28
25
29
{% if project.has_good_build %}
26
- < span > {% blocktrans with date=project.get_latest_build .date|timesince %}{{ date }} ago{% endblocktrans %}</ span >
30
+ < span > {% blocktrans with date=project.latest_internal_build .date|timesince %}{{ date }} ago{% endblocktrans %}</ span >
27
31
{% else %}
28
32
< span > {% trans "No builds" %}</ span >
29
33
{% endif %}
37
41
{% endif %}
38
42
</ li >
39
43
</ ul >
40
-
41
-
42
44
</ li >
43
45
{% empty %}
44
46
< li class ="item "> {% trans "No projects found" %}</ li >
Original file line number Diff line number Diff line change 52
52
{% block list_item_header %}
53
53
< a href ="{% url "projects_detail " object.slug %}"> {{ object.name }}</ a >
54
54
< div class ="sub header ">
55
- {% with build=object.get_latest_build %}
55
+ {% with build=object.latest_internal_build %}
56
56
{% if build %}
57
57
< time data-content ="{{ build.date }} ">
58
58
{% if build.finished %}
78
78
{% endblock list_item_meta %}
79
79
80
80
{% block list_item_extra_items %}
81
- {% with build=object.get_latest_build %}
81
+ {% with build=object.latest_internal_build %}
82
82
{% if build %}
83
83
{% include "includes/elements/chips/build.html" with project=object build=build %}
84
84
{% endif %}
You can’t perform that action at this time.
0 commit comments