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/trunk@8288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
58f1ea99d7
commit
98d168ffc7
4 changed files with 73 additions and 0 deletions
|
@ -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.
|
||||
|
||||
Fri Apr 8 20:17:48 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/extmk.rb (extmake): hdrdir needs to be defined also in
|
||||
|
|
22
sample/rss/tdiary_plugin/en/rss-recent.rb
Normal file
22
sample/rss/tdiary_plugin/en/rss-recent.rb
Normal file
|
@ -0,0 +1,22 @@
|
|||
# -*- indent-tabs-mode: t -*-
|
||||
|
||||
def label_rss_recent_title
|
||||
'External RSS display'
|
||||
end
|
||||
|
||||
def label_rss_recent_use_image_link_title
|
||||
'Image treatment'
|
||||
end
|
||||
|
||||
def label_rss_recent_use_image_link_description
|
||||
"Select whether you use image as link instead of text or not " +
|
||||
"if the RSS has Web site's image information."
|
||||
end
|
||||
|
||||
def label_rss_recent_not_use_image_link
|
||||
"don't use image as link"
|
||||
end
|
||||
|
||||
def label_rss_recent_use_image_link
|
||||
"use image as link"
|
||||
end
|
22
sample/rss/tdiary_plugin/ja/rss-recent.rb
Normal file
22
sample/rss/tdiary_plugin/ja/rss-recent.rb
Normal file
|
@ -0,0 +1,22 @@
|
|||
# -*- indent-tabs-mode: t -*-
|
||||
|
||||
def label_rss_recent_title
|
||||
'外部RSSの表示'
|
||||
end
|
||||
|
||||
def label_rss_recent_use_image_link_title
|
||||
'画像の扱い'
|
||||
end
|
||||
|
||||
def label_rss_recent_use_image_link_description
|
||||
'もしRSSにWebサイトの画像情報が含まれていたら,' +
|
||||
'Webサイトへのリンクにテキストではなくその画像を用います.'
|
||||
end
|
||||
|
||||
def label_rss_recent_not_use_image_link
|
||||
'リンクに画像を用いない'
|
||||
end
|
||||
|
||||
def label_rss_recent_use_image_link
|
||||
'リンクに画像を用いる'
|
||||
end
|
|
@ -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
Reference in a new issue