Module: MuckAdminHelper

Defined in:
app/helpers/muck_admin_helper.rb

Instance Method Summary collapse

Instance Method Details

#header_nav_item_image(header_nav_item) ⇒ Object



7
8
9
10
11
# File 'app/helpers/muck_admin_helper.rb', line 7

def header_nav_item_image(header_nav_item)
  if !header_nav_item.image.blank?
    style="background-image:url('#{header_nav_item.image}');"
  end
end

#hide_admin_messagesObject

Generates a string that will hide admin messages.



14
15
16
# File 'app/helpers/muck_admin_helper.rb', line 14

def hide_admin_messages
  "jQuery('#admin-messages').hide();"
end


3
4
5
# File 'app/helpers/muck_admin_helper.rb', line 3

def sub_navigation
  render :partial => @sub_navigation_path if @sub_navigation_path
end