|
|
@ -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) |
|
|
|