<h1 class="page_header"><%= (params[:repository].present?) ? "#{params[:repository]}" : t('application_title') %></h1>

<% if maintenance_mode? %>
<div class="alert alert-warning"><strong>Alert!</strong> <%= t('maintenance_alert') %></div>
<% end %>

<% if params[:repository].present? %>
<p class="repository_info">
  <% if current_repository_home_text? %>
  <%= t("repositories.#{current_repository_url}.home_text") %>
  <% end %>
  <span class="repository_url">
  <%= link_to "#{fa_icon('globe')} Website".html_safe, t("repositories.#{current_repository_url}.url"), target: '_blank' %>
  </span>
</p>
<% end %>

<% unless request.path == advanced_search_path %>
<div class="search">
  <%= render_search_bar %>
  <%= link_to t('search.advanced.link_text'), advanced_search_path(sanitize_search_params(params)), class: 'advanced_search'%>
</div>
<% else %>
<%= link_to t('search.simple.link_text').html_safe, search_catalog_path(sanitize_search_params(params)) %>
<% end %>
<script src="https://cdn-dev.library.nyu.edu/statuspage-embed/index.min.js"></script>


<h1 class="page_header"><%= (params[:repository].present?) ? "#{params[:repository]}" : t('application_title') %></h1>

<% if maintenance_mode? %>
<div class="alert alert-warning"><strong>Alert!</strong> <%= t('maintenance_alert') %></div>
<% end %>

<% if params[:repository].present? %>
<p class="repository_info">
  <% if current_repository_home_text? %>
  <%= t("repositories.#{current_repository_url}.home_text") %>
  <% end %>
  <span class="repository_url">
  <%= link_to "#{fa_icon('globe')} Website".html_safe, t("repositories.#{current_repository_url}.url"), target: '_blank' %>
  </span>
</p>
<% end %>

<% unless request.path == advanced_search_path %>
<div class="search">
  <%= render_search_bar %>
  <%= link_to t('search.advanced.link_text'), advanced_search_path(sanitize_search_params(params)), class: 'advanced_search'%>
</div>
<% else %>
<%= link_to t('search.simple.link_text').html_safe, search_catalog_path(sanitize_search_params(params)) %>
<% end %>
<% unless Rails.env.test? %>
  <script src="https://cdn-dev.library.nyu.edu/statuspage-embed/index.min.js"></script>
<% end %>


Exclude statuspage embed from tests
Exclude statuspage embed from tests
