-
Notifications
You must be signed in to change notification settings - Fork 68
/
i.month.rhtml
40 lines (39 loc) · 1.22 KB
/
i.month.rhtml
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
34
35
36
37
38
39
<%# i.day.rhtml $Revision: 1.11 $ %>
<H1><%= CGI::escapeHTML( @conf.html_title ) %></H1>
<%
diary = @diaries[@diaries.keys.sort[0]]
if diary then
param = {
'prefix' => 'i.',
'index' => @conf.index,
'date_format' => @conf.date_format,
'section_anchor' => @conf.section_anchor,
'comment_anchor' => @conf.comment_anchor,
'long_mode' => false,
'show_referer' => false,
'referer_limit' => 0,
'show_comment' => @conf.show_comment,
'comment_limit' => 100,
'multi_user' => @conf.multi_user,
'show_nyear' => false,
}
%><P>
<%%= mobile_navi %>
</P>
<%= diary.eval_rhtml( param, PATH ) %>
<% unless @conf.hide_comment_form %>
<HR>
<FORM METHOD="POST" ACTION="<%= @conf.index %>">
<INPUT TYPE="HIDDEN" NAME="date" VALUE="<%= diary.date.strftime( '%Y%m%d' ) %>">
<P><%%=comment_description_short%><BR>
<%%=comment_name_label_short%>: <INPUT NAME="name"><BR>
<%%=comment_mail_label_short%>: <INPUT NAME="mail"><BR>
<%%=comment_body_label_short%>:<BR>
<TEXTAREA NAME="body"></TEXTAREA><BR>
<INPUT TYPE="SUBMIT" NAME="comment" value="<%%=comment_submit_label_short%>"></P>
</FORM><%
end
else %>
<A HREF="<%= @conf.index %>" ACCESSKEY="1">[1]最新</A>
<p><%= @date.strftime( '%Y年%m月' ) %>の日記はありません。</P><%
end %>