diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-09 05:47:33 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-09 05:47:33 +0000 |
commit | 771d0e18a59ea19faecfe2081db34522fc78e53a (patch) | |
tree | 19f1469086eba9872f06539d4bc8533a7a7f5403 /sample | |
parent | 43bee1af37ecbb03c68121db584679d08a0f7970 (diff) | |
download | ruby-771d0e18a59ea19faecfe2081db34522fc78e53a.tar.gz ruby-771d0e18a59ea19faecfe2081db34522fc78e53a.tar.xz ruby-771d0e18a59ea19faecfe2081db34522fc78e53a.zip |
* sample/rss/tdiary_plugin/rss-recent.rb: supported configuration
via Web browser.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r-- | sample/rss/tdiary_plugin/rss-recent.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sample/rss/tdiary_plugin/rss-recent.rb b/sample/rss/tdiary_plugin/rss-recent.rb index 261ca872b..f574135e3 100644 --- a/sample/rss/tdiary_plugin/rss-recent.rb +++ b/sample/rss/tdiary_plugin/rss-recent.rb @@ -263,3 +263,27 @@ def rss_recent_pubDate_to_dc_date(target) end end end + +add_conf_proc('rss-recent', label_rss_recent_title) do + item = 'rss-recent.use-image-link' + if @mode == 'saveconf' + @conf[item] = (@cgi.params[item][0] == 't') + end + + <<-HTML + <div class"body"> + <h3 class="subtitle">#{label_rss_recent_use_image_link_title}</h3> + <p>#{label_rss_recent_use_image_link_description}</p> + <p> + <select name=#{item}> + <option value="f"#{@conf[item] ? '' : ' selected'}> + #{label_rss_recent_not_use_image_link} + </option> + <option value="t"#{@conf[item] ? ' selected' : ''}> + #{label_rss_recent_use_image_link} + </option> + </select> + </p> + </div> + HTML +end |