File: highlight.rb

package info (click to toggle)
tdiary 2.0.1-1sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,220 kB
  • ctags: 1,667
  • sloc: ruby: 20,044; lisp: 476; makefile: 91; sql: 32; sh: 31
file content (22 lines) | stat: -rw-r--r-- 708 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
22
# Japanese resource of highlight.rb
#

def highlight_conf_label; 'Highlight'; end

def highlight_conf_html
	<<-HTML
	<h3 class="subtitle">Color Settings of Highlight</h3>
	<p>Highlights subtitle jumped from other pages as <span style="color: #{CGI::escapeHTML(@conf['highlight.color'])}; background: #{CGI::escapeHTML(@conf['highlight.background'])}">THIS</span>.</p>

	<table>
		<tr>
			<th>Text color of highlight</th>
			<td><input name="highlight.color" value="#{CGI::escapeHTML(@conf['highlight.color'])}"></td>
		</tr>
		<tr>
			<th>Background color of highlight</th>
			<td><input name="highlight.background" value="#{CGI::escapeHTML(@conf['highlight.background'])}"></td>
		</tr>
	</table>
	HTML
end