Browse Source

fix comma separator

main
ghost 1 year ago
parent
commit
2e9b119733
  1. 6
      templates/default/torrent/info.html.twig
  2. 6
      templates/default/user/info.html.twig

6
templates/default/torrent/info.html.twig

@ -344,7 +344,8 @@ @@ -344,7 +344,8 @@
<div class="padding-t-16-px text-left">
{% if torrent.locales %}
<div class="padding-y-4-px">
{% for i, locale in torrent.locales | sort %}{% if i > 0 %},{% endif %} {{ locale | locale_name(locale) | u.title }}{% endfor %}
{% set i = 0 %}
{% for locale in torrent.locales | sort %}{% if i > 0 %},{% endif %} {{ locale | locale_name(locale) | u.title }}{% set i = i + 1 %}{% endfor %}
</div>
{% endif %}
</div>
@ -360,7 +361,8 @@ @@ -360,7 +361,8 @@
<div class="padding-t-16-px text-left">
{% if torrent.categories %}
<div class="padding-y-4-px">
{% for i, category in torrent.categories | sort %}{% if i > 0 %},{% endif %} {{ category | u.title }}{% endfor %}
{% set i = 0 %}
{% for category in torrent.categories | sort %}{% if i > 0 %},{% endif %} {{ category | u.title }}{% set i = i + 1 %}{% endfor %}
</div>
{% endif %}
</div>

6
templates/default/user/info.html.twig

@ -172,7 +172,8 @@ @@ -172,7 +172,8 @@
{{ 'Languages' | trans }}
</td>
<td class="width-80 line-height-20-px">
{% for i, locale in user.locales | sort %}{% if i > 0 %},{% endif %} {{ locale | locale_name(locale) | u.title }}{% endfor %}
{% set i = 0 %}
{% for locale in user.locales | sort %}{% if i > 0 %},{% endif %} {{ locale | locale_name(locale) | u.title }}{% set i = i + 1 %}{% endfor %}
</td>
</tr>
<tr>
@ -180,7 +181,8 @@ @@ -180,7 +181,8 @@
{{ 'Categories' | trans }}
</td>
<td class="width-80 line-height-20-px">
{% for i, category in user.categories | sort %}{% if i > 0 %},{% endif %} {{ category | u.title }}{% endfor %}
{% set i = 0 %}
{% for category in user.categories | sort %}{% if i > 0 %},{% endif %} {{ category | u.title }}{% set i = i + 1 %}{% endfor %}
</td>
</tr>
<tr>

Loading…
Cancel
Save