5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 14:26:22 +00:00
panel/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(' ')