Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ PLATFORMS
aarch64-linux
arm64-darwin-22
x86_64-darwin-22
x86_64-darwin-24
x86_64-linux
x86_64-linux-musl

Expand Down
8 changes: 7 additions & 1 deletion app/views/layouts/blacklight/base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@
<div class="ucb_container">
<%= render partial: 'shared/header_navbar' %>
<main id="main-container" class="<%= container_classes %>" role="main" aria-label="<%= t('blacklight.main.aria.main_container') %>">
<%= content_for(:container_header) %>
<%= content_for(:container_header) || content_tag(:div, class: "sr-only visually-hidden") do
if render_page_title == "UC Berkeley GeoData"
content_tag(:h1, render_page_title) + content_tag(:h2, render_page_title + " Categories")
else
content_tag(:h1, render_page_title)
end
Comment on lines +50 to +54
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might have been slightly more efficient to do

                content_tag(:h1, render_page_title)
                content_tag(:h2, render_page_title + " Categories") if render_page_title == "UC Berkeley GeoData"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, but this won't work.

end %>
<%= render partial: 'shared/flash_msg', layout: 'shared/flash_messages' %>

<div class="row">
Expand Down