<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,4 +13,7 @@
 # Path to the burndown log file
 :log: /var/log/burndown.log
 
-:lighthouse_host: lighthouseapp.com
\ No newline at end of file
+:lighthouse_host: lighthouseapp.com
+
+# This disables all setup pages
+:demo_mode: false
\ No newline at end of file</diff>
      <filename>config/config.yml</filename>
    </modified>
    <modified>
      <diff>@@ -29,6 +29,8 @@ module Burndown
     elsif config.is_a?(Hash)
       self.config = config
     end
+    
+    self.config[:demo_mode] = ENV['DEMO_MODE'] || self.config[:demo_mode]
 
     DataMapper.setup(:default, ENV['DATABASE_URL'] || self.config[:database_uri])
     DataMapper.auto_upgrade!
@@ -39,6 +41,7 @@ module Burndown
                     :log               =&gt; STDOUT,
                     :base_uri          =&gt; &quot;http://localhost:8910&quot;,
                     :lighthouse_host   =&gt; &quot;lighthouseapp.com&quot;,
+                    :demo_mode         =&gt; false,
                     :log_debug_info    =&gt; false }
   end
 </diff>
      <filename>lib/burndown.rb</filename>
    </modified>
    <modified>
      <diff>@@ -37,6 +37,8 @@ module Burndown
     
     # Creates a new token (AJAX method)
     post &quot;/tokens&quot; do
+      return if Burndown.config[:demo_mode]
+      
       @token = Token.new(params[:token])
       @token.set_data
       if @token.save
@@ -47,6 +49,8 @@ module Burndown
     end
     
     post &quot;/projects&quot; do
+      return if Burndown.config[:demo_mode]
+      
       token = Token.get(params[:token_id])
       Project.activate_remote(params[:project_remote_id], token, request.host)
       redirect &quot;/setup&quot;</diff>
      <filename>lib/burndown/app.rb</filename>
    </modified>
    <modified>
      <diff>@@ -471,12 +471,12 @@ ul.form-actions button{
   background:#990000;
 }
 
-#token_form .message{
+.message{
   font-weight:bold;
   font-size:12px;
   color:#000;
 }
-#token_form .message.error{
+.message.error{
   color:#990000;
 }
 </diff>
      <filename>public/css/master.css</filename>
    </modified>
    <modified>
      <diff>@@ -2,63 +2,68 @@
 
 &lt;p class=&quot;overview&quot;&gt;Burndown works with &lt;a href=&quot;http://help.lighthouseapp.com/faqs/api/how-do-i-get-an-api-token&quot; target=&quot;_blank&quot;&gt;Lighthouse Tokens&lt;/a&gt; to set up your Burndown charts. You'll only need a read-only token to activate Burndown.&lt;/p&gt;
 
-&lt;div class=&quot;tab-group setup clearfix&quot;&gt;
-  &lt;ul class=&quot;tabs&quot;&gt;
-    &lt;% @tokens.each do |token| %&gt;
+
+&lt;% if Burndown.config[:demo_mode] %&gt;
+  &lt;p class=&quot;message error&quot;&gt;This installation is currently in demo mode, which means the setup page has been disabled.&lt;/p&gt;
+&lt;% else %&gt;
+  &lt;div class=&quot;tab-group setup clearfix&quot;&gt;
+    &lt;ul class=&quot;tabs&quot;&gt;
+      &lt;% @tokens.each do |token| %&gt;
+        &lt;li&gt;
+          &lt;a href=&quot;#token_&lt;%= &quot;#{token.account}_#{token.token}&quot; %&gt;&quot;&gt;&lt;%=h token.note %&gt; &lt;em&gt;&lt;%=h token.account %&gt;.lighthouseapp.com&lt;/em&gt;&lt;/a&gt;
+        &lt;/li&gt;
+      &lt;% end %&gt;
       &lt;li&gt;
-        &lt;a href=&quot;#token_&lt;%= &quot;#{token.account}_#{token.token}&quot; %&gt;&quot;&gt;&lt;%=h token.note %&gt; &lt;em&gt;&lt;%=h token.account %&gt;.lighthouseapp.com&lt;/em&gt;&lt;/a&gt;
+        &lt;a href=&quot;#new_token&quot;&gt;+ Add a token&lt;/a&gt;
       &lt;/li&gt;
-    &lt;% end %&gt;
-    &lt;li&gt;
-      &lt;a href=&quot;#new_token&quot;&gt;+ Add a token&lt;/a&gt;
-    &lt;/li&gt;
-  &lt;/ul&gt;
+    &lt;/ul&gt;
 
