<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,6 +5,10 @@ class Cook &lt; ActiveRecord::Base
 
   validates_presence_of :stoker_id, :name, :start_time
   
+  def self.active
+    find(:all, :conditions =&gt; [&quot;start_time &lt;= ? AND (end_time &gt;= ? OR end_time IS NULL)&quot;, Time.now, Time.now])
+  end
+  
   def running?
     (self.start_time &lt;= Time.now) &amp;&amp; ((self.end_time.to_s == &quot;&quot;) || (self.end_time &gt; Time.now))
   end</diff>
      <filename>web/app/models/cook.rb</filename>
    </modified>
    <modified>
      <diff>@@ -45,6 +45,13 @@
       &lt;% end -%&gt;
     &lt;% end -%&gt;
 
+    &lt;% if Cook.active.size &gt; 0 -%&gt;
+      &lt;div id=&quot;message&quot; class=&quot;alert&quot;&gt;
+        Active Cooks:
+        &lt;%= Cook.active.collect{|cook| link_to cook.name, cook }.join(&quot;, &quot;) %&gt;
+      &lt;/div&gt;
+    &lt;% end -%&gt;
+    
     &lt;div id=&quot;content&quot;&gt;
       &lt;%= yield  %&gt;
     &lt;/div&gt;</diff>
      <filename>web/app/views/layouts/application.html.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>65fc29da5faf193b127bcb614aa5cbf7adca9475</id>
    </parent>
  </parents>
  <author>
    <name>Tony Buser</name>
    <email>tbuser@gmail.com</email>
  </author>
  <url>http://github.com/tbuser/stoker/commit/7d1c6e12425febb333b015db4e94a8a4f146ac8d</url>
  <id>7d1c6e12425febb333b015db4e94a8a4f146ac8d</id>
  <committed-date>2008-07-01T08:51:38-07:00</committed-date>
  <authored-date>2008-07-01T08:51:38-07:00</authored-date>
  <message>added links to the top of the page for any active cooks as a shortcut</message>
  <tree>c3a7656703027130103fdf61c473c09af486b92c</tree>
  <committer>
    <name>Tony Buser</name>
    <email>tbuser@gmail.com</email>
  </committer>
</commit>
