Skip to content

Commit

Permalink
unwrap values for breadcrumb, add back to button
Browse files Browse the repository at this point in the history
  • Loading branch information
charlienparker committed Jan 8, 2025
1 parent de462b9 commit 80ca251
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/views/insured/families/_verification_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<% current_step_index = steps.keys.find_index(action_name) %>
<ul class="breadcrumbs">
<% steps.values[0..current_step_index].each do |step| %>
<li><%= link_to(step[:title], step[:link]) %></li>
<li><%= link_to(*step.values) %></li>
<% end %>
</ul>

Expand Down Expand Up @@ -62,4 +62,9 @@
<dd><strong><%= @verification.verif_due_date %></strong></dd>
</div>
<% end %>
</dl>
</dl>

<div class="my-4">
<% prior_step = steps.values[current_step_index - 1] %>
<%= link_to("Back to " + prior_step[:title], prior_step[:link], class: 'button') %>
</div>

0 comments on commit 80ca251

Please sign in to comment.