secondary_logo
secondary_logo
is a hook that allows you to place a small image in the page chrome header, between the PSOM logo and the application_title
. This image is a link to the app's root_path
, as with the PSOM logo.
This is a Standard (3-Option) Hook, which can be set as normal.
Here is an example of setting the image in the Application Controller:
# app/controllers/application_controller.rb class ApplicationController < PmacsAppResources::BaseController helper_method :secondary_logo def secondary_logo helpers.image_tag('eye_of_sauron.jpg', alt: 'The mighty eye of a great leader') end end
Note: The above would expect to find a file: app/assets/images/eye_of_sauron.jpg
.