Sha256: 0388c4fbcbbcc6d811738eee0975380f35df80c2df924be6b425a21f65068d9f
Contents?: true
Size: 1.62 KB
Versions: 24
Compression:
Stored size: 1.62 KB
Contents
class Forge::IndexController < ForgeController def index @warnings = [] @warnings << "You haven't entered a title. <small><a href='/forge/settings'>[Correct This]</a></small>".html_safe if MySettings.site_title.blank? @warnings << "You haven't entered a URL. <small><a href='/forge/settings'>[Correct This]</a></small>".html_safe if MySettings.site_url.blank? @warnings << "You haven't entered an email address to receive contact messages. <small><a href='/forge/settings'>[Correct This]</a></small>".html_safe if MySettings.contact_email.blank? @warnings << "You haven't entered an email address from which to send contact messages and other site notices. <small><a href='/forge/settings'>[Correct This]</a></small>".html_safe if MySettings.from_email.blank? @warnings << "You haven't entered an email address from which to send dispatches. <small><a href='/forge/settings'>[Correct This]</a></small>".html_safe if MySettings.dispatch_email.blank? && @menu_items.include?("dispatches") @warnings << "You haven't entered the Google Analytics code. <small><a href='/forge/settings'>[Correct This]</a></small>".html_safe if MySettings.google_analytics.blank? @warnings << "You haven't entered an email address from which to send order receipts. <small><a href='/forge/settings'>[Correct This]</a></small>".html_safe if MySettings.receipt_email.blank? && @menu_items.include?("products") favicon = File.join(Rails.root, 'public', 'favicon.ico') @warnings << "You have not included a custom favicon." if !File.exist?(favicon) || File.read(favicon).size == 0 end end
Version data entries
24 entries across 24 versions & 1 rubygems