emory-libraries/dlp-selfdeposit

View on GitHub
app/views/_controls.html.erb

Summary

Maintainability
Test Coverage
<nav class="navbar navbar-light navbar-collapse justify-content-end navbar-expand-md align-items-center border-bottom" role="navigation" aria-label="Root Menu">
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#top-navbar-collapse" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse justify-content-between" id="top-navbar-collapse">
  <ul class="nav navbar-nav col-md-5">
    <li class="nav-item <%= 'active' if current_page?(hyrax.root_path) %>">
      <%= link_to t(:'hyrax.controls.home'), hyrax.root_path, class: "nav-link", aria: current_page?(hyrax.root_path) ? {current: 'page'} : nil %></li>
    <li class="nav-item <%= 'active' if current_page?(hyrax.about_path) %>">
      <%= link_to t(:'hyrax.controls.about'), hyrax.about_path, class: "nav-link", aria: current_page?(hyrax.about_path) ? {current: 'page'} : nil %></li>
    <li class="nav-item <%= 'active' if current_page?(hyrax.help_path) %>">
      <%= link_to t(:'hyrax.controls.help'), hyrax.help_path, class: "nav-link", aria: current_page?(hyrax.help_path) ? {current: 'page'} : nil %></li>
    <li class="nav-item <%= 'active' if current_page?(hyrax.contact_path) %>">
      <%= link_to t(:'hyrax.controls.contact'), hyrax.contact_path, class: "nav-link", aria: current_page?(hyrax.contact_path) ? {current: 'page'} : nil %></li>
  </ul><!-- /.nav -->
  <div class="oe2-controls">
    <%= render '/user_util_links' %>
  </div>
  </div>
</nav><!-- /.navbar -->