<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/controllers/comments_controller.rb</filename>
    </added>
    <added>
      <filename>app/helpers/comments_helper.rb</filename>
    </added>
    <added>
      <filename>app/helpers/gravatar_helper.rb</filename>
    </added>
    <added>
      <filename>app/views/shared/_comment.html.erb</filename>
    </added>
    <added>
      <filename>app/views/shared/_comment_form.html.erb</filename>
    </added>
    <added>
      <filename>app/views/shared/_comment_info_link.html.erb</filename>
    </added>
    <added>
      <filename>app/views/shared/_comments.html.erb</filename>
    </added>
    <added>
      <filename>db/migrate/20090125222830_create_comments.rb</filename>
    </added>
    <added>
      <filename>public/Song.mp3</filename>
    </added>
    <added>
      <filename>public/audioplayer.as</filename>
    </added>
    <added>
      <filename>public/audioplayer.fla</filename>
    </added>
    <added>
      <filename>public/audioplayer.swf</filename>
    </added>
    <added>
      <filename>public/example-01.html</filename>
    </added>
    <added>
      <filename>public/example-02.html</filename>
    </added>
    <added>
      <filename>public/expressInstall.swf</filename>
    </added>
    <added>
      <filename>public/javascripts/jquery.fdslider.js</filename>
    </added>
    <added>
      <filename>public/javascripts/jquery.mediaplayer.js</filename>
    </added>
    <added>
      <filename>public/playlist_item_songs/3/original/Song.mp3</filename>
    </added>
    <added>
      <filename>public/stylesheets/comments.css</filename>
    </added>
    <added>
      <filename>test/fixtures/comments.yml</filename>
    </added>
    <added>
      <filename>test/unit/comment_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/acts_as_commentable/.gitignore</filename>
    </added>
    <added>
      <filename>vendor/plugins/acts_as_commentable/CHANGELOG</filename>
    </added>
    <added>
      <filename>vendor/plugins/acts_as_commentable/MIT-LICENSE</filename>
    </added>
    <added>
      <filename>vendor/plugins/acts_as_commentable/OLD_README</filename>
    </added>
    <added>
      <filename>vendor/plugins/acts_as_commentable/README</filename>
    </added>
    <added>
      <filename>vendor/plugins/acts_as_commentable/Rakefile</filename>
    </added>
    <added>
      <filename>vendor/plugins/acts_as_commentable/acts_as_commentable.gemspec</filename>
    </added>
    <added>
      <filename>vendor/plugins/acts_as_commentable/init.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/acts_as_commentable/install.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/acts_as_commentable/lib/acts_as_commentable.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/acts_as_commentable/lib/comment.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/acts_as_commentable/tasks/acts_as_commentable_tasks.rake</filename>
    </added>
    <added>
      <filename>vendor/plugins/acts_as_commentable/test/acts_as_commentable_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/ansuz_plugin_media_player</filename>
    </added>
    <added>
      <filename>vendor/plugins/ansuz_taxonomy_system/init.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -22,6 +22,8 @@
 class Page &lt; ActiveRecord::Base
   include AASM
   include ActionView::Helpers::DateHelper
+  acts_as_commentable
+
   named_scope :visible, :conditions =&gt; [&quot;(expires_on &gt; ? OR expires_on IS NULL) AND published = ? AND (publish_at &lt;= ? OR publish_at IS NULL )&quot;, Time.now.getgm, true, Time.now.getgm]
   named_scope :self_and_siblings, lambda {|page| {:conditions =&gt; [&quot;parent_id = ?&quot;, page.parent_id], :order =&gt; 'page_order'}}
   named_scope :expired,      lambda {|p| { :conditions =&gt; [&quot;expires_on &lt; ?&quot;, Time.now.getgm] } }
@@ -177,7 +179,7 @@ class Page &lt; ActiveRecord::Base
   def self.find_page_by_path(path)
     #logger.error(&quot;==&gt; find_page_by_path: path = [ #{path.join(&quot;/&quot;)} ]&quot;)
     page = Page.root
-    return nil if Page.root.nil?
+    return nil if page.nil?
 
     # Not DRY. This piece of code handles multipage root
     return page.split_page! if path.length &lt; 1 or page.name == path[0]</diff>
      <filename>app/models/page.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,3 +2,5 @@
   &lt;h2&gt;&lt;%= @page.full_title %&gt;&lt;/h2&gt;
 &lt;% end %&gt;
 &lt;%= render :partial =&gt; 'content/page', :object =&gt; @page %&gt;
+&lt;%= show_comments_for(@page) %&gt;
+&lt;%= show_comment_form_for(@page, :return_path =&gt; @page.ancestor_path)  %&gt;</diff>
      <filename>app/views/content/page.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-  &lt;%= javascript_include_tag :defaults, 'effects', 'builder', 'lightbox', 'niftycube', 'handle_rounded_corners', 'jquery', 'jquery.scrollable.js', 'jquery.cycle.all.pack.js', 'fckeditor/fckeditor', 'jquery.jsgal.js', 'jquery.popeye-0.2.1.js' -%&gt;
