summaryrefslogtreecommitdiff
path: root/sample/rss
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-09 05:47:33 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-09 05:47:33 +0000
commit837d5acbd4a6598f3064cc8de8dc812c4dab234e (patch)
tree19f1469086eba9872f06539d4bc8533a7a7f5403 /sample/rss
parentbcd01af97886050939a84d9e6307cac58ee34de4 (diff)
* sample/rss/tdiary_plugin/rss-recent.rb: supported configuration
via Web browser. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/rss')
-rw-r--r--sample/rss/tdiary_plugin/rss-recent.rb24
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 261ca87..f574135 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