proto/themes/default/posts/view.xhtml in blogaze-0.0.1 vs proto/themes/default/posts/view.xhtml in blogaze-0.0.2
- old
+ new
@@ -7,20 +7,20 @@
</div>
<footer class="meta">
<?r if @post.tags.count > 0 ?>
<div class="tags">
<?r @post.tags.each do |tag| ?>
- #{a tag.name, tag.href}
+ <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.comment.count} comments
+ 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.comment.each do |comment| ?>
+ <?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>