Skip to main content

alternate_logo

alternate_logo is a hook that allows you to replace the default PSOM logo in the top left of the application page chrome. If you use this hook, you are in control of the full HTML element. Therefore, if you want it to be a link to the application root, you must do so yourself.

Be Forewarned: The standard logo is mandated by The Powers That Be. Be sure you have explicit permission from the school to change the 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 :alternate_logo

  def alternate_logo
    helpers.image_tag('stonecutters_logo.jpg',
                      alt: 'Who holds back the electric car? Who makes Steve Guttenberg a star?')
  end
end

Note: The above would expect to find a file: app/assets/images/stonecutters_logo.jpg.