Move the display logic directly into the carte champ partial
This commit is contained in:
parent
dbbe2866d5
commit
5014e3f4c1
2 changed files with 5 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
||||||
.carte{ data: { geo: geo_data(champ) } }
|
- if champ.to_s.present?
|
||||||
.geo-areas
|
.carte{ data: { geo: geo_data(champ) } }
|
||||||
|
.geo-areas
|
||||||
= render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, error: false }
|
= render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, error: false }
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
= "#{c.libelle} :"
|
= "#{c.libelle} :"
|
||||||
%td.rich-text
|
%td.rich-text
|
||||||
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
|
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
|
||||||
- if c.to_s.present?
|
|
||||||
= render partial: "shared/champs/carte/show", locals: { champ: c }
|
= render partial: "shared/champs/carte/show", locals: { champ: c }
|
||||||
- else
|
- else
|
||||||
%th.libelle
|
%th.libelle
|
||||||
|
|
Loading…
Reference in a new issue