Skip to content

Commit bb56d2b

Browse files
versions: display only active versions
* closes https://github.com/zenodo/rdm-project/issues/515
1 parent 4da79be commit bb56d2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/semantic-ui/zenodo_rdm/macros/record_item.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@
8989
</p>
9090

9191
{# Versions info desktop/tablet #}
92-
{% if record.versions.index > 1 %}
93-
{% set num_versions = record.versions.index %}
92+
{% if record.versions.versions_count > 1 %}
93+
{% set num_versions = record.versions.versions_count %}
9494
{% set text_content = _("more versions exist for this record") %}
9595
{% if num_versions == 2 %}
9696
{% set text_content = _("more version exist for this record") %}
9797
{% endif %}
9898

9999
<p>
100-
<small>{{ record.versions.index - 1 }} {{ text_content }}</small>
100+
<small>{{ record.versions.versions_count - 1 }} {{ text_content }}</small>
101101
</p>
102102
{% endif %}
103103
</div>

0 commit comments

Comments
 (0)