diff --git a/app/controllers/specialist_document_controller.rb b/app/controllers/specialist_document_controller.rb index 196ff76baf..d79d9089d7 100644 --- a/app/controllers/specialist_document_controller.rb +++ b/app/controllers/specialist_document_controller.rb @@ -1,5 +1,7 @@ class SpecialistDocumentController < ContentItemsController include Cacheable - def show; end + def show + @specialist_document_presenter = SpecialistDocumentPresenter.new(content_item) + end end diff --git a/app/views/specialist_document/show.html.erb b/app/views/specialist_document/show.html.erb index 028bcc83cb..2f868ded68 100644 --- a/app/views/specialist_document/show.html.erb +++ b/app/views/specialist_document/show.html.erb @@ -40,7 +40,9 @@ <% end %> <% end %> - <%= render "components/contents_list_with_body", contents: @content_item.contents do %> + <% if @specialist_document_presenter.show_contents_list? %> + <%= render "components/contents_list_with_body", contents: content_item.headers do %> + <% end %> <% if @content_item.protected_food_drink_name? %>