From 43e49f1d7522513a87e67e920753dd45eef274db Mon Sep 17 00:00:00 2001 From: David May-Miller Date: Fri, 30 Sep 2022 11:20:19 +0100 Subject: [PATCH] CLDC-1625 Updated syntax to preferred style --- app/views/logs/index.html.erb | 4 ++-- app/views/organisations/logs.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/logs/index.html.erb b/app/views/logs/index.html.erb index 7c75230d4..f84a487df 100644 --- a/app/views/logs/index.html.erb +++ b/app/views/logs/index.html.erb @@ -7,10 +7,10 @@
- <% if current_page?(:controller => 'lettings_logs', :action => 'index') %> + <% if current_page?(controller: 'lettings_logs', action: 'index') %> <%= govuk_button_to "Create a new lettings log", lettings_logs_path %> <% end %> - <% if FeatureToggle.sales_log_enabled? && current_page?(:controller => 'sales_logs', :action => 'index') %> + <% if FeatureToggle.sales_log_enabled? && current_page?(controller: 'sales_logs', action: 'index') %> <%= govuk_button_to "Create a new sales log", sales_logs_path %> <% end %> <%#= govuk_link_to "Upload logs", bulk_upload_lettings_logs_path %> diff --git a/app/views/organisations/logs.html.erb b/app/views/organisations/logs.html.erb index a11560ddd..f954a0839 100644 --- a/app/views/organisations/logs.html.erb +++ b/app/views/organisations/logs.html.erb @@ -14,10 +14,10 @@
- <% if current_page?(:controller => 'organisations', :action => 'lettings_logs') %> + <% if current_page?(controller: 'organisations', action: 'lettings_logs') %> <%= govuk_button_to "Create a new lettings log for this organisation", lettings_logs_path(lettings_log: { owning_organisation_id: @organisation.id }, method: :post) %> <% end %> - <% if current_page?(:controller => 'organisations', :action => 'sales_logs') %> + <% if current_page?(controller: 'organisations', action: 'sales_logs') %> <%= govuk_button_to "Create a new sales log for this organisation", sales_logs_path(sales_log: { owning_organisation_id: @organisation.id }, method: :post) %> <% end %>