Sha256: 09d31525313d81e29bed39eea37cb2b9ffe69118eabac876a5d8c976ae3fae07
Contents?: true
Size: 1.8 KB
Versions: 6
Compression:
Stored size: 1.8 KB
Contents
require 'contour/engine' if defined?(Rails) require 'contour/fixes' require 'contour/version' module Contour # Default Application Name mattr_accessor :application_name @@application_name = 'Application Name' mattr_accessor :application_name_html @@application_name_html = nil # Default Application Version mattr_accessor :application_version @@application_version = nil # # Default Application Site URL # mattr_accessor :application_site_url # @@application_site_url = 'http://localhost' # Default Application Version mattr_accessor :header_background_image @@header_background_image = 'rails.png' # Default Application Version mattr_accessor :header_title_image @@header_title_image = nil # Default Menu Items mattr_accessor :menu_items @@menu_items = [ { name: 'Login', display: 'not_signed_in', path: 'new_user_session_path', position: 'right', condition: 'true', links: [{ name: 'Sign Up', path: 'new_user_registration_path' }] }, { name: 'current_user.name', eval: true, display: 'signed_in', position: 'right', condition: 'true', links: [{ html: '"<div class=\"small\" style=\"color:#bbb\">"+current_user.email+"</div>"', eval: true }, { name: 'Authentications', path: 'authentications_path', condition: 'not PROVIDERS.blank?' }, { html: "<br />" }, { name: 'Logout', path: 'destroy_user_session_path' }] }, { name: 'Home', display: 'always', path: 'root_path', position: 'left', condition: 'true', image: '', image_options: {}, links: [] } ] # Default news feed mattr_accessor :news_feed @@news_feed = nil # Default max number of items displayed in the news feed mattr_accessor :news_feed_items @@news_feed_items = 5 def self.setup yield self end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
contour-0.9.4 | lib/contour.rb |
contour-0.9.3 | lib/contour.rb |
contour-0.9.2 | lib/contour.rb |
contour-0.9.1 | lib/contour.rb |
contour-0.9.0 | lib/contour.rb |
contour-0.8.4 | lib/contour.rb |