Commit 6cf90dec authored by Cyril L'Orphelin's avatar Cyril L'Orphelin
Browse files

Merge branch 'develop' into 'master'

Fix for registries

See merge request opsportal/sf3!222
parents dfb36e54 2edd102d
......@@ -86,17 +86,19 @@
</td>
<td>
<ul>
{% if vo["registry"] is defined and vo["registry"]|lower != "undefined" %}
{% set duplArr = [] %}
<ul>
{% for regSys in vo["registry"]|split(',') %}
{% if regSys not in duplArr %}
<li>{{ regSys }}</li>
{% set duplArr = duplArr|merge([regSys]) %}
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% if vo["registry"] is defined and vo["registry"]|lower != "undefined" %}
<ul>
{% for regSys in vo["registry"]|split(',') %}
{% if regSys|split(':')[1] > 0 %}
<li>{{ regSys|split(':')[0] }} <span class="badge bg-primary">{{ regSys|split(':')[1] }} </span> </li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</ul>
</td>
......
......@@ -61,13 +61,12 @@
</ul>
</td>
<td class="text-nowrap">
{% if vo["registry"] is defined and vo["registry"]|lower != "undefined" %}
{% set duplArr = [] %}
<ul>
{% for regSys in vo["registry"]|split(',') %}
{% if regSys not in duplArr %}
<li>{{ regSys }}</li>
{% set duplArr = duplArr|merge([regSys]) %}
{% if regSys|split(':')[1] > 0 %}
<li>{{ regSys|split(':')[0] }} <span class="badge bg-primary">{{ regSys|split(':')[1] }} </span> </li>
{% endif %}
{% endfor %}
</ul>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment