*** misc/plugin/speed_comment.rb.orig Sun Aug 8 01:50:33 2004 --- misc/plugin/speed_comment.rb Sun Aug 8 01:54:10 2004 *************** *** 21,32 **** add_body_leave_proc do |date| if /latest|month/ =~ @mode and not @cgi.mobile_agent? then @conf['speed_comment.name_size'] = 20 unless @conf['speed_comment.name_size'] @conf['speed_comment.body_size'] = 40 unless @conf['speed_comment.body_size'] r = "" r << %Q[

] r << %Q[] - r << %Q[] r << comment_name_label + %Q[: ] r << comment_body_label + %Q[: ] r << %Q[] r << %Q[

] --- 21,37 ---- add_body_leave_proc do |date| if /latest|month/ =~ @mode and not @cgi.mobile_agent? then @conf['speed_comment.name_size'] = 20 unless @conf['speed_comment.name_size'] + @conf['speed_comment.mail_size'] = 0 unless @conf['speed_comment.mail_size'] @conf['speed_comment.body_size'] = 40 unless @conf['speed_comment.body_size'] r = "" r << %Q[

] r << %Q[] r << comment_name_label + %Q[: ] + if @conf['speed_comment.mail_size'] == 0 + r << %Q[] + else + r << comment_mail_label + %Q[: ] + end r << comment_body_label + %Q[: ] r << %Q[] r << %Q[

] *************** *** 44,49 **** --- 49,55 ---- <<-HTML

簡易ツッコミフォームのサイズ

名前欄:

+

メール欄: (0なら非表示)

本文欄:

HTML end *************** *** 53,58 **** --- 59,66 ---- if @mode == 'saveconf' then @conf['speed_comment.name_size'] = @cgi.params['speed_comment.name_size'][0].to_i @conf['speed_comment.name_size'] = 20 if @conf['speed_comment.name_size'] < 1 + @conf['speed_comment.mail_size'] = @cgi.params['speed_comment.mail_size'][0].to_i + @conf['speed_comment.mail_size'] = 0 if @conf['speed_comment.mail_size'] < 1 @conf['speed_comment.body_size'] = @cgi.params['speed_comment.body_size'][0].to_i @conf['speed_comment.body_size'] = 40 if @conf['speed_comment.body_size'] < 1 end