Sha256: 0a460e396bb081f4d125374c12becf70d9a83b83ba58531fd1188ce7ff0436b2
Contents?: true
Size: 749 Bytes
Versions: 1
Compression:
Stored size: 749 Bytes
Contents
module Sunrise module ApplicationHelper def manage_icon(image, options = {}) options = { :alt => t(image, :scope => 'manage.icons'), :title => t(image, :scope => 'manage.icons') }.merge(options) image_tag("sunrise/ico_#{image}.gif", options) end def render_header(options={}) action ||= controller.action_name partials = options[:partials] || [] partials << "sunrise/#{controller.controller_name}/header_#{action}" partials << "sunrise/#{controller.controller_name}/header" partials << "sunrise/shared/header" partials.each do |pname| return render(:partial => pname) if lookup_context.exists?(pname, [], true) end return '' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sunrise-cms-0.3.0.rc | app/helpers/sunrise/application_helper.rb |