-  &lt;% @tokens.each do |token| %&gt;
-    &lt;div id=&quot;token_&lt;%= &quot;#{token.account}_#{token.token}&quot; %&gt;&quot; class=&quot;tab-content&quot;&gt;
-      &lt;div class=&quot;title&quot;&gt;
-        &lt;span class=&quot;accesslevel&quot;&gt;&lt;%= token.read_write %&gt;&lt;/span&gt;
-        &lt;h2&gt;&lt;%=h token.account %&gt;.&lt;%= Burndown.config[:lighthouse_host] %&gt;&lt;/h2&gt;
-        &lt;p&gt;&lt;%= token.token %&gt;&lt;/p&gt;
-      &lt;/div&gt;
-      
-      &lt;% Burndown::Project.for_token(token).each do |project| %&gt;
-        &lt;div class=&quot;project &lt;%= project.active? ? 'active' : 'inactive' %&gt;&quot;&gt;
-          &lt;span class=&quot;state&quot;&gt;
-            &lt;% if project.active? %&gt;
-              Active &amp;ndash; &lt;a href=&quot;#&quot;&gt;Deactivate&lt;/a&gt;
-            &lt;% else %&gt;
-              &lt;form action=&quot;/projects&quot; method=&quot;post&quot; id=&quot;activate_form_&lt;%= project.remote_id %&gt;_&lt;%= token.token %&gt;&quot;&gt;
-                &lt;input type=&quot;hidden&quot; name=&quot;project_remote_id&quot; value=&quot;&lt;%= project.remote_id %&gt;&quot; /&gt;
-                &lt;input type=&quot;hidden&quot; name=&quot;token_id&quot; value=&quot;&lt;%= token.id %&gt;&quot; /&gt;
-              &lt;/form&gt;
-              Inactive &amp;ndash; &lt;a href=&quot;#&quot; onclick=&quot;$('#activate_form_&lt;%= project.remote_id %&gt;_&lt;%= token.token %&gt;').submit(); return false&quot;&gt;Activate&lt;/a&gt;
-            &lt;% end %&gt;
-          &lt;/span&gt;
-          &lt;h3&gt;&lt;%=h project.name %&gt;&lt;/h3&gt;
+    &lt;% @tokens.each do |token| %&gt;
+      &lt;div id=&quot;token_&lt;%= &quot;#{token.account}_#{token.token}&quot; %&gt;&quot; class=&quot;tab-content&quot;&gt;
+        &lt;div class=&quot;title&quot;&gt;
+          &lt;span class=&quot;accesslevel&quot;&gt;&lt;%= token.read_write %&gt;&lt;/span&gt;
+          &lt;h2&gt;&lt;%=h token.account %&gt;.&lt;%= Burndown.config[:lighthouse_host] %&gt;&lt;/h2&gt;
+          &lt;p&gt;&lt;%= token.token %&gt;&lt;/p&gt;
         &lt;/div&gt;
