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 %> <% if can? :hide, comment.user %>
<span class="divider">&nbsp;&bull;&nbsp;</span> <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') } %> method: :put, data: { confirm: t('admin.actions.confirm') } %>
<% end %> <% end %>
</span> </span>

View File

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

View File

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