-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
224 additions
and
192 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<div id="site-navbar" class="site-navbar navbar navbar-light navbar-expand-md" role="navigation" aria-label="<%= t('spotlight.exhibitnavbar.label') %>"> | ||
<div class="container flex-column flex-md-row"> | ||
<ul class="site-search-nav navbar-nav mr-auto mr-md-3 mr-lg-auto w-100 order-1 order-md-0 mt-3 mt-md-0"> | ||
<li class="navbar-item d-flex flex-grow-1"> | ||
<% if Settings.feature_flags.search_across || in_search_across? %> | ||
<%= render SiteSearchFormComponent.new(url: helpers.search_action_url, params: helpers.search_state.params_for_search.except(:qt)) %> | ||
<% end %> | ||
</li> | ||
</ul> | ||
|
||
<ul class="navbar-nav align-self-start order-0 order-md-1"> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
About | ||
</a> | ||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink"> | ||
<%= link_to "How does Stanford use Spotlight?", | ||
"https://exhibits.stanford.edu/exhibits-documentation/about/how-does-stanford-use-spotlight", class: 'dropdown-item' %> | ||
<%= link_to "Exhibit documentation & marketing", | ||
"https://exhibits.stanford.edu/exhibits-documentation", class: 'dropdown-item' %> | ||
<%= link_to "https://consul.stanford.edu/x/g4A-CQ", class: 'dropdown-item' do %> | ||
Request an exhibit <%= image_tag("stanford_s.png", class: "stanford-only", alt: "Stanford only") %> | ||
<% end %> | ||
</div> | ||
</li> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
<span class="d-md-none d-lg-inline">More</span> at Stanford | ||
</a> | ||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink"> | ||
<%= link_to "Explore library collections at Stanford", | ||
"https://library.stanford.edu/explore-collections", class: 'dropdown-item' %> | ||
<%= link_to "Special Collections & University Archives", | ||
"https://library.stanford.edu/libraries/special-collections", class: 'dropdown-item' %> | ||
<%= link_to "Support the Stanford Libraries", | ||
"https://library.stanford.edu/support-stanford-libraries", class: 'dropdown-item' %> | ||
</div> | ||
</li> | ||
<% if helpers.can?([:create, :manage], Spotlight::Exhibit) || helpers.can?(:manage, Spotlight::Site.instance) %> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
Admin | ||
</a> | ||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink"> | ||
<% if helpers.can?(:create, Spotlight::Exhibit) %> | ||
<%= link_to "Create a new exhibit", helpers.spotlight.new_exhibit_path, class: 'dropdown-item' %> | ||
<% end %> | ||
<%= link_to t('.documentation'), 'https://github.com/sul-dlss/spotlight/wiki/Configuration-settings', class: 'dropdown-item' %> | ||
<% if helpers.can? :manage, Spotlight::Site.instance %> | ||
<%= link_to t(:'spotlight.sites.edit.page_title'), helpers.spotlight.edit_site_path, class: 'dropdown-item' %> | ||
<% end %> | ||
<% if helpers.can? :manage, Spotlight::Exhibit %> | ||
<%= link_to t(:'spotlight.sites.edit_exhibits.page_title'), helpers.spotlight.edit_site_exhibits_path, class: 'dropdown-item' %> | ||
<%= link_to t(:'spotlight.admin_users.index.page_title'), helpers.spotlight.admin_users_path, class: 'dropdown-item' %> | ||
<% end %> | ||
</div> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
# Builds the site navbar | ||
class SiteNavbarComponent < ViewComponent::Base | ||
end |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
# Builds the site search form | ||
class SiteSearchFormComponent < Blacklight::SearchBarComponent | ||
end |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.