Changeset 18449 for platform/tdiary

Show
Ignore:
Timestamp:
08/30/08 08:29:53 (3 months ago)
Author:
hsbt
Message:

tabify.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/plugin/cocomment.rb

    r3326 r18449  
    66 
    77if @mode == 'day' and not bot? and not @conf.mobile_agent? then 
    8    add_body_enter_proc do |date| 
     8        add_body_enter_proc do |date| 
    99                <<-SCRIPT 
    10       <script type="text/javascript"> 
    11       coco = 
    12       { 
    13           blogTool               : "tDiary", 
    14           blogURL                : "#{h @conf.base_url}", 
    15           blogTitle              : "#{h @conf.html_title}", 
    16           postURL                : "#{h @conf.base_url + anchor( date.strftime( '%Y%m%d' ) )}", 
    17           postTitle              : "#{h apply_plugin( @diaries[date.strftime('%Y%m%d')].title, true )}", 
    18           commentAuthorFieldName : "name", 
    19           commentAuthorLoggedIn  : false, 
    20           commentFormName        : "comment-form", 
    21           commentTextFieldName   : "body", 
    22           commentButtonName      : "comment" 
    23       } 
    24       </script> 
    25       <script id="cocomment-fetchlet" src="http://www.cocomment.com/js/enabler.js" type="text/javascript"> 
    26       </script> 
     10                <script type="text/javascript"> 
     11                coco = 
     12                { 
     13                         blogTool                                       : "tDiary", 
     14                         blogURL                                                : "#{h @conf.base_url}", 
     15                         blogTitle                                      : "#{h @conf.html_title}", 
     16                         postURL                                                : "#{h @conf.base_url + anchor( date.strftime( '%Y%m%d' ) )}", 
     17                         postTitle                                      : "#{h apply_plugin( @diaries[date.strftime('%Y%m%d')].title, true )}", 
     18                        commentAuthorFieldName : "name", 
     19                         commentAuthorLoggedIn  : false, 
     20                         commentFormName                        : "comment-form", 
     21                         commentTextFieldName   : "body", 
     22                         commentButtonName              : "comment" 
     23                } 
     24                </script> 
     25                <script id="cocomment-fetchlet" src="http://www.cocomment.com/js/enabler.js" type="text/javascript"> 
     26                </script> 
    2727                SCRIPT 
    2828        end