<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,13 +1,5 @@
 class ApplicationController &lt; ActionController::Base
   protect_from_forgery
-  before_filter :init
-
-  protected
-  def init
-    @title = &quot;p0t&quot;
-    @description = &quot;&#12460;&#12481;&#39729;&#12503;&#12525;&#12464;&#12521;&#12510;&#12540;&#26085;&#35352;&quot;
-    @keywords = '&#39729;,Ruby,PHP,Rails'
-  end
 
   def authenticate
     authenticate_or_request_with_http_basic do |username, password|</diff>
      <filename>app/controllers/application_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -41,7 +41,8 @@ class DocsController &lt; ApplicationController
   # GET /docs/new
   # GET /docs/new.xml
   def new
-    @doc = Doc.new
+    time = Time.new
+    @doc = Doc.new(:created_at =&gt; time, :updated_at =&gt; time)
 
     respond_to do |format|
       format.html # new.html.erb
@@ -62,7 +63,7 @@ class DocsController &lt; ApplicationController
     respond_to do |format|
       if @doc.save
         flash[:notice] = t('Doc was successfully created.')
-        format.html { redirect_to(@doc) }
+        format.html { redirect_to doc_path(@doc) }
         format.xml  { render :xml =&gt; @doc, :status =&gt; :created, :location =&gt; @doc }
       else
         format.html { render :action =&gt; 'new' }
@@ -79,7 +80,7 @@ class DocsController &lt; ApplicationController
     respond_to do |format|
       if @doc.update_attributes(params[:doc])
         flash[:notice] = t('Doc was successfully updated.')
-        format.html { redirect_to(@doc) }
+        format.html { redirect_to doc_path(@doc) }
         format.xml  { head :ok }
       else
         format.html { render :action =&gt; 'edit' }
@@ -93,7 +94,7 @@ class DocsController &lt; ApplicationController
     @doc.destroy
 
     respond_to do |format|
-      format.html { redirect_to(docs_url) }
+      format.html { redirect_to docs_path }
       format.xml  { head :ok }
     end
   end</diff>
      <filename>app/controllers/docs_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,3 @@
+- title &quot;Edit Doc - #{Application::TITLE}&quot;
 .doc
   = render :partial =&gt; &quot;form&quot;, :locals =&gt; {:submit_label =&gt; &quot;Update&quot;}</diff>
      <filename>app/views/docs/edit.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ atom_feed(
   'xmlns:app' =&gt; 'http://www.w3.org/2007/app',
   'xmlns:openSearch' =&gt; 'http://a9.com/-/spec/opensearch/1.1/'
 ) do |feed|
-  feed.title(&quot;p0t&quot;)
+  feed.title(Application::TITLE)
   feed.updated(@docs.first.updated_at)
 
   @docs.each do |d|
@@ -11,7 +11,7 @@ atom_feed(
       entry.title(d.title)
       entry.content(d.body.to_s, :type =&gt; &quot;html&quot;)
       entry.author do |a|
-        a.name(&quot;komagata&quot;)
+        a.name(Application::AUTHOR)
       end
     end
   end</diff>
      <filename>app/views/docs/index.atom.builder</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
 &quot;id&quot;,&quot;title&quot;,&quot;body&quot;,&quot;created_at&quot;,&quot;updated_at&quot;
 &lt;%- for doc in @docs -%&gt;
-&quot;&lt;%= doc.id %&gt;&quot;,&quot;&lt;%= doc.title.gsub(/&quot;/, '&quot;&quot;') %&gt;&quot;,&quot;&lt;%= textilize doc.body.gsub(/&quot;/, '&quot;&quot;') %&gt;&quot;,&quot;&lt;%= doc.created_at.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;) %&gt;&quot;,&quot;&lt;%= doc.updated_at.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;) %&gt;&quot;
+&quot;&lt;%= doc.id %&gt;&quot;,&quot;&lt;%= doc.title.gsub(/&quot;/, '&quot;&quot;') %&gt;&quot;,&quot;&lt;%= doc.body.gsub(/&quot;/, '&quot;&quot;') %&gt;&quot;,&quot;&lt;%= doc.created_at.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;) %&gt;&quot;,&quot;&lt;%= doc.updated_at.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;) %&gt;&quot;
 &lt;%- end -%&gt;</diff>
      <filename>app/views/docs/index.csv.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-- title params[:q].present? ? &quot;#{params[:q]} - p0t&quot; : &quot;p0t&quot;
+- title &quot;#{params[:q]} - #{Application::TITLE}&quot; if params[:q].present?
 .docs.autopagerize_page_element
   = render :partial =&gt; &quot;doc&quot;, :collection =&gt; @docs
   = paginate @docs</diff>
      <filename>app/views/docs/index.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,3 @@
+- title &quot;New Doc - #{Application::TITLE}&quot;
 .doc
   = render :partial =&gt; &quot;form&quot;, :locals =&gt; {:submit_label =&gt; &quot;Create&quot;}</diff>
      <filename>app/views/docs/new.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-- title @doc.title.present? ? &quot;#{@doc.title} - p0t&quot; : &quot;p0t&quot;
