Merge pull request #8782 from tchak/fix-champ-carte-too-many-features

fix(dossier): do not show features list if more then 20
This commit is contained in:
Paul Chavard 2023-03-21 10:18:05 +00:00 committed by GitHub
commit b750be75d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,8 +2,12 @@
.areas-title Sélections utilisateur
.areas
%ul
- champ.selections_utilisateur.each do |geo_area|
- champ.selections_utilisateur.slice(0, 20).each do |geo_area|
= render partial: 'shared/champs/carte/geo_area', locals: { geo_area: geo_area, editing: editing }
- if champ.selections_utilisateur.size > 20
%li
%span
et #{champ.selections_utilisateur.size - 20} autres points, lignes ou polygones.
- if champ.cadastres.present?
.areas-title Parcelles cadastrales