Browse Source

CLDC-2405: Wip

pull/1732/head
Aaron Spencer 3 years ago
parent
commit
6410532c92
  1. 10
      app/components/log_summary_component.html.erb
  2. 1
      app/views/logs/_log_list.html.erb

10
app/components/log_summary_component.html.erb

@ -36,6 +36,16 @@
</p>
<% end %>
<% if log.sales? %>
<p class="govuk-body govuk-!-margin-bottom-2">
<%= case log.ownership_scheme %>
when 1 then "shared ownership"
<% when 2 then "discounted ownership"
<% when 3 then "outright sale" %>> <% end %>
<% end %>
</p>
<% end %>
<% if current_user.support? || current_user.organisation.has_managing_agents? %>
<dl class="app-metadata">
<% if log.owning_organisation %>

1
app/views/logs/_log_list.html.erb

@ -11,7 +11,6 @@
</div>
<div class="govuk-grid-column-one-quarter govuk-!-text-align-right">
<% 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 %>
</div>

Loading…
Cancel
Save