<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>db/migrate/20091106042902_add_open_id_server_and_delegate_to_sites.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -17,4 +17,10 @@ module ApplicationHelper
   def admin_comment?(comment)
     return true if comment.email == website.owner_email
   end
+  
+  def open_id_meta_tags
+    return &quot;&quot; if website.open_id_server.blank? || website.open_id_delegate.blank?
+    &quot;&lt;link rel='openid.server' href='http://#{website.open_id_server}' /&gt;\n&quot; +
+      &quot;&lt;link rel='openid.delegate' href='http://#{website.open_id_delegate}' /&gt;&quot;
+  end
 end</diff>
      <filename>app/helpers/application_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 class Site &lt; ActiveRecord::Base
   attr_accessible :name, :tagline, :owner_name, :owner_email, :password, :password_confirmation, 
-  :flickr_username, :twitter_username, :google_analytics_code
+  :open_id_delegate, :open_id_server, :flickr_username, :twitter_username, :google_analytics_code
   validates_presence_of :name, :tagline, :owner_name
   validates_confirmation_of :password, :if =&gt; :perform_password_validation?
   validates_presence_of :password, :if =&gt; :perform_password_validation?</diff>
      <filename>app/models/site.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,6 +5,7 @@
     %meta{&quot;http-equiv&quot;=&gt;&quot;Content-Type&quot;, :content=&gt;&quot;text/html; charset=utf-8&quot;}/
     %meta{:name =&gt; &quot;description&quot;, :content =&gt; yield(:meta_description) || website.tagline }
     %meta{:name =&gt; &quot;keywords&quot;, :content =&gt; yield(:meta_keywords) || website.default_tags }
+    = open_id_meta_tags
     = stylesheet_link_tag 'reset', 'application', 'menu'
     = javascript_include_tag 'jquery-1.3.2.min', 'search_box', 'admin'
     = yield(:head)</diff>
      <filename>app/views/layouts/application.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -58,7 +58,17 @@
         = f.label :google_analytics_code, 'Google Analytics'
         %span= &quot;e.g. UA-14747133-1&quot;
         %br
-        = f.text_field :google_analytics_code
+        = f.text_field :open_id_server
+      %p
+        = f.label :open_id_server, 'Open ID server address'
+        %span= &quot;e.g. www.myopenid.com/server&quot;
+        %br
+        = f.text_field :open_id_server
+      %p
+        = f.label :open_id_delegate, 'Open ID delegate address'
+        %span= &quot;e.g. myaccount.myopenid.com/&quot;
+        %br
+        = f.text_field :open_id_delegate
     #password
       %p
         = f.label :password</diff>
      <filename>app/views/sites/_form.html.haml</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; 20091024220937) do
+ActiveRecord::Schema.define(:version =&gt; 20091106042902) do
 
   create_table &quot;articles&quot;, :force =&gt; true do |t|
     t.string   &quot;title&quot;
@@ -61,6 +61,8 @@ ActiveRecord::Schema.define(:version =&gt; 20091024220937) do
     t.string   &quot;flickr_username&quot;
     t.string   &quot;twitter_username&quot;
     t.string   &quot;google_analytics_code&quot;
+    t.string   &quot;open_id_server&quot;
+    t.string   &quot;open_id_delegate&quot;
   end
 
   create_table &quot;slugs&quot;, :force =&gt; true do |t|</diff>
      <filename>db/schema.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bfcdcb09f419c52eb2a04905ae21e639e941780a</id>
    </parent>
  </parents>
  <author>
    <name>Andy Atkinson</name>
    <email>andy@webandy.com</email>
  </author>
  <url>http://github.com/webandy/rehash/commit/1cece171ad3873e091f25fbecad54700b369ea4a</url>
  <id>1cece171ad3873e091f25fbecad54700b369ea4a</id>
  <committed-date>2009-11-05T21:28:40-08:00</committed-date>
  <authored-date>2009-11-05T21:28:40-08:00</authored-date>
  <message>migration for additional open id delegation fields on site model</message>
  <tree>5e04f906fcd59fd4bbbd8b902749bfc9916250e6</tree>
  <committer>
    <name>Andy Atkinson</name>
    <email>andy@webandy.com</email>
  </committer>
</commit>
