Show
Ignore:
Timestamp:
05/31/08 23:21:16 (6 months ago)
Author:
hsbt
Message:

display delicious icon when no bookmarked.

Files:
1 modified

Legend:

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

    r7017 r12922  
    4545 
    4646        unless @conf.mobile_agent? then 
    47                 # カテゴリタグの追加 
     47                # add category_tag 
    4848                if @category_to_tag_list and not @category_to_tag_list.empty? then 
    4949                        r << "Tags: " 
     
    5757                end 
    5858 
    59                 # 「このエントリの del.icio.us history (JSON API)」 
     59                # add del.icio.us link 
    6060                r << add_delicious_json(date, index) 
    6161 
    62                 # SBM アイコンの追加 
     62                # add SBM link 
    6363                yaml_dir = "#{@cache_path}/yaml/" 
    6464                Dir.glob( yaml_dir + "*.yaml" ) do |file| 
     
    6666                end 
    6767 
    68                 # Permalinkの追加 
     68                # add Permalink 
    6969                r << add_permalink(date, index) 
    7070        end 
     
    8282        update = false 
    8383        count = 0 
    84         r = '' 
    8584 
    8685        begin 
     
    121120        end 
    122121 
     122        r = '' 
     123        r << ' | ' 
     124        r << %Q|<a href="http://del.icio.us/url/#{url_md5}"><img src="http://images.del.icio.us/static/img/delicious.small.gif" style="border: none;vertical-align: middle;" alt="#{@section_footer2_delicious_label}" title="#{@section_footer2_delicious_label}">| 
     125 
    123126        if count > 0 
    124                 r << ' | ' 
    125                 r << %Q{<a href="http://del.icio.us/url/#{url_md5}"><img src="http://images.del.icio.us/static/img/delicious.small.gif" style="border: none;vertical-align: middle;" alt="#{@section_footer2_delicious_label}" title="#{@section_footer2_delicious_label}"> #{count} user} 
     127                r << %Q| #{count} user| 
    126128                r << 's' if count > 1 
    127                 r << '</a>' 
    128129        end 
     130        r << '</a>' 
    129131 
    130132        return r