mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 20:55:11 +00:00
no unlink on delete
This commit is contained in:
parent
9857f041ec
commit
f158fff633
2 changed files with 11 additions and 3 deletions
|
|
@ -16,7 +16,11 @@ class Components::Resemblance < Components::Base
|
|||
div class: "section-content" do
|
||||
detail_row("this identity", @resemblance.current_label)
|
||||
detail_row("matches") do
|
||||
a(href: backend_identity_path(@resemblance.past_identity), target: "_blank") { @resemblance.matched_label }
|
||||
if @resemblance.past_identity
|
||||
a(href: backend_identity_path(@resemblance.past_identity), target: "_blank") { @resemblance.matched_label }
|
||||
else
|
||||
span(class: "text-muted") { "[deleted identity]" }
|
||||
end
|
||||
if @resemblance.matched_verification
|
||||
plain " ("
|
||||
a(href: backend_verification_path(@resemblance.matched_verification), target: "_blank") { "verification" }
|
||||
|
|
@ -28,7 +32,11 @@ class Components::Resemblance < Components::Base
|
|||
div class: "section" do
|
||||
div(class: "section-header") { h3 { "matched identity" } }
|
||||
div class: "section-content" do
|
||||
render Components::Identity.new(@resemblance.past_identity)
|
||||
if @resemblance.past_identity
|
||||
render Components::Identity.new(@resemblance.past_identity)
|
||||
else
|
||||
plain "[deleted identity]"
|
||||
end
|
||||
end
|
||||
end
|
||||
render Components::Inspector.new(@resemblance)
|
||||
|
|
|
|||
|
|
@ -31,6 +31,6 @@ class Identity::Resemblance < ApplicationRecord
|
|||
|
||||
def title = "resemblance"
|
||||
def current_label = identity.full_name
|
||||
def matched_label = past_identity.full_name
|
||||
def matched_label = past_identity&.full_name || "[deleted]"
|
||||
def matched_verification = nil
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue