Skip to content

Commit

Permalink
Merge pull request #2392 from alphagov/users-page-improvements
Browse files Browse the repository at this point in the history
Users page improvements
  • Loading branch information
chrislo authored Sep 29, 2023
2 parents 4fb3d71 + 1c820d9 commit a6f9ce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions app/helpers/users_helper.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
module UsersHelper
def two_step_abbr_tag
tag.abbr("2SV", title: "Two step verification")
end

def two_step_status(user)
user.two_step_status.humanize.capitalize
end
Expand Down
4 changes: 2 additions & 2 deletions app/views/users/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<%= render "govuk_publishing_components/components/button", {
text: "Upload a batch of users",
href: new_batch_invitation_path,
secondary: true,
secondary_quiet: true,
margin_bottom: 4,
} %>
<% end %>
Expand All @@ -48,7 +48,7 @@
{ text: "Email" },
{ text: "Role" },
{ text: "Status" },
{ text: "#{two_step_abbr_tag} Status".html_safe },
{ text: "2SV Status" },
],
rows: @users.map do |user|
[
Expand Down

0 comments on commit a6f9ce2

Please sign in to comment.