<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -44,6 +44,10 @@ class Rsvp &lt; ActiveRecord::Base
       event_date == Date.today
     end
     
+    def event_passed?
+      event_date &lt; Date.today
+    end
+    
   end
   
   </diff>
      <filename>app/models/rsvp.rb</filename>
    </modified>
    <modified>
      <diff>@@ -38,52 +38,53 @@
         = yield
       
       #content_right
-        #rsvp_stuff{:style =&gt; &quot;display:#{current_rsvp &amp;&amp; current_rsvp.reserved? ? 'none' : 'block'};&quot;}
-          .flash_alert{:style =&gt; &quot;display:#{Rsvp.open_seats? ? 'none' : 'block'};&quot;, :id =&gt; 'rsvp_flash_alert'}
-            All seats reserved! Use the RSVP form to be placed on the waiting list. Follow us on Twitter for updates.
-          #rsvp_button{:style =&gt; &quot;display:#{current_rsvp &amp;&amp; !current_rsvp.reserved? ? 'none' : 'block'};&quot;}
-          .flash_indif{:style =&gt; &quot;display:#{session[:rsvp_id] ? 'block' : 'none'};&quot;, :id =&gt; 'rsvp_flash_indif'}
-            Please verify your reservation by clicking the link contained in 
-            the email we sent to you at: &lt;strong id=&quot;your_rsvp_email&quot;&gt;
-            = current_rsvp.try(:email)
-            &lt;/strong&gt;
-            - if current_rsvp
-              %div{:class =&gt; 'mt5 right'}
-                = link_to '[remove message]', clear_rsvp_path(current_rsvp), :method =&gt; :put
-          #rsvp_text
-            ATTENDANCE IS FREE!&lt;br/&gt;
-            Space is limited to 
-            = Rsvp::MAX_SEATS
-            seats and&lt;br/&gt;
-            is first come, first served.&lt;br/&gt; 
-            RSVP now and reserve yours!
-          #rsvp_form{:style =&gt; 'display:none;'}
-            .flash_bad{:style =&gt; 'display:none;', :id =&gt; 'rsvp_flash_bad'}
-            - form_for @rsvp do |f|
-              %table.form_table
-                %tr
-                  %th Name
-                  %td= f.text_field :name
-                %tr
-                  %th Company
-                  %td= f.text_field :company
-                %tr
-                  %th Email
-                  %td= f.text_field :email
-                %tr
-                  %th Attendees
-                  %td= f.select :attendees, Rsvp::ATTENDEE_RANGE
-                %tr
-                  %th
-                  %td{:class =&gt; 'vmiddle_all'}
-                    = submit_tag 'RSVP Now', :id =&gt; 'rsvp_submit'
-                    %input{:type =&gt; 'button', :value =&gt; 'Cancel', :id =&gt; 'rsvp_cancel'}
-                    = image_tag '/images/layout/loading_invert.gif', :id =&gt; 'rsvp_loading', :style =&gt; 'display:none;'
-        
-        #schedule
-          %h5 Schedule
-          #schedule_date November 5th, 2009
-          = render_schedule(false)
+      
+        - unless Rsvp.event_passed?
+          #rsvp_stuff{:style =&gt; &quot;display:#{current_rsvp &amp;&amp; current_rsvp.reserved? ? 'none' : 'block'};&quot;}
+            .flash_alert{:style =&gt; &quot;display:#{Rsvp.open_seats? ? 'none' : 'block'};&quot;, :id =&gt; 'rsvp_flash_alert'}
+              All seats reserved! Use the RSVP form to be placed on the waiting list. Follow us on Twitter for updates.
+            #rsvp_button{:style =&gt; &quot;display:#{current_rsvp &amp;&amp; !current_rsvp.reserved? ? 'none' : 'block'};&quot;}
+            .flash_indif{:style =&gt; &quot;display:#{session[:rsvp_id] ? 'block' : 'none'};&quot;, :id =&gt; 'rsvp_flash_indif'}
+              Please verify your reservation by clicking the link contained in 
+              the email we sent to you at: &lt;strong id=&quot;your_rsvp_email&quot;&gt;
+              = current_rsvp.try(:email)
+              &lt;/strong&gt;
+              - if current_rsvp
+                %div{:class =&gt; 'mt5 right'}
+                  = link_to '[remove message]', clear_rsvp_path(current_rsvp), :method =&gt; :put
+            #rsvp_text
+              ATTENDANCE IS FREE!&lt;br/&gt;
+              Space is limited to 
+              = Rsvp::MAX_SEATS
+              seats and&lt;br/&gt;
+              is first come, first served.&lt;br/&gt; 
+              RSVP now and reserve yours!
+            #rsvp_form{:style =&gt; 'display:none;'}
+              .flash_bad{:style =&gt; 'display:none;', :id =&gt; 'rsvp_flash_bad'}
+              - form_for @rsvp do |f|
+                %table.form_table
+                  %tr
+                    %th Name
+                    %td= f.text_field :name
+                  %tr
+                    %th Company
+                    %td= f.text_field :company
+                  %tr
+                    %th Email
+                    %td= f.text_field :email
+                  %tr
+                    %th Attendees
+                    %td= f.select :attendees, Rsvp::ATTENDEE_RANGE
+                  %tr
+                    %th
+                    %td{:class =&gt; 'vmiddle_all'}
+                      = submit_tag 'RSVP Now', :id =&gt; 'rsvp_submit'
+                      %input{:type =&gt; 'button', :value =&gt; 'Cancel', :id =&gt; 'rsvp_cancel'}
+                      = image_tag '/images/layout/loading_invert.gif', :id =&gt; 'rsvp_loading', :style =&gt; 'display:none;'
+          #schedule
+            %h5 Schedule
+            #schedule_date November 5th, 2009
+            = render_schedule(false)
         
         #twitterfollow
           - link_to 'http://twitter.com/757studio' do</diff>
      <filename>app/views/layouts/application.html.haml</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>public/images/layout/follow_757studio_on_twitter.png</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,7 @@ class VisitorStoryTest &lt; ActionController::IntegrationTest
   
   def setup
     Rsvp.delete_all
+    Rsvp.stubs :event_passed? =&gt; false
   end
   
   should 'A basic user path' do</diff>
      <filename>test/integration/visitor_story_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e1ecbe35f1b89b4f2339df132c3698a4e01799e5</id>
    </parent>
  </parents>
  <author>
    <name>Ken Collins</name>
    <email>ken@metaskills.net</email>
  </author>
  <url>http://github.com/metaskills/757studio/commit/ee476af21a6d200f99c5ca9e906178f597292fe3</url>
  <id>ee476af21a6d200f99c5ca9e906178f597292fe3</id>
  <committed-date>2009-11-04T18:17:48-08:00</committed-date>
  <authored-date>2009-11-04T18:17:48-08:00</authored-date>
  <message>Remove RSVP stuff when event is passed.</message>
  <tree>9629a6fa98a8fd68391846698693b6e74ff86e62</tree>
  <committer>
    <name>Ken Collins</name>
    <email>ken@metaskills.net</email>
  </committer>
</commit>
