Sha256: 6c07420bf130cb45d775c27d2a08cc6c4a5372f5d191132b142e7743e63a2afe
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 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 tag.name, tag.href} <?r end ?> </div> <?r end ?> By #{@post.user.username}, <abbr title="#{Time.at(@post.published_at)}">#{@post.published_at.ago_in_words}</abbr>, #{@post.comment.count} comments </footer> </article> <section id="comments"> <h3><a name="comments" class="no-href">Comments</a></h3> <?r @post.comment.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blogaze-0.0.1 | proto/themes/default/posts/view.xhtml |