File: title_anchor.rb

package info (click to toggle)
tdiary-contrib 5.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,772 kB
  • sloc: ruby: 17,305; javascript: 8,263; lisp: 562; xml: 451; php: 61; sql: 40; makefile: 18
file content (16 lines) | stat: -rw-r--r-- 292 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# title_anchor.rb:
#
# Copyright (C) 2007 by SHIBATA Hiroshi <h-sbt@nifty.com>
# Distributed under GPL2.
#

def title_anchor
	r = ''
	if /^latest$/ =~ @mode
		r << %Q|<h1>#{h @conf.html_title}</h1>|
	else
		r << %Q|<h1><a href="#{h @conf.index}">#{h @conf.html_title}</a></h1>|
	end
	r
end