fix for #168: No link to post in relation to the comment;
This commit is contained in:
@@ -19,6 +19,12 @@ div.comments-for-post {
|
||||
margin-left: 2em;
|
||||
width: 30em;
|
||||
float: left;
|
||||
|
||||
menu {
|
||||
li {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user