<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>_attachments/channel.html</filename>
    </added>
    <added>
      <filename>helpers/md5.js</filename>
    </added>
    <added>
      <filename>helpers/template.js</filename>
    </added>
    <added>
      <filename>templates/example.html</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1,10 @@
-{}
\ No newline at end of file
+{
+  &quot;env&quot;: { 
+    &quot;default&quot;: {
+      &quot;db&quot;: &quot;http://localhost:5984/tdb&quot;
+    },
+    &quot;live&quot; : {
+       &quot;db&quot;:&quot;http://jchris:s,u4;pbr@jchrisa.net:5984/toast&quot;
+    }
+  }
+}
\ No newline at end of file</diff>
      <filename>.couchapprc</filename>
    </modified>
    <modified>
      <diff>@@ -7,10 +7,7 @@
   &lt;body&gt;
     &lt;h1&gt;Toast - Join a Channel (or Create one):&lt;/h1&gt;
     &lt;form id=&quot;new_channel&quot; action=&quot;#&quot;&gt;
-      
       &lt;p&gt;&lt;label for=&quot;name&quot;&gt;Channel Name&lt;/label&gt; &lt;input type=&quot;text&quot; name=&quot;name&quot; value=&quot;&quot; id=&quot;name&quot;&gt;&lt;/p&gt;
-      &lt;p&gt;&lt;label for=&quot;message&quot;&gt;Initial Message&lt;/label&gt; &lt;input type=&quot;text&quot; name=&quot;message&quot; value=&quot;&quot; id=&quot;message&quot;&gt;
-      &lt;/p&gt;
       &lt;p&gt;&lt;input type=&quot;submit&quot; value=&quot;Go &amp;rarr;&quot;&gt;&lt;/p&gt;
     &lt;/form&gt;
     &lt;ul id=&quot;channels&quot;&gt;&lt;/ul&gt;
@@ -30,9 +27,11 @@
       }});
       
       $(&quot;#new_channel&quot;).submit(function() {
-        var name = $('#name').val();
-        var message = $('#message').val();
-        app.db.saveDoc({channel:name,message:message});
+        var cname = $('#name').val();
+        // return false;
+        $('body').append('&lt;a href=&quot;channel.html#'+encodeURIComponent(cname)+'&quot;&gt;redirect&lt;/a&gt;');
+        var absurl = $('body a:last')[0].href;
+        document.location = absurl;
         return false;
       });
     });</diff>
      <filename>_attachments/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1,31 @@
-/* add styles here */
\ No newline at end of file
+/* add styles here */
+
+body {
+  font-family:optima;
+}
+
+ul#messages {
+  list-style: none;
+}
+
+.clear {
+  clear:both;
+}
+
+ul#messages li {
+  padding:4px;
+}
+
+ul#messages img.gravatar {
+  padding-right:4px;
+  float:left;
+}
+
+.say {
+  float:left;
+}
+
+form {
+  padding:10px;
+  background:#ddd;
+}
\ No newline at end of file</diff>
      <filename>_attachments/style/main.css</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 function(doc, req) {
-  // !code lib/helpers/template.js
-  // !json lib.templates
+  // !code helpers/template.js
+  // !json templates
   
   respondWith(req, {
     html : function() {</diff>
      <filename>shows/example-show.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,10 @@
-function(doc) {
-  if (doc.channel) {
-    emit([doc.channel, doc._local_seq], doc.message);
+function(m) {
+  // !code helpers/md5.js
+  if (m.channel &amp;&amp; m.message) {
+    var mess = m.message;
+    if (mess &amp;&amp; mess.author &amp;&amp; mess.author.email) {
+      mess.author.gravatar = hex_md5(mess.author.email);      
+    }
+    emit([m.channel, m._local_seq], mess);
   }
 };</diff>
      <filename>views/channels/map.js</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>lib/helpers/math.js</filename>
    </removed>
    <removed>
      <filename>lib/helpers/template.js</filename>
    </removed>
    <removed>
      <filename>lib/templates/example.html</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>e7bd2e2320763666081b933e145db1563d356b44</id>
    </parent>
  </parents>
  <author>
    <name>Chris Anderson</name>
    <email>jchris@grabb.it</email>
  </author>
  <url>http://github.com/jchris/toast/commit/d8371d2f79570ccd87dc593bc9a83ff159967bba</url>
  <id>d8371d2f79570ccd87dc593bc9a83ff159967bba</id>
  <committed-date>2009-05-23T11:56:24-07:00</committed-date>
  <authored-date>2009-05-23T11:56:24-07:00</authored-date>
  <message>chat works</message>
  <tree>77e369704394337077ab3017ae04a3e3a408d6dc</tree>
  <committer>
    <name>Chris Anderson</name>
    <email>jchris@grabb.it</email>
  </committer>
</commit>
