sutty/app/views/posts/attribute_ro/_event.haml
2020-06-27 21:56:57 -03:00

7 lines
262 B
Text

%tr{ id: attribute }
%th= post_label_t(attribute, post: post)
%td
%dl
- %i[dtstart dtend].each do |dt|
%dt= post_label_t(attribute, dt, post: post)
%dl= Time.parse %w[date time zone].map { |x| metadata.value[dt.to_s][x] }.join(' ')