-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2439 from samvera/i142-home-page-themes
I142 home page themes
- Loading branch information
Showing
19 changed files
with
112 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
<%# Override Hyrax 5.0.1 | ||
- add privacy policy partial | ||
- add login & logout link | ||
- add Hyku version | ||
- navbar-inverse class %> | ||
- add Hyku version %> | ||
<% current_year = Time.now.year %> | ||
<footer class="navbar navbar-inverse navbar-dark bg-dark site-footer w-100"> | ||
<div class="container-fluid"> | ||
<div class="navbar-text d-flex justify-content-between w-100"> | ||
<!-- Left Column --> | ||
<div class="d-flex flex-column"> | ||
<div class='p-2'><%= t('hyrax.footer.service_html') %></div> | ||
<div class='p-2'>Hyku v<%= Hyku::VERSION %> with Hyrax v<%= Hyrax::VERSION %></div> | ||
|
||
<footer class="navbar navbar-dark container-fluid"> | ||
<div class="row navbar-text text-center"> | ||
|
||
<div class="col-12 col-lg-6 text-lg-left"> | ||
<div class="p-1 p-lg-2"><%= t('hyrax.footer.service_html') %></div> | ||
<div class="p-1 p-lg-2">Hyku v<%= Hyku::VERSION %> with Hyrax v<%= Hyrax::VERSION %></div> | ||
</div> | ||
|
||
<div class="col-12 col-lg-6 text-lg-right"> | ||
<div class="p-1 p-lg-2"> | ||
<%= t('hyrax.footer.copyright_html', current_year: current_year) %> | ||
<%= t('hyrax.background_attribution_html') %> | ||
</div> | ||
<!-- Right Column --> | ||
<div class="d-flex flex-column align-items-end flex-fill"> | ||
<div class='p-2'> | ||
<%= t('hyrax.footer.copyright_html', current_year: current_year) %> | ||
<%= t('hyrax.background_attribution_html') %> | ||
</div> | ||
<div class='p-2'> | ||
<% if user_signed_in? %> | ||
<%= link_to t("hyrax.toolbar.profile.logout"), main_app.destroy_user_session_path, class: 'navbar-link' %> | ||
<% else %> | ||
<%= link_to t('hyku.footer.admin_login', default: [:'hyrax.toolbar.profile.login']), main_app.new_user_session_path, class: 'navbar-link' %> | ||
<% end %> | ||
<span class='navbar-link'><%= render 'hyrax/base/privacy_policy' %></span> | ||
</div> | ||
<div class="p-1 p-lg-2"> | ||
<% if user_signed_in? %> | ||
<%= link_to t('hyrax.toolbar.profile.logout'), main_app.destroy_user_session_path, class: 'navbar-link' %> | ||
<% else %> | ||
<%= link_to t('hyku.footer.admin_login', default: [:'hyrax.toolbar.profile.login']), main_app.new_user_session_path, class: 'navbar-link' %> | ||
<% end %> | ||
<span class="navbar-link"><%= render 'hyrax/base/privacy_policy' %></span> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,21 @@ | ||
<% # OVERRIDE: Hyrax 5.0.0rc2 template to change the size of the column on line 20 from col-md-4 to col-md-6 %> | ||
<header aria-label="header" class="top-header"> | ||
<nav id="masthead" class="navbar navbar-expand-lg navbar-dark bg-dark justify-content-between cultural-repository-nav <%= placement_class %>" role="navigation" aria-label="masthead"> | ||
<div class="container-fluid"> | ||
<!-- Brand and toggle get grouped for better mobile display --> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#top-navbar-collapse" aria-controls="top-navbar-collapse" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<%= render '/logo' %> | ||
</div> | ||
<!-- Brand and toggle get grouped for better mobile display --> | ||
<%= render '/logo' %> | ||
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#top-navbar-collapse" aria-controls="top-navbar-collapse" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="top-navbar-collapse"> | ||
<% if admin_host? %> | ||
<%= render '/admin_util_links' %> | ||
<% else %> | ||
<%= render '/user_util_links' %> | ||
<div class="col-8 ml-auto search-items"> | ||
<%= render partial: 'catalog/search_form' %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<div class="collapse navbar-collapse" id="top-navbar-collapse"> | ||
<% if admin_host? %> | ||
<%= render '/admin_util_links' %> | ||
<% else %> | ||
<%= render '/user_util_links' %> | ||
<div class="w-100"> | ||
<%= render partial: 'catalog/search_form' %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</nav> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<% # OVERRIDE: Hyrax v5.0.0rc2 - added globe back to logo %> | ||
<% if logo_image %> | ||
<a id="logo" class="col-sm-5" href="<%= hyrax.root_path %>" data-no-turbolink="true"> | ||
<a id="logo" href="<%= hyrax.root_path %>" data-no-turbolink="true"> | ||
<%= image_tag logo_image, alt: block_for(name: 'logo_image_text') %> | ||
</a> | ||
<% end %> |
27 changes: 11 additions & 16 deletions
27
app/views/themes/institutional_repository/_masthead.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
<% # OVERRIDE: Hyrax v5.0.0rc2 - added the search bar and removed the /login and locale nav menu and moved to the /controls partial for theming %> | ||
<header aria-label="header" class="top-header"> | ||
<nav id="masthead" class="navbar navbar-expand-lg navbar-dark bg-dark justify-content-between institutional-repository-nav <%= placement_class %>" role="navigation" aria-label="masthead"> | ||
<div class="container-fluid"> | ||
<!-- Brand and toggle get grouped for better mobile display --> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#top-navbar-collapse" aria-controls="top-navbar-collapse" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="d-lg-none d-md-none"><%= render '/logo' %></div> | ||
</div> | ||
<div class="collapse navbar-collapse" id="top-navbar-collapse"> | ||
<div class="d-none d-lg-block d-md-block"><%= render '/logo' %></div> | ||
<nav id="masthead" class="navbar navbar-expand-lg navbar-dark bg-dark institutional-repository-nav container-fluid d-block py-2<%= placement_class %>" role="navigation" aria-label="masthead"> | ||
<div class="institutional-repository-application-name col-lg-2 col-md-2"> | ||
<span><%= application_name %></span> | ||
</div> | ||
<div class="row align-items-center"> | ||
<div class="col-lg-6 col-md-5 col-sm-12"> | ||
<div class="row justify-content-start"> | ||
<div class="ml-2"><%= render '/logo' %> | ||
<span class="institutional-repository-application-name"><%= application_name %></span> | ||
</div> | ||
<div class="navbar-right col-lg-6 col-md-5"> | ||
<%= render partial: 'catalog/search_form' %> | ||
</div> | ||
</div> | ||
<div class="col-lg-6 col-md-7 col-sm-12"> | ||
<%= render partial: 'catalog/search_form' %> | ||
</div> | ||
</div> | ||
</nav> | ||
</header> | ||
<%= render '/controls' %> |
Oops, something went wrong.