From 095747e89b2c8e8fdb1dd223b37c418552d381f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Wed, 13 Mar 2024 18:19:25 +0100 Subject: [PATCH] Fix broken admin links --- app/views/admin/donations/index.html.erb | 2 +- app/views/admin/donations/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/donations/index.html.erb b/app/views/admin/donations/index.html.erb index bbf1a9e..90a755e 100644 --- a/app/views/admin/donations/index.html.erb +++ b/app/views/admin/donations/index.html.erb @@ -35,7 +35,7 @@ <% @donations.each do |donation| %> - <%= link_to donation.user.address, admin_user_path(donation.user.address), class: 'ks-text-link' %> + <%= link_to donation.user.cn, admin_user_path(donation.user.cn), class: 'ks-text-link' %> <% if donation.amount_sats.present? %><%= number_with_delimiter donation.amount_sats %><% end %> <% if donation.fiat_amount.present? %><%= number_to_currency donation.fiat_amount.to_f / 100, unit: "" %> <%= donation.fiat_currency %><% end %> <%= donation.public_name %> diff --git a/app/views/admin/donations/show.html.erb b/app/views/admin/donations/show.html.erb index 1853eb2..00b32cc 100644 --- a/app/views/admin/donations/show.html.erb +++ b/app/views/admin/donations/show.html.erb @@ -6,7 +6,7 @@ User - <%= link_to @donation.user.address, admin_user_path(@donation.user.address), class: 'ks-text-link' %> + <%= link_to @donation.user.cn, admin_user_path(@donation.user.cn), class: 'ks-text-link' %> Donation Method