Sha256: 20540a07ae3acc6bfac6352d2d54912bfc9e8c99de8509f81dc2ee221c68fde1
Contents?: true
Size: 1.45 KB
Versions: 4
Compression:
Stored size: 1.45 KB
Contents
<article class="post"> <header> <h2 class="title">#{@post.title}</h2> </header> <div class="post-body"> #{maruku @post.body} </div> <footer class="meta"> <?r if @post.tags.count > 0 ?> <div class="tags"> <?r @post.tags.each do |tag| ?> <a href="#{tag.href}">#{tag.name}</a> <?r end ?> </div> <?r end ?> By #{@post.user.username}, <abbr title="#{Time.at(@post.published_at)}">#{@post.published_at.ago_in_words}</abbr>, #{@post.comments.count} comments </footer> </article> <section id="comments"> <h3><a name="comments" class="no-href">Comments</a></h3> <?r @post.comments.each do |comment| ?> <div class="comment"> <h4>#{comment.author}, #{comment.created_at.ago_in_words}</h4> <div class="content"> #{maruku CGI::escapeHTML(comment.body)} </div> </div> <?r end ?> </section> <section id="new_comment"> <h3>New Comment</h3> <div class="content"> <?r if @comment.errors.count > 0 ?> <div class="message error"> <?r @comment.errors.each do |k, v| ?> #{k} #{v.first}<br /> <?r end ?> </div> <?r end ?> <div class="new-comment-form tabular"> #{ form_for(@comment, :method => :post, :action => @post.href) do |f| f.hidden :new_comment, 1 f.input_text 'Name', :author f.textarea 'Message', :body f.submit 'Post' end } </div> </div> </section>
Version data entries
4 entries across 4 versions & 1 rubygems