Skip to content

Commit

Permalink
Link the SUL logo to the library website
Browse files Browse the repository at this point in the history
Fixes #134
  • Loading branch information
jcoyne committed Nov 4, 2022
1 parent b61a4dc commit 2ffa60c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
34 changes: 17 additions & 17 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/projectblacklight/arclight.git
revision: 0289a964fe64f285e868a43b82ac5b872c289506
revision: b8a19b59d070721b91e0c014fc03a2c3008ddacd
specs:
arclight (1.0.0.alpha)
blacklight (>= 7.14, < 9)
Expand All @@ -11,7 +11,7 @@ GIT

GIT
remote: https://github.com/projectblacklight/blacklight.git
revision: f30340e7cdbb2b166488ffa7f9bc6f628a25a131
revision: 93424b91dcd97b0aff33ee43ab72cb9366a84193
branch: main
specs:
blacklight (8.0.0.alpha)
Expand All @@ -21,7 +21,7 @@ GIT
kaminari (>= 0.15)
ostruct (>= 0.3.2)
rails (>= 6.1, < 8)
view_component (~> 2.43)
view_component (~> 2.66)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -125,7 +125,7 @@ GEM
capistrano (~> 3.1)
capistrano-bundler (>= 1.1, < 3)
capistrano-shared_configs (0.2.2)
capybara (3.37.1)
capybara (3.38.0)
addressable
matrix
mini_mime (>= 0.1.3)
Expand Down Expand Up @@ -310,14 +310,14 @@ GEM
rsolr (2.5.0)
builder (>= 2.1.2)
faraday (>= 0.9, < 3, != 2.0.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.1)
rspec-core (3.12.0)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.2)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-support (~> 3.12.0)
rspec-rails (6.0.1)
actionpack (>= 6.1)
activesupport (>= 6.1)
Expand All @@ -326,8 +326,8 @@ GEM
rspec-expectations (~> 3.11)
rspec-mocks (~> 3.11)
rspec-support (~> 3.11)
rspec-support (3.11.1)
rubocop (1.37.1)
rspec-support (3.12.0)
rubocop (1.38.0)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.2.1)
Expand All @@ -339,17 +339,17 @@ GEM
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.23.0)
parser (>= 3.1.1.0)
rubocop-rails (2.17.1)
rubocop-rails (2.17.2)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-rspec (2.14.2)
rubocop-rspec (2.15.0)
rubocop (~> 1.33)
ruby-progressbar (1.11.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
scrub_rb (1.0.1)
selenium-webdriver (4.5.0)
selenium-webdriver (4.6.1)
childprocess (>= 0.5, < 5.0)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
Expand All @@ -365,7 +365,7 @@ GEM
sshkit (1.21.3)
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
stimulus-rails (1.1.0)
stimulus-rails (1.1.1)
railties (>= 6.0.0)
thor (1.2.1)
timeout (0.3.0)
Expand Down Expand Up @@ -395,7 +395,7 @@ GEM
unf_ext
unf_ext (0.0.8.2)
unicode-display_width (2.3.0)
view_component (2.74.1)
view_component (2.75.0)
activesupport (>= 5.0.0, < 8.0)
concurrent-ruby (~> 1.0)
method_source (~> 1.0)
Expand Down
2 changes: 2 additions & 0 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class CatalogController < ApplicationController # rubocop:disable Metrics/ClassL
include Arclight::Catalog

configure_blacklight do |config|
config.logo_link = 'https://library.stanford.edu/'

## Class for sending and receiving requests from a search index
# config.repository_class = Blacklight::Solr::Repository
#
Expand Down
2 changes: 1 addition & 1 deletion config/locales/blacklight.en.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
en:
blacklight:
application_name: 'Taube Archive of the International Military Tribunal (IMT) at Nuremberg (1945-1946)'
application_name: Virtual Tribunals
search:
facets:
title: Find items by…
5 changes: 5 additions & 0 deletions spec/requests/home_page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
it "is a custom page that introduces the project" do
get "/"
expect(response).to have_http_status(:ok)

# Header
expect(page).to have_link 'Virtual Tribunals', href: 'https://library.stanford.edu/'

# Main
expect(page).to have_text 'Content goes here'
end
end

0 comments on commit 2ffa60c

Please sign in to comment.