Permalink
Browse files

Added config example to the initializer. Got javscript includes working.

  • Loading branch information...
1 parent ce25ac2 commit fec2dd42b19ed6837de8f4f134b15b2a8f7e4d27 Alan Johnson committed May 16, 2009
@@ -58,5 +58,7 @@
</div>
<% end %>
</div>
+
+ <%= javascript_include_tag ControlCenter::Config.include_javascript %>
</body>
</html>
@@ -2,4 +2,13 @@
# preferences
ControlCenter::Config.app_title = "Control Center"
-ControlCenter::Config.theme_color = "#0033CC"
+ControlCenter::Config.theme_color = "#0033CC"
+
+# Custom Stylesheets
+# ControlCenter::Config.custom_css = {
+# "custom_css_1" => { :media => :all },
+# "custom_css_2" => { :media => :print }
+# }
+
+# Custom JavaScript Includes
+#ControlCenter::Config.include_javascript = %w(:defaults)
View
@@ -3,9 +3,14 @@ class Config
cattr_accessor :app_title
cattr_accessor :theme_color
cattr_accessor :custom_css
+ cattr_accessor :include_javascript
def self.custom_css
@@custom_css ||= {}
end
+
+ def self.include_javascript
+ @@include_javascript || []
+ end
end
end

0 comments on commit fec2dd4

Please sign in to comment.