Browse Source

refactor: linting

pull/1023/head
natdeanlewissoftwire 4 years ago
parent
commit
60ba3eb7e5
  1. 2
      app/helpers/schemes_helper.rb
  2. 2
      app/views/schemes/show.html.erb

2
app/helpers/schemes_helper.rb

@ -38,7 +38,7 @@ module SchemesHelper
availability.strip availability.strip
end end
private private
ActivePeriod = Struct.new(:from, :to) ActivePeriod = Struct.new(:from, :to)
def scheme_active_periods(scheme) def scheme_active_periods(scheme)

2
app/views/schemes/show.html.erb

@ -26,7 +26,7 @@
<% end %> <% end %>
<% if FeatureToggle.scheme_toggle_enabled? %> <% if FeatureToggle.scheme_toggle_enabled? %>
<% if @scheme.active? || @scheme.reactivating_soon?%> <% if @scheme.active? || @scheme.reactivating_soon? %>
<%= govuk_button_link_to "Deactivate this scheme", scheme_new_deactivation_path(@scheme), warning: true %> <%= govuk_button_link_to "Deactivate this scheme", scheme_new_deactivation_path(@scheme), warning: true %>
<% else %> <% else %>
<%= govuk_button_link_to "Reactivate this scheme", scheme_new_reactivation_path(@scheme) %> <%= govuk_button_link_to "Reactivate this scheme", scheme_new_reactivation_path(@scheme) %>

Loading…
Cancel
Save