Skip to content

Commit

Permalink
adds back header/footer helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
sdellis committed Oct 1, 2018
1 parent 92030a0 commit bae2aee
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,15 @@ module ApplicationHelper
def site_sidebar?
can?(:manage, Spotlight::Site.instance) || can?(:create, Spotlight::Exhibit)
end

# site_title pulls from the db if configured through the UI.
# otherwise use the val from the blacklight locale file.
# We need this because application_name helper changes to include exhibit titles
def header_title
site_title || t("blacklight.application_name")
end

def current_year
Date.today.year
end
end

0 comments on commit bae2aee

Please sign in to comment.