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) } }
|
||||||
= render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, error: false }
|
.geo-areas
|
||||||
|
= render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, error: false }
|
||||||
|
|
|
@ -41,8 +41,7 @@
|
||||||
= "#{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
|
||||||
= "#{c.libelle} :"
|
= "#{c.libelle} :"
|
||||||
|
|
Loading…
Reference in a new issue