5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 22:26:21 +00:00
panel/app/views/posts/attribute_ro/_event.haml

8 lines
262 B
Text
Raw Normal View History

2020-06-28 00:42:15 +00:00
%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(' ')