<% active ||= [] steps = [ { icon: "envelope-closed", title: t(".step1.title"), description: t(".step1.description") }, { icon: "check", title: t(".step2.title"), description: t(".step2.description") }, { icon: "bell", title: t(".step3.title"), description: t(".step3.description") } ] %>
<% steps.each_with_index do |step, i| %> <% cls = "step-bullet text-center" cls << " completed" if active.include?(i) %>
<%= icon step[:icon] %>

<%= step[:title] %>

<%= step[:description] %>

<% end %>