From 6410532c92e9c48614369d17f34a71a98b7e7c4d Mon Sep 17 00:00:00 2001
From: Aaron Spencer
Date: Thu, 22 Jun 2023 16:32:52 +0100
Subject: [PATCH] CLDC-2405: Wip
---
app/components/log_summary_component.html.erb | 10 ++++++++++
app/views/logs/_log_list.html.erb | 1 -
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/app/components/log_summary_component.html.erb b/app/components/log_summary_component.html.erb
index a59c78c64..e49567288 100644
--- a/app/components/log_summary_component.html.erb
+++ b/app/components/log_summary_component.html.erb
@@ -36,6 +36,16 @@
<% end %>
+ <% if log.sales? %>
+
+ <%= case log.ownership_scheme %>
+ when 1 then "shared ownership"
+ <% when 2 then "discounted ownership"
+ <% when 3 then "outright sale" %>> <% end %>
+ <% end %>
+
+ <% end %>
+
<% if current_user.support? || current_user.organisation.has_managing_agents? %>
<% if log.owning_organisation %>
diff --git a/app/views/logs/_log_list.html.erb b/app/views/logs/_log_list.html.erb
index d41bdc9a8..df19856e3 100644
--- a/app/views/logs/_log_list.html.erb
+++ b/app/views/logs/_log_list.html.erb
@@ -11,7 +11,6 @@
<% if logs&.any? && (display_delete_logs?(@current_user, searched, filter_type) || in_organisations_tab?) %>
- <%# remove @ on current user %>
<%= govuk_link_to "Delete logs", delete_logs_path, class: "app-!-colour-red" %>
<% end %>