app/models/control_panel/welcome_page.rb
class ControlPanel::WelcomePage < ControlPanel::Entry
class << self
def name
_("Welcome Page")
end
def section
"design"
end
def icon
"image"
end
def priority
10
end
def url(profile)
{ controller: "profile_editor", action: "welcome_page" }
end
def display?(user, profile, context = {})
profile.is_template
end
end
end