removes all mentions of debates from comment views

This commit is contained in:
kikito
2015-09-13 12:32:27 +02:00
parent 2466b2b830
commit 5b2ee94765
3 changed files with 8 additions and 8 deletions

View File

@@ -11,7 +11,7 @@
<% if can? :hide, comment.user %>
<span class="divider">&nbsp;&bull;&nbsp;</span>
<%= link_to t("admin.actions.hide_author").capitalize, hide_moderation_user_path(comment.user_id, debate_id: @debate.id),
<%= link_to t("admin.actions.hide_author").capitalize, hide_moderation_user_path(comment.user_id),
method: :put, data: { confirm: t('admin.actions.confirm') } %>
<% end %>
</span>

View File

@@ -5,7 +5,7 @@
<% if comment.hidden? || comment.user.hidden? %>
<% if select_children(@comments, comment).size > 0 %>
<div class="is-deleted">
<p><%= t("debates.comment.deleted") %></p>
<p><%= t("comment.deleted") %></p>
</div>
<% end %>
<% else %>
@@ -28,13 +28,13 @@
<div class="comment-info">
<% if comment.as_administrator? %>
<span class="user-name"><%= t("debates.comment.admin") %> #<%= comment.administrator_id%></span>
<span class="user-name"><%= t("comment.admin") %> #<%= comment.administrator_id%></span>
<% elsif comment.as_moderator? %>
<span class="user-name"><%= t("debates.comment.moderator") %> #<%= comment.moderator_id%></span>
<span class="user-name"><%= t("comment.moderator") %> #<%= comment.moderator_id%></span>
<% else %>
<% if comment.user.hidden? %>
<span class="user-name"><%= t("debates.comment.user_deleted") %></span>
<span class="user-name"><%= t("comment.user_deleted") %></span>
<% else %>
<span class="user-name"><%= comment.user.name %></span>
<% if comment.user.official? %>
@@ -53,7 +53,7 @@
<% if comment.user_id == @commentable.author_id %>
&nbsp;&bull;&nbsp;
<span class="label round is-author">
<%= t("debates.comment.author") %>
<%= t("comment.author") %>
</span>
<% end %>
@@ -80,7 +80,7 @@
</span>
<div class="reply">
<%= t("debates.comment.responses", count: select_children(@comments, comment).size) %>
<%= t("comment.responses", count: select_children(@comments, comment).size) %>
<% if user_signed_in? %>
<span class="divider">&nbsp;|&nbsp;</span>

View File

@@ -1,5 +1,5 @@
<span>
<%= t('debates.comment.votes', count: comment.total_votes) %>
<%= t('comment.votes', count: comment.total_votes) %>
</span>
&nbsp;|&nbsp;
<span class="in_favor">