Module: MuckAdminHelper
- Defined in:
- app/helpers/muck_admin_helper.rb
Instance Method Summary collapse
- #header_nav_item_image(header_nav_item) ⇒ Object
-
#hide_admin_messages ⇒ Object
Generates a string that will hide admin messages.
- #sub_navigation ⇒ Object
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_messages ⇒ Object
Generates a string that will hide admin messages.
14 15 16 |
# File 'app/helpers/muck_admin_helper.rb', line 14 def "jQuery('#admin-messages').hide();" end |
#sub_navigation ⇒ Object
3 4 5 |
# File 'app/helpers/muck_admin_helper.rb', line 3 def render :partial => @sub_navigation_path if @sub_navigation_path end |