app/views/weeler/static_sections/show.html.haml in weeler-2.0.0 vs app/views/weeler/static_sections/show.html.haml in weeler-2.0.1
- old
+ new
@@ -15,11 +15,15 @@
= lang.capitalize
- translation = I18n::Backend::Weeler::Translation.locale(lang).lookup(key).first
.form-group
= label_tag key, key.to_s.split('.').last.humanize, class: "col-lg-2 col-md-2 control-label"
%div{class: "col-lg-10 col-md-10"}
+
- if translation.html?
- = text_area_tag "translations[#{translation.id}]", translation.value, class: 'form-control redactor'
+ - if ::Weeler.use_rails_rich_text_editor
+ = rich_text_area_tag "translations[#{translation.id}]", translation.value
+ - else
+ = text_area_tag "translations[#{translation.id}]", translation.value, class: 'form-control html'
- else
= text_area_tag "translations[#{translation.id}]", translation.value, class: 'form-control'
.form-group
= submit_tag "Save", class: "btn btn-primary"