<%# i.diary.rhtml $Revision: 1.13 $ %>

<%%= title_proc( Time::at( <%=@date.to_i%> ), <%= title.dump.gsub( /%/, '\\\\045' ) %> ) %>

<%%= body_enter_proc( Time::at( <%=@date.to_i%> ) ) %> <%= to_html( opt, :CHTML ) %> <%%= body_leave_proc( Time::at( <%=@date.to_i%> ) ) %><% if opt['show_comment'] and count_comments > 0 then idx = 0 %>

<%%=comment_today%><%%=comment_total( <%=count_comments%> )%>:
<% each_comment(opt['comment_limit'] ) do |comment| if comment.visible? %> # <%=h comment.name %> [<%= comment.shorten( 200 ).make_link %>]
<% else idx += 1 end end %>

<% end %>