-      &lt;% end %&gt;
-    &lt;/div&gt;&lt;!-- /.tab-content --&gt;
-  &lt;% end %&gt;
-  &lt;div id=&quot;new_token&quot; class=&quot;tab-content&quot;&gt;
-    &lt;div class=&quot;title&quot;&gt;
-      &lt;h2&gt;Add a new token&lt;/h2&gt;
-      &lt;p&gt;You can manage your Lighthouse tokens by clicking your name in the upper right, then bottom right sidebar.&lt;/p&gt;
-      &lt;div class=&quot;form&quot;&gt;
-        &lt;form action=&quot;/token&quot; method=&quot;post&quot; id=&quot;token_form&quot;&gt;
-          &lt;p class=&quot;message&quot; style=&quot;display:none&quot;&gt;&lt;/p&gt;
+      
+        &lt;% Burndown::Project.for_token(token).each do |project| %&gt;
+          &lt;div class=&quot;project &lt;%= project.active? ? 'active' : 'inactive' %&gt;&quot;&gt;
+            &lt;span class=&quot;state&quot;&gt;
+              &lt;% if project.active? %&gt;
+                Active &amp;ndash; &lt;a href=&quot;#&quot;&gt;Deactivate&lt;/a&gt;
+              &lt;% else %&gt;
+                &lt;form action=&quot;/projects&quot; method=&quot;post&quot; id=&quot;activate_form_&lt;%= project.remote_id %&gt;_&lt;%= token.token %&gt;&quot;&gt;
+                  &lt;input type=&quot;hidden&quot; name=&quot;project_remote_id&quot; value=&quot;&lt;%= project.remote_id %&gt;&quot; /&gt;
+                  &lt;input type=&quot;hidden&quot; name=&quot;token_id&quot; value=&quot;&lt;%= token.id %&gt;&quot; /&gt;
+                &lt;/form&gt;
+                Inactive &amp;ndash; &lt;a href=&quot;#&quot; onclick=&quot;$('#activate_form_&lt;%= project.remote_id %&gt;_&lt;%= token.token %&gt;').submit(); return false&quot;&gt;Activate&lt;/a&gt;
+              &lt;% end %&gt;
+            &lt;/span&gt;
+            &lt;h3&gt;&lt;%=h project.name %&gt;&lt;/h3&gt;
+          &lt;/div&gt;
+        &lt;% end %&gt;
+      &lt;/div&gt;&lt;!-- /.tab-content --&gt;
+    &lt;% end %&gt;
+    &lt;div id=&quot;new_token&quot; class=&quot;tab-content&quot;&gt;
+      &lt;div class=&quot;title&quot;&gt;
+        &lt;h2&gt;Add a new token&lt;/h2&gt;
+        &lt;p&gt;You can manage your Lighthouse tokens by clicking your name in the upper right, then bottom right sidebar.&lt;/p&gt;
+        &lt;div class=&quot;form&quot;&gt;
+          &lt;form action=&quot;/token&quot; method=&quot;post&quot; id=&quot;token_form&quot;&gt;
+            &lt;p class=&quot;message&quot; style=&quot;display:none&quot;&gt;&lt;/p&gt;
           
-          &lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;token[account]&quot; class=&quot;short&quot; placeholder=&quot;foo&quot; /&gt; .lighthouseapp.com&lt;/p&gt;
-          &lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;token[token]&quot; placeholder=&quot;Token&quot; /&gt;&lt;/p&gt;
-          &lt;ul class=&quot;form-actions&quot;&gt;
-            &lt;li&gt;&lt;button type=&quot;submit&quot;&gt;Check Token Validity&lt;/button&gt;&lt;/li&gt;
-          &lt;/ul&gt;
+            &lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;token[account]&quot; class=&quot;short&quot; placeholder=&quot;foo&quot; /&gt; .lighthouseapp.com&lt;/p&gt;
+            &lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;token[token]&quot; placeholder=&quot;Token&quot; /&gt;&lt;/p&gt;
+            &lt;ul class=&quot;form-actions&quot;&gt;
+              &lt;li&gt;&lt;button type=&quot;submit&quot;&gt;Check Token Validity&lt;/button&gt;&lt;/li&gt;
+            &lt;/ul&gt;
           
-          &lt;div class=&quot;loader&quot; style=&quot;display:none&quot;&gt;
-            Checking token validity...
-          &lt;/div&gt;
-        &lt;/form&gt;
+            &lt;div class=&quot;loader&quot; style=&quot;display:none&quot;&gt;
+              Checking token validity...
+            &lt;/div&gt;
+          &lt;/form&gt;
+        &lt;/div&gt;
       &lt;/div&gt;
     &lt;/div&gt;
-  &lt;/div&gt;
-&lt;/div&gt;&lt;!-- /.tab-group --&gt;
\ No newline at end of file
+  &lt;/div&gt;&lt;!-- /.tab-group --&gt;
+&lt;% end %&gt;
\ No newline at end of file</diff>
      <filename>views/setup.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>64b52a2bb097529fbfe26c76ea65c9062cb78a41</id>
    </parent>
  </parents>
  <author>
    <name>Kyle Neath</name>
    <email>kneath@gmail.com</email>
  </author>
  <url>http://github.com/kneath/lighthouse_burndown/commit/f47bc790b9abee7f19248cb7b7d4cd2f0cf6362e</url>
  <id>f47bc790b9abee7f19248cb7b7d4cd2f0cf6362e</id>
  <committed-date>2009-05-01T14:02:58-07:00</committed-date>
  <authored-date>2009-05-01T14:01:12-07:00</authored-date>
  <message>Add demo mode config option</message>
  <tree>4771142805d35ff1c2cb3656e2e33fed0ed3262c</tree>
  <committer>
    <name>Kyle Neath</name>
    <email>kneath@gmail.com</email>
  </committer>
</commit>
