summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sample/rss/tdiary_plugin/rss-recent.rb24
2 files changed, 29 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bffb70856a..3e5b5d9695 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Apr 9 14:42:29 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * sample/rss/tdiary_plugin/rss-recent.rb: supported configuration
+ via Web browser.
+
Sat Apr 9 11:59:57 2005 Kouhei Sutou <kou@cozmixng.org>
* lib/rss: backoported from HEAD.
diff --git a/sample/rss/tdiary_plugin/rss-recent.rb b/sample/rss/tdiary_plugin/rss-recent.rb
index 261ca872b7..f574135e31 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