name route and add link (#19109)
This commit is contained in:
parent
83dbca39ff
commit
ca96be13dd
2 changed files with 4 additions and 1 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue