<% @users.each do |user| %>
- <%= link_to(user.cn, admin_user_path(user.address), class: 'ks-text-link') %> |
+ <%= link_to(user.cn, admin_user_path(user.cn), class: 'ks-text-link') %> |
<%= user.confirmed_at.nil? ? badge("pending", :yellow) : "" %> |
<%= user.is_admin? ? badge("admin", :red) : "" %> |
diff --git a/app/views/admin/users/show.html.erb b/app/views/admin/users/show.html.erb
index dc904fd..0003172 100644
--- a/app/views/admin/users/show.html.erb
+++ b/app/views/admin/users/show.html.erb
@@ -1,4 +1,4 @@
-<%= render HeaderComponent.new(title: "User: #{@user.address}") %>
+<%= render HeaderComponent.new(title: "User: #{@user.cn}") %>
<%= render MainSimpleComponent.new do %>
diff --git a/config/routes.rb b/config/routes.rb
index 643b095..8dee02d 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -73,9 +73,14 @@ Rails.application.routes.draw do
namespace :admin do
root to: 'dashboard#index'
- resources 'users', param: 'address', only: ['index', 'show'], constraints: { address: /.*/ }
+ resources 'users', param: 'username', only: ['index', 'show'] do
+
+ end
+
get 'invitations', to: 'invitations#index'
+
resources :donations
+
get 'lightning', to: 'lightning#index'
namespace :app_catalog do