Skip to content

Commit

Permalink
Merge pull request #4 from IUBLibTech/iulrdc-12_remove_banner_image
Browse files Browse the repository at this point in the history
image and text tweaks to About / Help / Contact pages
  • Loading branch information
dlpierce authored Sep 16, 2024
2 parents 23a2be3 + 3a9a510 commit 8674541
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/views/_controls.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<nav class="navbar navbar-light bg-light navbar-expand-sm justify-content-between align-items-center px-2 py-3 border-bottom" role="navigation" aria-label="Root Menu">
<ul class="nav navbar-nav col-sm-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.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="col-sm-7">
<%= render partial: 'catalog/search_form' %>
</div>
</nav><!-- /.navbar -->
9 changes: 9 additions & 0 deletions app/views/layouts/homepage.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<% content_for(:navbar) do %>
<%= render '/controls' %>
<% end %>
<% content_for(:precontainer_content) do %>
<%= render 'hyrax/homepage/announcement' if controller_name == 'homepage' %>
<% end %>
<%= render template: 'layouts/hyrax' %>
2 changes: 2 additions & 0 deletions config/locales/hyrax.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ en:
title_tesim: Title
hyrax:
account_name: My Institution Account Id
contact_form:
notice: Please use the contact form to submit inquiries about this system; to report a problem you are experiencing with the system; to request assistance using the system; or to provide general feedback.
directory:
suffix: "@example.org"
footer:
Expand Down

0 comments on commit 8674541

Please sign in to comment.