We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4cbf3b8 + 6dd5f8f commit cdd292aCopy full SHA for cdd292a
templates/components/tables/pull_requests_list.html
@@ -31,14 +31,16 @@
31
<tr>
32
<th scope="row">{{ pr.num }}</th>
33
<td class="col-3">
34
- <a href="{{ pr.html_url }}">{{ pr.info.title }}</a>
+ {% with "Pull request #"|add:pr.id as default_value %}
35
+ <a href="{{ pr.html_url }}">{{ pr.info.title|default:default_value }}</a>
36
+ {% endwith %}
37
</td>
38
<td class="col-3">{{ pr.repository.full_name }}</td>
39
<td class="col-2">
40
<a href="{% url 'contributors:contributor_details' pr.contributor.login %}">{{ pr.contributor.login }}</a>
41
42
<td class="col-2">{{ pr.created_at|date:"d.m.Y" }}</td>
- <td class="col">{{ pr.info.state|capfirst }}</td>
43
+ <td class="col">{{ pr.info.state|default:"open"|capfirst }}</td>
44
</tr>
45
{% empty %}
46
0 commit comments