+&lt;%= javascript_include_tag :defaults, 'effects', 'builder', 'lightbox', 'niftycube', 'handle_rounded_corners', 'jquery', 'jquery.scrollable.js', 'jquery.cycle.all.pack.js', 'fckeditor/fckeditor', 'jquery.jsgal.js', 'jquery.popeye-0.2.1.js' -%&gt;
 &lt;%= javascript_include_tag &quot;jquery.lightbox-0.5.js&quot;, &quot;jquery.lightbox.handler.js&quot; %&gt;
 &lt;%= javascript_tag &quot;jQuery.noConflict();&quot; -%&gt;
 &lt;%= javascript_include_tag 'jqModal', 'jquery.growl.js', 'ansuz/growls', 'jquery.feedreader.js', 'jquery.cycle.all.pack.js' -%&gt;</diff>
      <filename>app/views/shared/_javascripts.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -6,6 +6,7 @@
 &lt;%= stylesheet_link_tag 'jquery.lightbox-0.5.css' %&gt;
 &lt;%= stylesheet_link_tag 'jquery.popeye.css' %&gt;
 &lt;%= stylesheet_link_tag 'galimg' %&gt;
+&lt;%= stylesheet_link_tag 'comments' %&gt;
 &lt;style type='text/css'&gt;
   &lt;%= get_setting(:custom_css) %&gt;
 &lt;/style&gt;</diff>
      <filename>app/views/shared/_stylesheets.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -57,7 +57,7 @@ Rails::Initializer.run do |config|
   # Only load the plugins named here, in the order given. By default, all plugins 
   # in vendor/plugins are loaded in alphabetical order.
   # :all can be used as a placeholder for all plugins not explicitly named
-  config.plugins = [ :has_settings, :stringex, :userstamp, :all ]
+  config.plugins = [ :has_settings, :stringex, :userstamp, :paperclip, :all ]
 
   # Add additional load paths for your own custom dirs
   # config.load_paths += %W( #{RAILS_ROOT}/extras )</diff>
      <filename>config/environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,9 +15,11 @@ ActionController::Routing::Routes.draw do |map|
   map.from_plugin :ansuz_twitterati
   map.from_plugin :ansuz_database_dumper
   map.from_plugin :ansuz_user_system
+  map.from_plugin :ansuz_plugin_media_player
 
   map.resources :tags
   map.resources :users
+  map.resources :comments
 
   # &lt;admin routes&gt;
   map.namespace :admin do |admin|</diff>
      <filename>config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version =&gt; 20090114005523) do
+ActiveRecord::Schema.define(:version =&gt; 20090125222830) do
 
   create_table &quot;ansuz_themes&quot;, :force =&gt; true do |t|
     t.string   &quot;name&quot;
@@ -40,6 +40,17 @@ ActiveRecord::Schema.define(:version =&gt; 20090114005523) do
     t.integer  &quot;deleter_id&quot;
   end
 
+  create_table &quot;comments&quot;, :force =&gt; true do |t|
+    t.string   &quot;name&quot;
+    t.string   &quot;email&quot;
+    t.string   &quot;website&quot;
+    t.text     &quot;comments&quot;
+    t.string   &quot;commentable_type&quot;
+    t.integer  &quot;commentable_id&quot;
+    t.datetime &quot;created_at&quot;
+    t.datetime &quot;updated_at&quot;
+  end
+
   create_table &quot;content_section_versions&quot;, :force =&gt; true do |t|
     t.integer  &quot;content_section_id&quot;
     t.integer  &quot;version&quot;
@@ -124,6 +135,19 @@ ActiveRecord::Schema.define(:version =&gt; 20090114005523) do
     t.string  &quot;configurable_type&quot;
   end
 
+  create_table &quot;media_player_playlist_items&quot;, :force =&gt; true do |t|
+    t.integer &quot;media_player_id&quot;
+    t.string  &quot;playlist_item_song_file_name&quot;
+    t.string  &quot;playlist_item_song_content_type&quot;
+    t.integer &quot;playlist_item_song_file_size&quot;
+  end
+
+  add_index &quot;media_player_playlist_items&quot;, [&quot;media_player_id&quot;], :name =&gt; &quot;index_media_player_playlist_items_on_media_player_id&quot;
+
+  create_table &quot;media_players&quot;, :force =&gt; true do |t|
+    t.string &quot;name&quot;
+  end
+
   create_table &quot;menu_entries&quot;, :force =&gt; true do |t|
     t.string   &quot;name&quot;
     t.string   &quot;link&quot;
@@ -170,7 +194,6 @@ ActiveRecord::Schema.define(:version =&gt; 20090114005523) do
     t.string   &quot;name&quot;
     t.string   &quot;title&quot;
     t.string   &quot;full_title&quot;
-    t.string   &quot;status&quot;
     t.text     &quot;body&quot;
     t.datetime &quot;created_at&quot;
     t.datetime &quot;updated_at&quot;