+- title &quot;#{@doc.title} - #{Application::TITLE}&quot; if @doc.title.present?
 = render :partial =&gt; 'doc', :locals =&gt; {:doc =&gt; @doc}
 #comment-plnet
 %script{:type =&gt; &quot;text/javascript&quot;, :src =&gt; &quot;http://comments.komagata.org/widgets/comments_and_form.js&quot;}</diff>
      <filename>app/views/docs/show.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+- title_content = yield :title
+- head_content = yield :head
 !!! XML
 !!!
 %html{:xmlns =&gt; &quot;http://www.w3.org/1999/xhtml&quot;, &quot;xml:lang&quot; =&gt; &quot;ja&quot;, :lang =&gt; &quot;ja&quot;}
@@ -5,22 +7,23 @@
     %meta{&quot;http-equiv&quot; =&gt; &quot;Content-Type&quot;, &quot;content&quot; =&gt; &quot;text/html; charset=utf-8&quot;}
     %meta{&quot;http-equiv&quot; =&gt; &quot;Content-Style-Type&quot;, &quot;content&quot; =&gt; &quot;text/css&quot;}
     %meta{&quot;http-equiv&quot; =&gt; &quot;Content-Script-Type&quot;, &quot;content&quot; =&gt; &quot;text/javascript&quot;}
-    %meta{&quot;name&quot; =&gt; &quot;description&quot;, &quot;content&quot; =&gt; @description}
-    %meta{&quot;name&quot; =&gt; &quot;keywords&quot;, &quot;content&quot; =&gt; @keywords}
-    %title= @title
-    = auto_discovery_link_tag :atom, &quot;/index.atom&quot;, {:title =&gt; @title}
+    %meta{&quot;name&quot; =&gt; &quot;verify-v1&quot;, &quot;content&quot; =&gt; &quot;+V1YA6UjlGAm1pJpxJFrPARQPzw8KexXsbdbJYcjRZw=&quot;}
+    %meta{&quot;name&quot; =&gt; &quot;y_key&quot;, &quot;content&quot; =&gt; &quot;82ad872ae8a41dc8&quot;}
+    %meta{&quot;name&quot; =&gt; &quot;description&quot;, &quot;content&quot; =&gt; Application::DESCRIPTION}
+    %meta{&quot;name&quot; =&gt; &quot;keywords&quot;, &quot;content&quot; =&gt; Application::KEYWORDS}
+    %title= title_content || Application::TITLE
+    = auto_discovery_link_tag :atom, &quot;/index.atom&quot;, {:title =&gt; Application::TITLE}
     - if params[:query].present?
-      = auto_discovery_link_tag :atom, find_doc_url(:q =&gt; params[:q], :format =&gt; &quot;atom&quot;), {:title =&gt; @title}
+      = auto_discovery_link_tag :atom, find_doc_url(:q =&gt; params[:q], :format =&gt; &quot;atom&quot;), {:title =&gt; Application::TITLE}
     %link{:href =&gt; &quot;/favicon.ico&quot;, :rel =&gt; &quot;shortcut icon&quot;}
-    %link{:href =&gt; &quot;/sitemap.xml&quot;, :rel =&gt; &quot;alternate&quot;, :title =&gt; @title, :type =&gt; &quot;application/rss+xml&quot;}
+    %link{:href =&gt; &quot;/sitemap.xml&quot;, :rel =&gt; &quot;alternate&quot;, :title =&gt; Application::TITLE, :type =&gt; &quot;application/rss+xml&quot;}
     = stylesheet_link_tag &quot;application&quot;
-    - head_content = yield :head
     - if head_content
       = head_content
   %body
     .header
-      %h1.title= link_to &quot;p0t&quot;, root_path
-      .description= @description
+      %h1.title= link_to Application::TITLE, root_path
+      .description= Application::DESCRIPTION
     %ul.menu
       %li= link_to &quot;Profile&quot;, &quot;http://komagata.org&quot;
       %li= link_to &quot;New Doc&quot;, new_doc_path
@@ -32,7 +35,7 @@
     %br{:style =&gt; &quot;clear:both&quot;}
     .footer
       writing by 
-      = link_to &quot;komagata&quot;, &quot;http://komagata.org&quot;
+      = link_to Application::AUTHOR, &quot;http://komagata.org&quot;
   - if Rails.env.production?
     :javascript
       var gaJsHost = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://ssl.&quot; : &quot;http://www.&quot;);</diff>
      <filename>app/views/layouts/application.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@ namespace :p0t do
     url = &quot;http://docs.komagata.org/index.csv?per_page=65565&quot;
     path = &quot;db/seeds/docs.csv&quot;
     csv = open(url) {|f| f.read }
-    open(path, &quot;w&quot;) {|f| f.write(csv) }
+    open(path, &quot;w&quot;) {|f| f.write(csv.gsub(/&lt;%/, &quot;&lt;%%&quot;)) }
   end
 
   desc &quot;Reset documents.&quot;</diff>
      <filename>lib/tasks/p0t.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>780936b913770855595c8f3f651fdbbaa880f36c</id>
    </parent>
  </parents>
  <author>
    <name>Masaki Komagata</name>
    <email>komagata@gmail.com</email>
  </author>
  <url>http://github.com/komagata/cloister/commit/4ae17a91d41da709489488397a2ea06ce262b5f7</url>
  <id>4ae17a91d41da709489488397a2ea06ce262b5f7</id>
  <committed-date>2009-09-26T11:16:56-07:00</committed-date>
  <authored-date>2009-09-26T11:16:56-07:00</authored-date>
  <message>fixed</message>
  <tree>0484e5a1c78b39461b2b67aa247270734586069b</tree>
  <committer>
    <name>Masaki Komagata</name>
    <email>komagata@gmail.com</email>
  </committer>
</commit>
