Browse Source

Update more fixed paths

cldc-2812-run-app-from-relative-url
Rachael Booth 1 year ago
parent
commit
14a72bcabf
  1. 2
      app/helpers/filters_helper.rb
  2. 2
      app/views/organisations/index.html.erb

2
app/helpers/filters_helper.rb

@ -132,7 +132,7 @@ module FiltersHelper
end
def user_lettings_path?
request.path == "/lettings-logs"
request.path == lettings_logs_path
end
def user_or_org_lettings_path?

2
app/views/organisations/index.html.erb

@ -3,7 +3,7 @@
<% content_for :title, title %>
<%= render partial: "organisations/headings", locals: request.path == "/organisations" ? { main: "Organisations", sub: nil } : { main: @organisation.name, sub: "Organisations" } %>
<%= render partial: "organisations/headings", locals: request.path == organisations_path ? { main: "Organisations", sub: nil } : { main: @organisation.name, sub: "Organisations" } %>
<% if current_user.support? %>
<%= govuk_button_link_to "Create a new organisation", new_organisation_path, html: { method: :get } %>

Loading…
Cancel
Save