File: pb-show.rb

package info (click to toggle)
tdiary 5.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,092 kB
  • sloc: ruby: 23,031; javascript: 1,029; xml: 325; makefile: 26; sh: 2
file content (21 lines) | stat: -rw-r--r-- 945 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# English resource of pb-show.rb
#
def pingback_today; "Today's Pingbacks"; end
def pingback_total( total ); "(Total: #{total})"; end
def pb_show_conf_html
  <<-"HTML"
  <h3 class="subtitle">Pingback anchor</h3>
  <p>Pingback anchor is inserted into begining of each Pingbacks from other weblogs. So You can specify '&lt;span class="tanchor"&gt;_&lt;/span&gt;">', image anchor will be shown Image anchor by themes.</p>
  <p><input name="trackback_anchor" value="#{ h(@conf['trackback_anchor'] || @conf.comment_anchor ) }" size="40"></p>
  <h3 class="subtitle">Number of Pingbacks</h3>
  <p>In Latest or Month mode, you can specify number of visible Pingbacks. So in Dayly mode, all of Pingbacks are shown.</p>
  <p><input name="trackback_limit" value="#{ h( @conf['trackback_limit'] || @conf.comment_limit )}" size="3"> Pingbacks</p>
  HTML
end

# Local Variables:
# mode: ruby
# indent-tabs-mode: t
# tab-width: 3
# ruby-indent-level: 3
# End: