mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
bcd01af978
commit
837d5acbd4
2 changed files with 29 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue