[admin/comments] info of hidden Debate/Proposal

Removes link to hidden objects
This commit is contained in:
Juanjo Bazán
2015-09-17 13:39:48 +02:00
committed by Juanjo Bazán
parent a92aeea17a
commit 9e1a550b42
5 changed files with 12 additions and 2 deletions

View File

@@ -9,8 +9,12 @@
<li id="<%= dom_id(comment) %>">
<div class="row">
<div class="small-12 medium-8 column">
<%= text_with_links comment.body %>
<%= link_to comment.commentable.title, comment.commentable %>
<%= text_with_links comment.body %><br>
<% if comment.commentable.hidden? %>
(<%= t("admin.comments.index.hidden_#{comment.commentable_type.downcase}") %>: <%= comment.commentable.title %>)
<% else %>
<%= link_to comment.commentable.title, comment.commentable %>
<% end %>
</div>
<div class="small-6 medium-4 column text-right">
<%= link_to t("admin.actions.restore"),