mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 17:36:22 +00:00
14 lines
520 B
Text
14 lines
520 B
Text
- previous_key ||= ''
|
|
- data.each_with_index do |value, i|
|
|
- keys = [superkeys, i].flatten
|
|
- unless keys.first == previous_key
|
|
%h2{id: keys.first}
|
|
= t("help.i18n.#{keys.first}")
|
|
- if value.is_a? String
|
|
= render 'i18n/text_field', keys: keys, value: value
|
|
- elsif value.is_a? Hash
|
|
= render 'i18n/recursive', data: value, superkeys: keys,
|
|
previous_key: keys.first
|
|
- elsif value.is_a? Array
|
|
= render 'i18n/recursive_array', data: value, superkeys: keys,
|
|
previous_key: keys.first
|