restyling user's page

This commit is contained in:
Juanjo Bazán
2015-11-03 19:52:06 +01:00
committed by Juanjo Bazán
parent e8232f296e
commit fe0618e2c1
4 changed files with 29 additions and 18 deletions

View File

@@ -2,7 +2,10 @@
<% @comments.each do |comment| %>
<tr id="debate_<%= comment.id %>">
<td>
<i><%= t("users.show.comment_to") %> <%= link_to comment.commentable.title, comment.commentable %></i>
<i>
<%= t("users.show.comment_to") %>
<%= comment.commentable.hidden? ? comment.commentable.title : link_to(comment.commentable.title, comment.commentable) %>
</i>
<br>
<%= comment.body %>
</td>