<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/views/categories/_list.html.haml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,6 @@
 class Categories &lt; Application
   before :ensure_authenticated, :exclude =&gt; [:index, :show]
-  # provides :xml, :yaml, :js
+  provides :xml, :yaml, :js
   before :get_group
 
   def index
@@ -11,7 +11,7 @@ class Categories &lt; Application
   def show(id)
     @category = Category.get(id)
     raise NotFound unless @category
-    display @category
+    display @category, :layout =&gt; (request.xhr? ? false : nil)
   end
 
   def new</diff>
      <filename>app/controllers/categories.rb</filename>
    </modified>
    <modified>
      <diff>@@ -62,6 +62,14 @@ acronym
       :color black
       :line-height 1em
       
+      ul.cat_container
+        li.column
+          :width 400px
+          :list-style none
+          :float left
+          :padding 5px
+          :overflow auto
+      
       div.details
         :font-style italic
         :font-size 0.65em</diff>
      <filename>app/stylesheets/master.sass</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,6 @@
 %h1== Categories for #{h @group.name}
 
-%ul.categories
-  - for category in @categories
-    %li
-      = link_to h(category.name), resource(@group, category)
-      = link_to 'Edit', resource(@group,  category, :edit)
+= partial :list, :categories =&gt; @categories
 
 %p
   = link_to 'New', resource(@group, :categories, :new)</diff>
      <filename>app/views/categories/index.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,19 @@
 %h1&amp;= @group.name
 
+%div
+  %ul.cat_container
+    %li.column= partial 'categories/list', :categories =&gt; @group.categories
+
+%p{:style =&gt; 'clear: both'}
+- if session.authenticated?
+  - if @group.users.include? session.user
+    = form_for(@group, :action =&gt; resource(@group, :leave), :method =&gt; :put) do
+      = submit 'Leave this group :('
+  - else
+    = form_for(@group, :action =&gt; resource(@group, :join), :method =&gt; :put) do
+      = submit 'Join this group :)'
+
+
 %p
   %b
     Members
@@ -9,15 +23,6 @@
         = link_to h(user.login), resource(user)
         = '*' if user == @group.leader
 
-%p= link_to 'Categories', resource(@group, :categories)
-
-- if session.authenticated?
-  - if @group.users.include? session.user
-    = form_for(@group, :action =&gt; resource(@group, :leave), :method =&gt; :put) do
-      = submit 'Leave this group :('
-  - else
-    = form_for(@group, :action =&gt; resource(@group, :join), :method =&gt; :put) do
-      = submit 'Join this group :)'
 
 = link_to 'Edit',  resource(@group, :edit)
 |</diff>
      <filename>app/views/groups/show.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1,16 @@
-// Common JavaScript code across your application goes here.
\ No newline at end of file
+$(document).ready(function() {
+  $(&quot;ul.cat_container ul.categories a&quot;).click(function(e) {
+    if ($(this).parents(&quot;li.column&quot;).children(&quot;p&quot;).children(&quot;a.pin&quot;).hasClass(&quot;on&quot;)) {
+      e.preventDefault();
+      indicator = '&lt;li class=&quot;column&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;pin&quot;&gt;pin&lt;/a&gt;&lt;/li&gt;';
+      link = this;
+      $.get(this.href, function(html) {
+        $(link).parents(&quot;ul.cat_container&quot;).after(html);
+      });
+    }
+  });
+  $(&quot;ul.cat_container a.pin&quot;).click(function(e) {
+    $(this).toggleClass(&quot;on&quot;);
+    $(this).html($(this).hasClass(&quot;on&quot;) ? &quot;unpin&quot; : &quot;pin&quot;);
+  });
+});
\ No newline at end of file</diff>
      <filename>public/javascripts/groupthink.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3d250988a0d993b99d1c8a0dc6c7dc74e400a2bf</id>
    </parent>
  </parents>
  <author>
    <name>Liam Morley</name>
    <email>liam@carpeliam.com</email>
  </author>
  <url>http://github.com/carpeliam/groupthink/commit/bef4d06404417db17dd47ecb4c059a78d6059831</url>
  <id>bef4d06404417db17dd47ecb4c059a78d6059831</id>
  <committed-date>2008-12-26T00:31:44-08:00</committed-date>
  <authored-date>2008-12-26T00:31:44-08:00</authored-date>
  <message>beginnings of jquery craziness</message>
  <tree>cb78668a69739bd83734e06c84032df691b99b7d</tree>
  <committer>
    <name>Liam Morley</name>
    <email>liam@carpeliam.com</email>
  </committer>
</commit>
