<%# diary.rhtml $Revision: 1.21 $ %>

" %>"><%= @date.strftime( opt['date_format'] ) %> <%= title %><% if opt['show_nyear'] then %> <%%=nyear "<%= @date.strftime('%Y%m%d') %>" %><% end %>

<%%= body_enter_proc( Time::at( <%=@date.to_i%> ) ) %> <%= to_html( opt ) %> <%%= body_leave_proc( Time::at( <%=@date.to_i%> ) ) %>
<% if opt['show_comment'] and count_comments > 0 then if opt['long_mode'] then %>
<%%=comment_today%><%%=comment_total( <%=count_comments%> )%> [#c" %>"><%%=comment_new%>]
<% each_visible_comment( opt['comment_limit'] ) do |comment,idx| if comment.visible? %>

<% if opt['bot'] then %> <%= CGI::escapeHTML( comment.body ).gsub( /\n/ , "
" ).gsub( /

\Z/, '' ) %> <% else %> <%= comment.body.make_link.gsub( /\n/ , "
" ).gsub( /

\Z/, '' ) %> <% end %>

<% end end %>
<% else %>
<%%=comment_today%><%%=comment_total( <%=count_comments%> )%> [#c" %>"><%%=comment_new%>]
<% if count_comments > opt['comment_limit'] then %>

#c01" %>">Before...

<% end each_comment_tail( opt['comment_limit'] ) do |comment,idx| if comment.visible? %>

#c<%= '%02d' % idx %>" %>"><%= opt['comment_anchor'] %> <%= CGI::escapeHTML( comment.name ) %> [<%= CGI::escapeHTML( comment.shorten( opt['comment_length'] ) ) %>]

<% end end %>
<% end elsif opt['show_comment'] %> <% end %>
<% if not opt['hide_comment_form'] and opt['long_mode'] then %>
<%%=comment_name_label%>:
<%%=comment_mail_label%>:
<%%=comment_body_label%>:
<% end %> <%% unless @plugin_files.grep(/tb-show.rb\z/).empty? then %><% if opt['long_mode'] then %><%%= trackbacks_of_today_long( @diaries["<%= @date.strftime( '%Y%m%d' ) %>"] ) %><% else %><%%= trackbacks_of_today_short( @diaries["<%= @date.strftime( '%Y%m%d' ) %>"] ) %><% end %><%% end %> <% if opt['show_referer'] then if opt['long_mode'] then %>
<%%= referer_of_today_long( @diaries['<%=@date.strftime( '%Y%m%d' )%>'], <%=opt['referer_limit']%> )%>
<% else %>
<%%=referer_of_today_short( @diaries['<%=@date.strftime( '%Y%m%d' )%>'], <%=opt['referer_limit']%> )%>
<% end end %>