<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/helpers/admin/blog_helper.rb</filename>
    </added>
    <added>
      <filename>app/views/admin/dashboard/_new_page_link.html.haml</filename>
    </added>
    <added>
      <filename>app/views/admin/users/_blog_details.html.haml</filename>
    </added>
    <added>
      <filename>db/migrate/002_add_users_blog_location.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -11,13 +11,22 @@ class BlogExtension &lt; Radiant::Extension
   # end
   
   def activate
-    Page.send :include, AuthorTags
-    Page.send :include, SiblingTags
-    User.class_eval {
-      has_many :pages, :foreign_key =&gt; :created_by_id unless self.respond_to?(:pages)
-    }
-    
-    admin.user.edit.add :form, 'bio', :after =&gt; 'edit_notes'
+    if Page.table_exists? #allow bootstrapping
+      Page.send :include, AuthorTags
+      Page.send :include, SiblingTags
+      User.class_eval {
+        has_many :pages, :foreign_key =&gt; :created_by_id unless self.respond_to?(:pages)
+      }
+      Radiant::Config['blog.location.configurable?'] = false unless Radiant::Config['blog.location.configurable?'] == true
+      Radiant::Config['blog.location.default'] = '' unless not Radiant::Config['blog.location.default'].blank?
+      admin.user.edit.add :form, 'blog_details', :after =&gt; 'edit_notes'
+      if admin.respond_to?(:dashboard)
+        admin.dashboard.index.add :current_user_draft_pages_bottom, 'new_page_link'
+        Admin::DashboardController.class_eval{
+          helper Admin::BlogHelper
+        }
+      end
+    end
   end
   
   def deactivate</diff>
      <filename>blog_extension.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>app/views/admin/users/_bio.html.haml</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>6c6d7758e81d73fecc80234ba4360a427d6a2473</id>
    </parent>
  </parents>
  <author>
    <name>Jim Gay</name>
    <email>jim@saturnflyer.com</email>
  </author>
  <url>http://github.com/saturnflyer/radiant-blog-extension/commit/f7eada1cdc3fc7d6c50744e36bbf2fa90cfb94b9</url>
  <id>f7eada1cdc3fc7d6c50744e36bbf2fa90cfb94b9</id>
  <committed-date>2009-04-02T08:28:39-07:00</committed-date>
  <authored-date>2009-04-02T08:28:39-07:00</authored-date>
  <message>configurable home location for blog posts when dashboard is installed</message>
  <tree>118911a3addfa7cc4d989a71ebe90d4216c0ff1f</tree>
  <committer>
    <name>Jim Gay</name>
    <email>jim@saturnflyer.com</email>
  </committer>
</commit>
