fix for #168: No link to post in relation to the comment;

This commit is contained in:
albert
2011-11-01 17:57:33 -04:00
parent 4092153662
commit 3136d3c74c
2 changed files with 10 additions and 0 deletions

View File

@@ -19,6 +19,12 @@ div.comments-for-post {
margin-left: 2em;
width: 30em;
float: left;
menu {
li {
margin-right: 0.5em;
}
}
}
}

View File

@@ -17,6 +17,10 @@
<% end %>
<li><%= link_to "Vote up", comment_votes_path(:comment_id => comment.id, :score => "up"), :method => :post, :remote => true %></li>
<li><%= link_to "Vote down", comment_votes_path(:comment_id => comment.id, :score => "down"), :method => :post, :remote => true %></li>
<% if @comment %>
<li><%= link_to "View post", post_path(post) %></li>
<% end %>
</menu>
</div>
<div class="clearfix"></div>