Skip to content

Commit

Permalink
A heading for the right-hand section of dashboard
Browse files Browse the repository at this point in the history
Based on feedback from user research, without a heading, this section
doesn't really look like anything at all
  • Loading branch information
mike29736 authored and chrisroos committed Oct 2, 2023
1 parent 04654af commit b8bb286
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions app/views/root/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,23 @@
</div>

<div class="govuk-grid-column-one-third">
<ul class="govuk-list app-dashboard-side">
<li>
<%= link_to "Change your email or password", edit_email_or_password_user_path(current_user), class: "govuk-link" %>
</li>
<div class="app-dashboard-side">
<%= render "govuk_publishing_components/components/heading", {
text: "Actions and settings",
padding: true,
margin_bottom: 3,
} %>
<ul class="govuk-list">
<li>
<%= link_to "Change your email or password", edit_email_or_password_user_path(current_user), class: "govuk-link" %>
</li>

<% if current_user.has_2sv? %>
<li><%= link_to "Change your 2-step verification phone", two_step_verification_path, class: "govuk-link" %></li>
<% else %>
<li><%= link_to "Set up 2-step verification", two_step_verification_path, class: "govuk-link" %></li>
<% end %>
</ul>
<% if current_user.has_2sv? %>
<li><%= link_to "Change your 2-step verification phone", two_step_verification_path, class: "govuk-link" %></li>
<% else %>
<li><%= link_to "Set up 2-step verification", two_step_verification_path, class: "govuk-link" %></li>
<% end %>
</ul>
</div>
</div>
</div>

0 comments on commit b8bb286

Please sign in to comment.