= render "shared/loginout"
- content_for :head do
  = javascript_include_tag "application"
  = stylesheet_link_tag "application"
- content_for :content do
  .class
    %main#content{role: 'main'}
      =flash_messages
      .inner-block
        .breadcrumbs= yield :breadcrumbs
        .edit_this_page= yield :edit_this_page
      .inner-block
        = render "shared/search"
      .inner-block
        = yield
= render template: "layouts/moj_internal_template"

= render "shared/loginout"
- content_for :head do
  = javascript_include_tag "application"
  = stylesheet_link_tag "application"
- content_for :content do
  .class
    %main#content{role: 'main'}
      =flash_messages
      .inner-block
        .breadcrumbs= yield :breadcrumbs
        .edit_this_page= yield :edit_this_page
      .inner-block
        = render "shared/search" if current_user
      .inner-block
        = yield
= render template: "layouts/moj_internal_template"

Hide the search if the user is not logged in
Hide the search if the user is not logged in
