Sha256: 17b5a1dd2fd01bbc7cce015edd22e20e92236bda69bfcfeae815eefe14d1421f
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
<?r @posts.each do |post| ?> <article class="post"> <header> <h2 class="title">#{a post.title, '/' + Time.at(post.created_at).year.to_s + '/' + Time.at(post.created_at).month.to_s + '/' + post.slug}</h2> </header> <div class="post-body"> <?r if post.body == post.body_partial ?> #{maruku post.body} <?r else ?> #{maruku post.body_partial} #{a 'Continue reading...', post.href} <?r end ?> </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>, <a href="#{post.href}#comments">#{post.comment.count} comments</a> </footer> </article> <?r end ?> <?r if @posts.page_count > 1 ?> <div class="pager_nav"> <?r if @posts.prev_page ?> <a href="/page/#{@posts.prev_page}" class="prev">< Previous</a> <?r end ?> <?r if @posts.next_page ?> <a href="/page/#{@posts.next_page}" class="next">Next > </a> <?r end ?> </div> <?r end ?>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blogaze-0.0.1 | proto/themes/default/index.xhtml |