@@ -181,6 +204,7 @@ ActiveRecord::Schema.define(:version =&gt; 20090114005523) do
     t.boolean  &quot;published&quot;,     :default =&gt; true
     t.boolean  &quot;linked&quot;,        :default =&gt; true
     t.boolean  &quot;show_sub_menu&quot;, :default =&gt; false
+    t.string   &quot;status&quot;
     t.datetime &quot;publish_at&quot;
     t.datetime &quot;expires_on&quot;
   end
@@ -203,6 +227,11 @@ ActiveRecord::Schema.define(:version =&gt; 20090114005523) do
     t.string &quot;display_type&quot;
   end
 
+  create_table &quot;plugin_schema_info&quot;, :id =&gt; false, :force =&gt; true do |t|
+    t.string  &quot;plugin_name&quot;
+    t.integer &quot;version&quot;
+  end
+
   create_table &quot;posts&quot;, :force =&gt; true do |t|
     t.integer  &quot;user_id&quot;
     t.integer  &quot;topic_id&quot;</diff>
      <filename>db/schema.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,7 @@ module Ansuz
       acts_as_taggable
       acts_as_url :title
       stampable
+      acts_as_commentable
 
       validates_uniqueness_of :url
 </diff>
      <filename>vendor/plugins/ansuz_blog/app/models/blog_post.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,8 @@
 &lt;div class='blog_post' id='&lt;%= dom_id(article) -%&gt;'&gt;
-  &lt;h2&gt;&lt;%=h article.title -%&gt;&lt;/h2&gt;
+  &lt;h2&gt;&lt;%= link_to(h(article.title), article_path(article)) -%&gt;&lt;/h2&gt;
   &lt;h3 class='supplemental'&gt;Posted on &lt;%= article.created_at.strftime(&quot;%B %e, %Y&quot;) %&gt; by &lt;%= article.creator.login %&gt;.&lt;/h3&gt;
   &lt;div class='contents'&gt;
     &lt;%= article.contents -%&gt;
   &lt;/div&gt;
+  &lt;%= show_comment_info_link_for(article, :path =&gt; article_path(article)) %&gt;
 &lt;/div&gt;</diff>
      <filename>vendor/plugins/ansuz_blog/app/views/articles/_article.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,7 @@
 &lt;%= render :partial =&gt; 'articles/article', :locals =&gt; { :article =&gt; @blog_post } %&gt;
+&lt;%= show_comments_for(@blog_post) %&gt;
+&lt;%= show_comment_form_for(@blog_post, :return_path =&gt; article_path(@blog_post))  %&gt;
+
 &lt;div class='post-blog-post'&gt;
   &lt;%= render_special &quot;post_blog_post&quot; %&gt;
 &lt;/div&gt;</diff>
      <filename>vendor/plugins/ansuz_blog/app/views/articles/show.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,5 @@
 # Include hook code here
 require 'blog_post'
-require 'blog_comment'
 Ansuz::PluginManagerInstance.register_plugin_nav('Blog', '/articles')
 Ansuz::PluginManagerInstance.register_admin_menu_entry('Manage', 'Blog Entries', '/admin/blog_posts')
 Ansuz::PluginManagerInstance.register_admin_menu_entry('Create', 'Blog Entry',  '/admin/blog_posts/new')</diff>
      <filename>vendor/plugins/ansuz_blog/init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,4 +2,3 @@ Ansuz::PluginManagerInstance.register_plugin(Ansuz::JAdams::ContentSection)
 Ansuz::PluginManagerInstance.add_gem_dependency(&quot;RedCloth&quot;,  :lib =&gt; &quot;redcloth&quot;)
 Ansuz::PluginManagerInstance.add_gem_dependency(&quot;BlueCloth&quot;, :lib =&gt; &quot;bluecloth&quot;)
 Ansuz::PluginManagerInstance.register_page_type(&quot;Content Page&quot;, [&quot;Ansuz::JAdams::ContentSection&quot;])
-</diff>
      <filename>vendor/plugins/ansuz_content_section/init.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>vendor/plugins/ansuz_blog/app/models/blog_comment.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>2d8cba977f1181ad12e52fb4ee30bfa45e9eda64</id>
    </parent>
  </parents>
  <author>
    <name>Josh Adams</name>
    <email>jadams@goro.(none)</email>
  </author>
  <url>http://github.com/knewter/ansuz/commit/5806857e00702b2880739b13cdd416ca5d26a8c7</url>
  <id>5806857e00702b2880739b13cdd416ca5d26a8c7</id>
  <committed-date>2009-01-25T15:32:16-08:00</committed-date>
  <authored-date>2009-01-25T15:32:16-08:00</authored-date>
  <message>added comments system, media player page plugin [won't work until rhulse's media-player works with jQuery.noConflict() though], and base [empty] taxonomy system plugin</message>
  <tree>f2b5971c8f8277843aa3244ed1e3d7008977c6d6</tree>
  <committer>
    <name>Josh Adams</name>
    <email>jadams@goro.(none)</email>
  </committer>
</commit>
