File: day.rhtml

package info (click to toggle)
tdiary 5.0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,852 kB
  • sloc: ruby: 22,925; xml: 325; makefile: 16; sh: 10
file content (33 lines) | stat: -rw-r--r-- 803 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<%= @conf.header %>
<hr class="sep">

<%
if @diary then
	param = {
		'date_format' => @conf.date_format,
		'index' => @conf.index,
		'section_anchor' => @conf.section_anchor,
		'comment_anchor' => @conf.comment_anchor,
		'long_mode' => true,
		'show_referer' => @conf.show_referer,
		'referer_limit' => 100,
		'referer_table' => @conf.referer_table,
		'show_comment' => @conf.show_comment,
		'comment_limit' => -1,
		'multi_user' => @conf.multi_user,
		'cookie_name' => cookie_name,
		'cookie_mail' => cookie_mail,
		'anchor' => true,
		'hide_comment_form' => @conf.hide_comment_form,
		'show_nyear' => @conf.show_nyear,
		'bot' => @conf.bot =~ @cgi.user_agent,
	} %>
	<%= @diary.eval_rhtml( param ) %><%
else %>
	<p class="message">
	<%%=no_diary%>
	</p><%
end %>
<hr class="sep">

<%= @conf.footer %>