UNC-Libraries/hy-c

View on GitHub
app/views/shared/_footer.html.erb

Summary

Maintainability
Test Coverage
<%# [hyc-override] Overriding partial in hyrax gem to update homepage %>
<footer id="unc-footer" class="navbar navbar-dark bg-dark site-footer">
    <div class="navbar-text text-center">
      <div class="text-center">
        <div>
          <ul class="navbar-nav list-unstyled">
            <li><%= link_to t('hyrax.links.home'), '/' %></li>
            <li><%= link_to t('hyrax.links.browse_collections'), main_app.search_catalog_path(f: { human_readable_type_sim: ["Collection"]}) %></li>
            <li><%= link_to t('hyrax.links.about'), "https://blogs.lib.unc.edu/cdr/about" %></li>
            <li><%= link_to t('hyrax.links.help'), "https://blogs.lib.unc.edu/cdr" %></li>
            <li><%= link_to t('hyrax.links.contact'), "https://blogs.lib.unc.edu/cdr/index.php/contact-us" %></li>
            <li><%= link_to t('hyrax.links.library_home'), "https://library.unc.edu" %></li>
            <li><%= link_to t('hyrax.links.privacy_policy'), "https://library.unc.edu/policies/privacy-policy/" %></li>
            <li><%= link_to t('hyrax.links.accessibility'), "https://digitalaccess.unc.edu/report" %></li>
          </ul>
        </div>
        <div>
          <ul id="unc-version-footer" class="list-unstyled">
            <li title="<%= GIT_SHA %>"><%= link_to("Hy-C #{BRANCH}", "https://github.com/UNC-Libraries/hy-c") %></li>
            <li><%= LAST_DEPLOYED %></li>
            <li><%= link_to("Hyrax version #{HYRAX_VERSION}", "https://hyrax.samvera.org/") %></li>
          </ul>
        </div>
      </div>
    </div>
</footer>
<%= render '/shared/select_work_type_modal' %>