File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -385,6 +385,7 @@ def project_versions(request, project_slug):
385
385
version_filter = request .GET .get ('version_filter' , '' )
386
386
if version_filter :
387
387
inactive_versions = inactive_versions .filter (verbose_name__icontains = version_filter )
388
+ total_inactive_versions_count = inactive_versions .count ()
388
389
inactive_versions = inactive_versions [:max_inactive_versions ]
389
390
390
391
# If there's a wiped query string, check the string against the versions
@@ -406,6 +407,7 @@ def project_versions(request, project_slug):
406
407
'active_versions' : active_versions ,
407
408
'project' : project ,
408
409
'max_inactive_versions' : max_inactive_versions ,
410
+ 'total_inactive_versions_count' : total_inactive_versions_count ,
409
411
},
410
412
)
411
413
Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ <h1>{% trans "Activate a version" %}</h1>
83
83
</ div >
84
84
85
85
{# Version search #}
86
- < a name ="version-filter "> </ a >
87
86
< div class ="wide-search-bar ">
88
87
< div class ="wide-search-bar-wrapper clearfix ">
89
88
< form action =". " method ="GET ">
@@ -140,10 +139,10 @@ <h1>{% trans "Activate a version" %}</h1>
140
139
</ div >
141
140
</ div >
142
141
143
- {% if inactive_versions|length > = max_inactive_versions %}
142
+ {% if total_inactive_versions_count > max_inactive_versions %}
144
143
< p >
145
144
{% blocktrans trimmed %}
146
- Only the first {{ max_inactive_versions }} inactive versions were shown. Please < a href =" #version-filter " > filter the list </ a > .
145
+ Showing the first {{ max_inactive_versions }} of {{ total_inactive_versions_count }} inactive versions. </ a > .
147
146
{% endblocktrans %}
148
147
</ p >
149
148
{% endif %}
You can’t perform that action at this time.
0 commit comments