Browse Source

WIP commit

pull/2031/head
natdeanlewissoftwire 1 year ago
parent
commit
2fd0d29b9e
  1. 3
      app/helpers/tab_nav_helper.rb
  2. 1
      config/routes.rb

3
app/helpers/tab_nav_helper.rb

@ -3,7 +3,8 @@ module TabNavHelper
def user_cell(user) def user_cell(user)
link_text = user.name.presence || user.email link_text = user.name.presence || user.email
[govuk_link_to(link_text, user), "<span class=\"govuk-visually-hidden\">User </span><span class=\"govuk-!-font-weight-regular app-!-colour-muted\">#{user.email}</span>"].join("\n") link = current_user.support? ? govuk_link_to(link_text, organisation_user_path(user.organisation, user)) : govuk_link_to(link_text, user)
[link, "<span class=\"govuk-visually-hidden\">User </span><span class=\"govuk-!-font-weight-regular app-!-colour-muted\">#{user.email}</span>"].join("\n")
end end
def location_cell_postcode(location, link) def location_cell_postcode(location, link)

1
config/routes.rb

@ -122,6 +122,7 @@ Rails.application.routes.draw do
end end
resources :organisations do resources :organisations do
resources :users
get "duplicates", to: "duplicate_logs#index" get "duplicates", to: "duplicate_logs#index"
member do member do

Loading…
Cancel
Save