<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>config/initializers/date_formats.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,6 @@
 class Topic &lt; ActiveRecord::Base
   belongs_to :meeting
+  
+  validates_presence_of :title
+  validates_presence_of :description
 end</diff>
      <filename>app/models/topic.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,6 +10,7 @@
     =# Using jRails plugin
     = javascript_include_tag :defaults
     = yield :head
+    = yield :unobtrusive_javascript
   %body
     #main
       %div.wrapper</diff>
      <filename>app/views/layouts/application.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,7 @@
 %li
-  = link_to topic.title, topic.link
+  - if topic.link.blank?
+    = topic.title
+  - else
+    = link_to topic.title, topic.link
   \-
   = topic.description
\ No newline at end of file</diff>
      <filename>app/views/meetings/_topic.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,67 +1,69 @@
+- content_for :unobtrusive_javascript do
+  :javascript
+    $(document).ready(function(){
+      $(&quot;#add_topic&quot;).hide();    
+      $(&quot;a#new_topic&quot;).toggle(function(){
+        $(&quot;#add_topic&quot;).show('slow');
+        $(&quot;a#new_topic&quot;).text('Cancel');
+      },function(){
+        $(&quot;#add_topic&quot;).hide('slow');
+        $(&quot;a#new_topic&quot;).text('Add new topic');
+      });
+    });
+
 = flash[:notice]
 
+%h2 Meeting Details
+
 %p
   %strong Date:
-  =h @meeting.date
+  =h @meeting.date.to_s(:day_date)
 
 %p
+  %strong Time:
+  =h @meeting.date.to_s(:am_pm).downcase
+%p
   %strong Venue:
   =h @meeting.venue
   
 %p
   %strong Topics:
-%ul
-
-= link_to 'Create new topic', new_topic_path
-
-%p
-  %strong Attendees:
-%ul{ :style =&gt; 'list-style:none; padding-left: 0' }
-  - for person in @meeting.attendees
-    %li.peep
-      = image_tag(person.gravatar_url(:size =&gt; 32), :alt =&gt; person.name, :valign =&gt; 'middle')
-      = person.name
-      
-= link_to 'Edit', edit_meeting_path(@meeting)
-|
-= link_to 'Back', meetings_path
-
 %ul#topic_list
   = render :partial =&gt; 'topic', :collection =&gt; Topic.all
 
-%a#new_topic Add new topic
-:javascript
-  $(document).ready(function(){
-    $(&quot;#add_topic&quot;).hide();    
-    $(&quot;a#new_topic&quot;).toggle(function(){
-      $(&quot;#add_topic&quot;).show('slow');
-    },function(){
-      $(&quot;#add_topic&quot;).hide('slow');
-    });
-  });
+= link_to 'Add new topic', new_topic_path, :id =&gt; &quot;new_topic&quot;
 
 #add_topic
-  %h1 Editing topic
-
+  %h3 Add a topic
+  -# TODO: should do this as unobtrusive
   - form_remote_for :topic, :url =&gt; topics_path, :html =&gt; { :id =&gt; 'topic_form' } do |f|
     = f.error_messages
 
     %p
       = f.label :title
-      %br
       = f.text_field :title
 
     %p
       = f.label :description
-      %br
-      = f.text_area :description
+      = f.text_field :description
 
     %p
       = f.label :link
-      %br
       = f.text_field :link
 
     = f.hidden_field :meeting_id, :value =&gt; @meeting.id
 
     %p
-      = f.submit &quot;Update&quot;
\ No newline at end of file
+      = f.submit &quot;Update&quot;
+
+%p
+  %strong Attendees:
+%ul{ :style =&gt; 'list-style:none; padding-left: 0' }
+  - for person in @meeting.attendees
+    %li.peep
+      = image_tag(person.gravatar_url(:size =&gt; 32), :alt =&gt; person.name, :valign =&gt; 'middle')
+      = person.name
+      
+= link_to 'Edit', edit_meeting_path(@meeting)
+|
+= link_to 'Back', meetings_path
\ No newline at end of file</diff>
      <filename>app/views/meetings/show.html.haml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>73b80e3578ae1f2a203dfec41478e1f3a96b49f0</id>
    </parent>
  </parents>
  <author>
    <name>Michael MacDonald</name>
    <email>michaelm@amc.org.au</email>
  </author>
  <url>http://github.com/artpop/crc_site/commit/df6c13e0467972927abf7219b16399ab7ffba02e</url>
  <id>df6c13e0467972927abf7219b16399ab7ffba02e</id>
  <committed-date>2008-10-25T07:02:15-07:00</committed-date>
  <authored-date>2008-10-25T07:02:15-07:00</authored-date>
  <message>added two extra date formats, moved ajax toggle to head, added in toggling of link label text, fixed display of topics without a link</message>
  <tree>fc366147e7bddf360489b63712d02256aee5fda7</tree>
  <committer>
    <name>Michael MacDonald</name>
    <email>michaelm@amc.org.au</email>
  </committer>
</commit>
