name route and add link (#19109)

This commit is contained in:
Lawrence 2023-02-14 10:15:21 -06:00 committed by GitHub
parent 83dbca39ff
commit ca96be13dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
<%= javascript_packs_with_chunks_tag "admin/editUser", defer: true %>
<div class="flex relative justify-between s:justify-end gap-2 my-2 s:my-0">
<a id="tag-priority-link" href="<%= dashboard_show_user_path(username: @user.username ) %>" class="c-link c-link--block c-link--icon-alone" aria-label="<%= t("views.main.tags.aria_label") %>" title="<%= t("views.main.tags.aria_label") %>">
<%= crayons_icon_tag("dashboard-line") %>
</a>
<%= link_to t("views.admin.users.profile.visit"), @user.path, class: "c-cta", target: "_blank", rel: "noopener" %>
<div class="dropdown-trigger-container">
<button type="button" class="c-btn c-btn--icon-alone dropdown-trigger" id="options-dropdown-trigger" aria-haspopup="true" aria-expanded="false" aria-controls="options-dropdown">

View file

@ -271,7 +271,7 @@ Rails.application.routes.draw do
constraints: {
which: /organization/
}
get "/dashboard/:username", to: "dashboards#show"
get "/dashboard/:username", to: "dashboards#show", as: :dashboard_show_user
# for testing rails mailers
unless Rails.env.production?