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

8 lines
262 B
Text
Raw Permalink 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(' ')